1
0
mirror of https://github.com/alrayyes/dotfiles/ synced 2023-11-14 15:56:30 +00:00

left-click works again

This commit is contained in:
Ryan Kes 2020-03-12 01:36:30 +01:00
parent 6d55ad38a4
commit aaa67ac623
2 changed files with 5 additions and 4 deletions

View File

@ -443,6 +443,7 @@ click-right = sh ~/.config/polybar/bin/system-usb-udev --unmount &
[module/wireguard]
type = custom/script
exec = ~/.config/polybar/bin/wireguard-status
;This doesn't work when run in the background for some reason
click-left = ~/.local/bin/wireguard-switch
[settings]

View File

@ -8,11 +8,11 @@ STATUS="$(nmcli device status | grep -c wg0)"
case $STATUS in
1)
sudo wg-quick down wg0
notify-send.py -a wireguard --replaces-process wireguard -i network-vpn-offline-symbolic Wireguard "Connection down"
wg-quick down wg0
notify-send.py -a wireguard --replaces-process wireguard-status -i network-vpn-offline-symbolic Wireguard "Connection down" &
;;
*)
sudo wg-quick up wg0
notify-send.py -a wireguard --replaces-process wireguard -i network-vpn-symbolic Wireguard "Connection up"
wg-quick up wg0
notify-send.py -a wireguard --replaces-process wireguard-status -i network-vpn-symbolic Wireguard "Connection up" &
;;
esac