From 22908f63941e3d70b406bbc015a5948282aad410 Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Thu, 29 Nov 2018 17:06:57 +0100 Subject: Made executable and cleaned bash explicit calls. --- dmenuTerm.sh | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) mode change 100644 => 100755 dmenuTerm.sh (limited to 'dmenuTerm.sh') diff --git a/dmenuTerm.sh b/dmenuTerm.sh old mode 100644 new mode 100755 index a981797..0cd46ab --- a/dmenuTerm.sh +++ b/dmenuTerm.sh @@ -1,25 +1,26 @@ #!/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\npython" +options="neofetch\ncmus\ncmus (float)\nnewsboat\nneomutt\nsyncthing\nbrightFirst\nresetConnection\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython" -chosen=$(echo -e "$options" | dmenu -i) +chosen=$(echo -e "$options" | dmenu -i -p "~$ urxvt -e") case "$chosen" in # floating windows - neofetch) urxvt -title invisible -sh 100 -cr "#aaddff" -geometry "80x21+50+35" -e bash ~/scripts/neofetch.sh ;; - showColors) urxvt -title floating -sh 10 -cr black -geometry 43x9 -e bash ~/scripts/showColors.sh ;; - years) urxvt -title floating -sh 20 -cr black -geometry 66x39 -e bash ~/scripts/years.sh ;; - months) urxvt -title floating -sh 20 -cr black -geometry 22x9 -e bash ~/scripts/months.sh ;; - "bg selection") urxvt -title floating -sh 20 -cr black -geometry 45x6 -e bash ~/scripts/bgBrowser.sh ;; + neofetch) urxvt -title invisible -sh 100 -cr "#aaddff" -geometry "80x21+50+35" -e ~/scripts/neofetch.sh ;; + showColors) urxvt -title floating -sh 10 -cr black -geometry 43x9 -e ~/scripts/showColors.sh ;; + years) urxvt -title floating -sh 20 -cr black -geometry 66x39 -e ~/scripts/years.sh ;; + months) urxvt -title floating -sh 20 -cr black -geometry 22x9 -e ~/scripts/months.sh ;; + "bg selection") urxvt -title floating -sh 20 -cr black -geometry "45x6-5-5" -e ~/scripts/bgBrowser.sh ;; python) urxvt -title floating -geometry 80x28 -e python ;; #programs cmus) urxvt -cd ~/music -e cmus ;; + "cmus (float)") urxvt -title floating -sh 20 -geometry "150x12+5-8" -cd ~/music -e cmus ;; newsboat) urxvt -e newsboat ;; neomutt) urxvt -e neomutt ;; - syncthing) qutebrowser && urxvt -e bash ~/scripts/syncthing.sh ;; + syncthing) qutebrowser && urxvt -e ~/scripts/syncthing.sh ;; # sudo stuff - brightFirst) urxvt -title floating -geometry 32x1 -e sudo bash ~/scripts/brightFirst.sh ;; - resetConnection) urxvt -title floating -geometry 32x1 -e sudo bash ~/scripts/resetConnection.sh ;; - wifiDown) urxvt -title floating -geometry 32x1 -e sudo bash ~/scripts/wifiDown.sh ;; + brightFirst) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/brightFirst.sh ;; + resetConnection) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/resetConnection.sh ;; + wifiDown) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/wifiDown.sh ;; esac -- cgit v1.2.1