aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdmenuTerm.sh7
-rwxr-xr-xresetConnection.sh3
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