(SXHkD)~Print now does a selected screenshot

ScrollLock already does the task of reconnecting the network: no
reason to duplicate function.  This is something I usually have to pop
out a terminal for, so I may as well make a binding for it.
This commit is contained in:
2023-10-14 15:38:47 +01:00
parent e23721a989
commit a06187046e

View File

@@ -82,11 +82,7 @@ Pause
# Connections and brightness # Connections and brightness
Print Print
conn=$(nmcli | grep "connected to" | sed 's/.*connected to //g' | head -1); \ scrot -f -s '%Y%m%d_%H%M%S.png' -e 'mv $f ~/Pictures/';
nmcli c down "$conn"; \
notify-send -u low "Turning off wifi"; \
nmcli c up "$conn"; \
notify-send -u low "Reset " $conn;
Scroll_Lock Scroll_Lock
conn=$(nmcli | grep "connected to" | sed 's/.*connected to //g' | head -1); \ conn=$(nmcli | grep "connected to" | sed 's/.*connected to //g' | head -1); \