diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/cmus_toggle | 8 | ||||
-rwxr-xr-x | bin/manga_dmenu.sh | 5 | ||||
-rwxr-xr-x | bin/postit.sh | 2 | ||||
-rwxr-xr-x | bin/run_with_dmenu.sh | 7 |
4 files changed, 12 insertions, 10 deletions
diff --git a/bin/cmus_toggle b/bin/cmus_toggle new file mode 100755 index 0000000..8568a82 --- /dev/null +++ b/bin/cmus_toggle @@ -0,0 +1,8 @@ +#!/bin/sh + +STATUS=$(cmus-remote -Q | grep status | awk '{print $2}') +if [ "$STATUS" = paused ];then + cmus-remote -p +elif [ $STATUS = playing ];then + cmus-remote -u +fi diff --git a/bin/manga_dmenu.sh b/bin/manga_dmenu.sh deleted file mode 100755 index 436968b..0000000 --- a/bin/manga_dmenu.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env zsh -# until kaminokumo --manga; do done | dmenu -nhb "dark slate gray" -nhf white -shb "forest green" -shf white -l 12 -p "Manga List:" > /dev/null -source ~/scripts/zshrc_stripped.sh -until kaminokumo --manga; do done | dmenu -p "Manga List:" > /dev/null - diff --git a/bin/postit.sh b/bin/postit.sh index d0556a8..d0271e3 100755 --- a/bin/postit.sh +++ b/bin/postit.sh @@ -1,4 +1,4 @@ #!/usr/bin/env sh -POSTIT=$(cat ~/devi/abbatoir/postit | dmenu -l 20 -p "Select Postit:") +POSTIT=$(cat ~/scripts/postit | dmenu -l 20 -p "Select Postit:") echo -n "${POSTIT:0:${#POSTIT}}" | xsel -ip diff --git a/bin/run_with_dmenu.sh b/bin/run_with_dmenu.sh index c7bf9dd..a0dc7cf 100755 --- a/bin/run_with_dmenu.sh +++ b/bin/run_with_dmenu.sh @@ -1,7 +1,6 @@ #!/usr/bin/env zsh -# set -o pipefail -source ~/scripts/zshrc_stripped.sh -COMMAND=$(echo "" | dmenu -h 20 -p "Quick Term:") +. ~/scripts/zshrc_stripped.sh +COMMAND=$(echo "" | dmenu -i -l 20 -p "Quick Term:") RESULT=$(eval "$COMMAND") -echo $RESULT | dmenu -h 20 -p "Quick Term Out:" > /dev/null +echo $RESULT | dmenu -i -l 20 -p "Quick Term Out:" | xsel -ib |