diff options
-rwxr-xr-x | dmenuTerm.sh | 7 | ||||
-rwxr-xr-x | wifiDown.sh | 2 | ||||
-rwxr-xr-x | wifiUp.sh | 2 |
3 files changed, 6 insertions, 5 deletions
diff --git a/dmenuTerm.sh b/dmenuTerm.sh index 7835e3d..70aa042 100755 --- a/dmenuTerm.sh +++ b/dmenuTerm.sh @@ -1,7 +1,7 @@ #!/bin/bash # dmenu script for opening console programs and scripts directly -options="neofetch\ncmus\ncmus (float)\nnewsboat\nneomutt\nweather\nsyncthing\nbrightFirst\nresetConnection\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode\nemojis" +options="neofetch\ncmus\ncmus (float)\nnewsboat\nneomutt\nweather\nsyncthing\nbrightFirst\nresetConnection\nwifiUp\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode\nemojis" chosen=$(echo -e "$options" | dmenu -i -p "~$ urxvt -e") @@ -21,12 +21,11 @@ case "$chosen" in neomutt) urxvt -e neomutt ;; syncthing) urxvt -e ~/scripts/syncthing.sh ;; # sudo stuff - #brightFirst) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/brightFirst.sh ;; brightFirst) sudo ~/scripts/brightFirst.sh ;; #resetConnection) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/resetConnection.sh ;; resetConnection) sudo ~/scripts/resetConnection.sh ;; - #wifiDown) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/wifiDown.sh ;; - wifiDown) sudo ~/scripts/wifiDown.sh ;; + wifiUp) wifiUp.sh ;; + wifiDown) wifiDown.sh ;; # other musicMode) ~/scripts/musicMode.sh ;; "Close music mode") ~/scripts/closeMusicMode.sh ;; diff --git a/wifiDown.sh b/wifiDown.sh index 5d0b316..20d7eaa 100755 --- a/wifiDown.sh +++ b/wifiDown.sh @@ -1,2 +1,2 @@ -#!/bin/bash +#!/bin/sh nmcli radio wifi off diff --git a/wifiUp.sh b/wifiUp.sh new file mode 100755 index 0000000..8ff8f62 --- /dev/null +++ b/wifiUp.sh @@ -0,0 +1,2 @@ +#!/bin/sh +nmcli radio wifi on |