aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2018-11-29 17:06:57 +0100
committerInigoGutierrez <inigogf.95@gmail.com>2018-11-29 17:06:57 +0100
commit22908f63941e3d70b406bbc015a5948282aad410 (patch)
tree7edeb9c3b6da2f503a0b989a0feab87081496111
parent5a54e83ba33476d77de52c9385ba78cf5ec22c75 (diff)
downloadscripts-22908f63941e3d70b406bbc015a5948282aad410.tar.gz
scripts-22908f63941e3d70b406bbc015a5948282aad410.zip
Made executable and cleaned bash explicit calls.
-rwxr-xr-x[-rw-r--r--]README0
-rwxr-xr-x[-rw-r--r--]bgBrowser.sh0
-rwxr-xr-x[-rw-r--r--]bgSelector.sh0
-rwxr-xr-x[-rw-r--r--]brightFirst.sh0
-rwxr-xr-x[-rw-r--r--]brightness.sh0
-rwxr-xr-x[-rw-r--r--]dmenuMount.sh0
-rwxr-xr-x[-rw-r--r--]dmenuTerm.sh23
-rwxr-xr-x[-rw-r--r--]dmenuUmount.sh0
-rwxr-xr-x[-rw-r--r--]months.sh0
-rwxr-xr-x[-rw-r--r--]mpvFloat.sh0
-rwxr-xr-x[-rw-r--r--]mpvFloatLoop.sh0
-rwxr-xr-x[-rw-r--r--]neofetch.sh0
-rwxr-xr-x[-rw-r--r--]notification.sh0
-rwxr-xr-x[-rw-r--r--]pkmBgSelector.sh0
-rwxr-xr-x[-rw-r--r--]prompt.sh0
-rwxr-xr-x[-rw-r--r--]resetConnection.sh0
-rwxr-xr-x[-rw-r--r--]showColors.sh0
-rwxr-xr-x[-rw-r--r--]syncthing.sh0
-rwxr-xr-x[-rw-r--r--]systemControl.sh8
-rwxr-xr-x[-rw-r--r--]webview.sh15
-rwxr-xr-x[-rw-r--r--]wifiDown.sh0
-rwxr-xr-x[-rw-r--r--]years.sh0
-rwxr-xr-x[-rw-r--r--]youtube-dlFloat.sh0
-rwxr-xr-x[-rw-r--r--]youtube-dlFloatAudio.sh0
24 files changed, 25 insertions, 21 deletions
diff --git a/README b/README
index 2879c06..2879c06 100644..100755
--- a/README
+++ b/README
diff --git a/bgBrowser.sh b/bgBrowser.sh
index 3608e30..3608e30 100644..100755
--- a/bgBrowser.sh
+++ b/bgBrowser.sh
diff --git a/bgSelector.sh b/bgSelector.sh
index 541a96b..541a96b 100644..100755
--- a/bgSelector.sh
+++ b/bgSelector.sh
diff --git a/brightFirst.sh b/brightFirst.sh
index 5dd2540..5dd2540 100644..100755
--- a/brightFirst.sh
+++ b/brightFirst.sh
diff --git a/brightness.sh b/brightness.sh
index b104d22..b104d22 100644..100755
--- a/brightness.sh
+++ b/brightness.sh
diff --git a/dmenuMount.sh b/dmenuMount.sh
index 1e39427..1e39427 100644..100755
--- a/dmenuMount.sh
+++ b/dmenuMount.sh
diff --git a/dmenuTerm.sh b/dmenuTerm.sh
index a981797..0cd46ab 100644..100755
--- 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
index 99e60db..99e60db 100644..100755
--- a/dmenuUmount.sh
+++ b/dmenuUmount.sh
diff --git a/months.sh b/months.sh
index b9d822b..b9d822b 100644..100755
--- a/months.sh
+++ b/months.sh
diff --git a/mpvFloat.sh b/mpvFloat.sh
index 566b0b4..566b0b4 100644..100755
--- a/mpvFloat.sh
+++ b/mpvFloat.sh
diff --git a/mpvFloatLoop.sh b/mpvFloatLoop.sh
index 88d6c39..88d6c39 100644..100755
--- a/mpvFloatLoop.sh
+++ b/mpvFloatLoop.sh
diff --git a/neofetch.sh b/neofetch.sh
index e5f8edc..e5f8edc 100644..100755
--- a/neofetch.sh
+++ b/neofetch.sh
diff --git a/notification.sh b/notification.sh
index 99ad0f4..99ad0f4 100644..100755
--- a/notification.sh
+++ b/notification.sh
diff --git a/pkmBgSelector.sh b/pkmBgSelector.sh
index 7fea1b9..7fea1b9 100644..100755
--- a/pkmBgSelector.sh
+++ b/pkmBgSelector.sh
diff --git a/prompt.sh b/prompt.sh
index d0eae46..d0eae46 100644..100755
--- a/prompt.sh
+++ b/prompt.sh
diff --git a/resetConnection.sh b/resetConnection.sh
index 7037006..7037006 100644..100755
--- a/resetConnection.sh
+++ b/resetConnection.sh
diff --git a/showColors.sh b/showColors.sh
index 1b0a19a..1b0a19a 100644..100755
--- a/showColors.sh
+++ b/showColors.sh
diff --git a/syncthing.sh b/syncthing.sh
index a0b0924..a0b0924 100644..100755
--- a/syncthing.sh
+++ b/syncthing.sh
diff --git a/systemControl.sh b/systemControl.sh
index aa200b3..b7ba5ee 100644..100755
--- 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
index 457f9ee..5877325 100644..100755
--- 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
index d8b22d9..d8b22d9 100644..100755
--- a/wifiDown.sh
+++ b/wifiDown.sh
diff --git a/years.sh b/years.sh
index 49494cb..49494cb 100644..100755
--- a/years.sh
+++ b/years.sh
diff --git a/youtube-dlFloat.sh b/youtube-dlFloat.sh
index 56f5eb0..56f5eb0 100644..100755
--- a/youtube-dlFloat.sh
+++ b/youtube-dlFloat.sh
diff --git a/youtube-dlFloatAudio.sh b/youtube-dlFloatAudio.sh
index 1db5d23..1db5d23 100644..100755
--- a/youtube-dlFloatAudio.sh
+++ b/youtube-dlFloatAudio.sh