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. --- README | 0 bgBrowser.sh | 0 bgSelector.sh | 0 brightFirst.sh | 0 brightness.sh | 0 dmenuMount.sh | 0 dmenuTerm.sh | 23 ++++++++++++----------- dmenuUmount.sh | 0 months.sh | 0 mpvFloat.sh | 0 mpvFloatLoop.sh | 0 neofetch.sh | 0 notification.sh | 0 pkmBgSelector.sh | 0 prompt.sh | 0 resetConnection.sh | 0 showColors.sh | 0 syncthing.sh | 0 systemControl.sh | 8 ++++---- webview.sh | 15 +++++++++------ wifiDown.sh | 0 years.sh | 0 youtube-dlFloat.sh | 0 youtube-dlFloatAudio.sh | 0 24 files changed, 25 insertions(+), 21 deletions(-) mode change 100644 => 100755 README mode change 100644 => 100755 bgBrowser.sh mode change 100644 => 100755 bgSelector.sh mode change 100644 => 100755 brightFirst.sh mode change 100644 => 100755 brightness.sh mode change 100644 => 100755 dmenuMount.sh mode change 100644 => 100755 dmenuTerm.sh mode change 100644 => 100755 dmenuUmount.sh mode change 100644 => 100755 months.sh mode change 100644 => 100755 mpvFloat.sh mode change 100644 => 100755 mpvFloatLoop.sh mode change 100644 => 100755 neofetch.sh mode change 100644 => 100755 notification.sh mode change 100644 => 100755 pkmBgSelector.sh mode change 100644 => 100755 prompt.sh mode change 100644 => 100755 resetConnection.sh mode change 100644 => 100755 showColors.sh mode change 100644 => 100755 syncthing.sh mode change 100644 => 100755 systemControl.sh mode change 100644 => 100755 webview.sh mode change 100644 => 100755 wifiDown.sh mode change 100644 => 100755 years.sh mode change 100644 => 100755 youtube-dlFloat.sh mode change 100644 => 100755 youtube-dlFloatAudio.sh diff --git a/README b/README old mode 100644 new mode 100755 diff --git a/bgBrowser.sh b/bgBrowser.sh old mode 100644 new mode 100755 diff --git a/bgSelector.sh b/bgSelector.sh old mode 100644 new mode 100755 diff --git a/brightFirst.sh b/brightFirst.sh old mode 100644 new mode 100755 diff --git a/brightness.sh b/brightness.sh old mode 100644 new mode 100755 diff --git a/dmenuMount.sh b/dmenuMount.sh old mode 100644 new mode 100755 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 diff --git a/dmenuUmount.sh b/dmenuUmount.sh old mode 100644 new mode 100755 diff --git a/months.sh b/months.sh old mode 100644 new mode 100755 diff --git a/mpvFloat.sh b/mpvFloat.sh old mode 100644 new mode 100755 diff --git a/mpvFloatLoop.sh b/mpvFloatLoop.sh old mode 100644 new mode 100755 diff --git a/neofetch.sh b/neofetch.sh old mode 100644 new mode 100755 diff --git a/notification.sh b/notification.sh old mode 100644 new mode 100755 diff --git a/pkmBgSelector.sh b/pkmBgSelector.sh old mode 100644 new mode 100755 diff --git a/prompt.sh b/prompt.sh old mode 100644 new mode 100755 diff --git a/resetConnection.sh b/resetConnection.sh old mode 100644 new mode 100755 diff --git a/showColors.sh b/showColors.sh old mode 100644 new mode 100755 diff --git a/syncthing.sh b/syncthing.sh old mode 100644 new mode 100755 diff --git a/systemControl.sh b/systemControl.sh old mode 100644 new mode 100755 index aa200b3..b7ba5ee --- a/systemControl.sh +++ b/systemControl.sh @@ -3,11 +3,11 @@ options="lock\nreboot\nshutdown\nexit i3" -chosen=$(echo -e "$options" | dmenu) +chosen=$(echo -e "$options" | dmenu -p ">_") case "$chosen" in lock) i3lock -i ~/images/wallpapers/lockbg.png -f ;; - reboot) bash ~/scripts/prompt.sh Reboot? reboot ;; - shutdown) bash ~/scripts/prompt.sh Shutdown? "shutdown now" ;; - "exit i3") bash ~/scripts/prompt.sh "Exit i3? (ends X session)" "i3-msg exit" ;; + reboot) ~/scripts/prompt.sh Reboot? reboot ;; + shutdown) ~/scripts/prompt.sh Shutdown? "shutdown now" ;; + "exit i3") ~/scripts/prompt.sh "Exit i3? (ends X session)" "i3-msg exit" ;; esac diff --git a/webview.sh b/webview.sh old mode 100644 new mode 100755 index 457f9ee..5877325 --- a/webview.sh +++ b/webview.sh @@ -9,11 +9,13 @@ wgetFiles="mp3 pdf" # Check youtube link if echo "$1" | grep youtube > /dev/null; then - chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\nqutebrowser\nw3m" | dmenu -i) + chosen=$(echo -e "mpv\nmpv (loop)\nmpv (float)\ndownload (y-dl)\nqutebrowser\nw3m" | dmenu -i) case "$chosen" in mpv) nohup mpv "$1" >/dev/null & ;; "mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;; - "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;; + "mpv (float)") ~/scripts/mpvFloat.sh "$1" ;; + "download (y-dl)") /home/inigo/scripts/youtube-dlFloat.sh "$1" & ;; + qutebrowser) qutebrowser "$1" & ;; qutebrowser) qutebrowser "$1" & ;; w3m) urxvt -e w3m "$1" & ;; esac @@ -25,18 +27,19 @@ elif echo $mpvFiles | grep -w $ext > /dev/null; then case "$chosen" in mpv) nohup mpv "$1" >/dev/null & ;; "mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;; - "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;; + "mpv (float)") ~/scripts/mpvFloat.sh "$1" ;; qutebrowser) qutebrowser "$1" & ;; esac elif echo $wgetFiles | grep -w $ext > /dev/null; then - i3 exec wget "$1" >/dev/null & + nohup wget "$1" >~/log-wget.txt & else - chosen=$(echo -e "mpv\nmpv (loop)\npqiv\nqutebrowser\nw3m" | dmenu -i) + chosen=$(echo -e "mpv\nmpv (loop)\npqiv\ndownload (y-dl)\nqutebrowser\nw3m" | dmenu -i) case "$chosen" in mpv) nohup mpv "$1" >/dev/null & ;; "mpv (loop)") nohup mpv --loop "$1" >/dev/null & ;; - "mpv (float)") bash ~/scripts/mpvFloat.sh "$1" ;; + "mpv (float)") ~/scripts/mpvFloat.sh "$1" ;; pqiv) nohup pqiv -i -P "0,0" -T "pqivfloat" "$1" >/dev/null & ;; + "download (y-dl)") /home/inigo/scripts/youtube-dlFloat.sh "$1" & ;; qutebrowser) qutebrowser "$1" & ;; w3m) urxvt -e w3m "$1" & ;; esac diff --git a/wifiDown.sh b/wifiDown.sh old mode 100644 new mode 100755 diff --git a/years.sh b/years.sh old mode 100644 new mode 100755 diff --git a/youtube-dlFloat.sh b/youtube-dlFloat.sh old mode 100644 new mode 100755 diff --git a/youtube-dlFloatAudio.sh b/youtube-dlFloatAudio.sh old mode 100644 new mode 100755 -- cgit v1.2.1