diff options
Diffstat (limited to '.local/bin/scripts')
| -rwxr-xr-x | .local/bin/scripts/getrange | 32 | ||||
| -rwxr-xr-x | .local/bin/scripts/shellprompt | 3 | ||||
| -rwxr-xr-x | .local/bin/scripts/syncmail | 6 |
3 files changed, 0 insertions, 41 deletions
diff --git a/.local/bin/scripts/getrange b/.local/bin/scripts/getrange deleted file mode 100755 index 561dfdc..0000000 --- a/.local/bin/scripts/getrange +++ /dev/null @@ -1,32 +0,0 @@ -#!/sbin/python3 -import sys -def nempty(l): - return [i for i in l if i] - - -if len(sys.argv) > 2: - s = sys.argv[2] -else: - s = input() - -l = nempty(s.strip().split()) -r = sys.argv[1].split(":") - -if len(r) == 3: - start, end, step = map(int, r) -elif len(r) == 2: - if r[0] == '': - start = 0 - end = int(r[1]) - step = 1 - elif r[1] == '': - start = int(r[0]) - end = len(l) - step = 1 - else: - start, end = r - step = 1 - -print(' '.join(l[start:end:step])) - - diff --git a/.local/bin/scripts/shellprompt b/.local/bin/scripts/shellprompt deleted file mode 100755 index 80b045f..0000000 --- a/.local/bin/scripts/shellprompt +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -read -p "$1 [yN] " ans -([[ "$ans" == "Y" || "$ans" == "y" ]] && exit 0) || exit 1 diff --git a/.local/bin/scripts/syncmail b/.local/bin/scripts/syncmail deleted file mode 100755 index 1402568..0000000 --- a/.local/bin/scripts/syncmail +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -notify-send -a "syncmail" "Syncing started" -mbsync -a -c "$XDG_CONFIG_HOME/isync/mbsyncrc" -mailcnt=$(ls ~/mail/gmail/Inbox/new/ | wc -l) -notify-send -a "syncmail" "Syncing complete" "Got $mailcnt new e-mails" |