diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2018-11-19 14:13:18 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2018-11-19 14:13:18 +0100 |
commit | 683564bd058884356491b7b847f5d2e204207389 (patch) | |
tree | c7d60ec611dc6c72fcf885d30051fae9757d67c1 /dmenuTerm.sh | |
download | scripts-683564bd058884356491b7b847f5d2e204207389.tar.gz scripts-683564bd058884356491b7b847f5d2e204207389.zip |
Initial scripts commit.
Diffstat (limited to 'dmenuTerm.sh')
-rw-r--r-- | dmenuTerm.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/dmenuTerm.sh b/dmenuTerm.sh new file mode 100644 index 0000000..f01a916 --- /dev/null +++ b/dmenuTerm.sh @@ -0,0 +1,30 @@ +#!/bin/bash +# dmenu script for opening console programs and scripts directly + +options="neofetch\ncmus\nnewsboat\nneomutt\nsyncthing\nbrightFirst\nresetConnection\nwifiDown\nyears\nmonths\nbg selection\nshowColors" + +chosen=$(echo -e "$options" | dmenu \ +-i \ +-p "~$" \ +-nb "#000000" \ +-nf "#60ff00" \ +-sb "#60f000" \ +-sf "#000000") + +case "$chosen" in + # floating windows + neofetch) urxvt -name floating -sh 30 -cr black -geometry 80x21 -e bash ~/scripts/neofetch.sh ;; + showColors) urxvt -name floating -sh 10 -cr black -geometry 43x9 -e bash ~/scripts/showColors.sh ;; + years) urxvt -name floating -sh 20 -cr black -geometry 66x39 -e bash ~/scripts/years.sh ;; + months) urxvt -name floating -sh 20 -cr black -geometry 22x9 -e bash ~/scripts/months.sh ;; + "bg selection") urxvt -name floating -sh 20 -cr black -geometry 45x6 -e bash ~/scripts/bgBrowser.sh ;; + #programs + cmus) urxvt -cd ~/music -e cmus ;; + newsboat) urxvt -e newsboat ;; + neomutt) urxvt -e neomutt ;; + syncthing) qutebrowser && urxvt -e bash ~/scripts/syncthing.sh ;; + # sudo stuff + brightFirst) urxvt -name floating -geometry 32x1 -e sudo bash ~/scripts/brightFirst.sh ;; + resetConnection) urxvt -name floating -geometry 32x1 -e sudo bash ~/scripts/resetConnection.sh ;; + wifiDown) urxvt -name floating -geometry 32x1 -e sudo bash ~/scripts/wifiDown.sh ;; +esac |