aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-03-19 07:08:45 +0000
committerterminaldweller <thabogre@gmail.com>2022-03-19 07:08:45 +0000
commit034c00886af9ded731c2689f0bcc42f1381127c9 (patch)
tree2adbca62e94a67e540bc86ba0b9970c830166d61 /bin
parentupdate (diff)
downloadscripts-034c00886af9ded731c2689f0bcc42f1381127c9.tar.gz
scripts-034c00886af9ded731c2689f0bcc42f1381127c9.zip
mostly pretty git logs
Diffstat (limited to 'bin')
-rwxr-xr-xbin/cmus_toggle8
-rwxr-xr-xbin/manga_dmenu.sh5
-rwxr-xr-xbin/postit.sh2
-rwxr-xr-xbin/run_with_dmenu.sh7
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