diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2019-03-13 14:42:35 +0100 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2019-03-13 14:42:35 +0100 |
commit | 0b36c1d85ab1ca184d8ac3e223c4035f4322f304 (patch) | |
tree | 3d2408da6527aae16f9c9143a321fdbbd15c2ed8 | |
parent | a8eb4df1443f0b9c0f402d28b82d1a21b6613ac3 (diff) | |
download | scripts-0b36c1d85ab1ca184d8ac3e223c4035f4322f304.tar.gz scripts-0b36c1d85ab1ca184d8ac3e223c4035f4322f304.zip |
Fixed reset connection functionality and moved it to dmenuTerm.sh.
-rwxr-xr-x | dmenuTerm.sh | 7 | ||||
-rwxr-xr-x | resetConnection.sh | 3 |
2 files changed, 3 insertions, 7 deletions
diff --git a/dmenuTerm.sh b/dmenuTerm.sh index 70aa042..a959673 100755 --- a/dmenuTerm.sh +++ b/dmenuTerm.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/bin/sh # dmenu script for opening console programs and scripts directly -options="neofetch\ncmus\ncmus (float)\nnewsboat\nneomutt\nweather\nsyncthing\nbrightFirst\nresetConnection\nwifiUp\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode\nemojis" +options="neofetch\ncmus\ncmus (float)\nnewsboat\nneomutt\nweather\nsyncthing\nbrightFirst\nReset NetworkManager\nwifiUp\nwifiDown\nyears\nmonths\nbg selection\nshowColors\npython\nmusicMode\nClose music mode\nemojis" chosen=$(echo -e "$options" | dmenu -i -p "~$ urxvt -e") @@ -22,8 +22,7 @@ case "$chosen" in syncthing) urxvt -e ~/scripts/syncthing.sh ;; # sudo stuff brightFirst) sudo ~/scripts/brightFirst.sh ;; - #resetConnection) urxvt -title floating -geometry 32x1 -e sudo ~/scripts/resetConnection.sh ;; - resetConnection) sudo ~/scripts/resetConnection.sh ;; + "Restart NetworkManager") sudo systemctl restart NetworkManager ;; wifiUp) wifiUp.sh ;; wifiDown) wifiDown.sh ;; # other diff --git a/resetConnection.sh b/resetConnection.sh deleted file mode 100755 index 7037006..0000000 --- a/resetConnection.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -sudo ifconfig wlp2s0 up -service network-manager restart |