diff options
| author | Andrew Guschin <saintruler@gmail.com> | 2021-11-15 15:31:17 +0400 |
|---|---|---|
| committer | Andrew Guschin <saintruler@gmail.com> | 2021-11-15 15:31:17 +0400 |
| commit | b815b8dc30a9632e159bf4347d615b067503215f (patch) | |
| tree | b6ea0d48d364ccd7c7341576711112fa156c9f84 /.local/bin/scripts | |
| parent | 54d45cc3ddc50fb0db021aca14ea9284c7937984 (diff) | |
Removed unneeded scripts
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" |