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] [module/wireguard]
type = custom/script type = custom/script
exec = ~/.config/polybar/bin/wireguard-status exec = ~/.config/polybar/bin/wireguard-status
;This doesn't work when run in the background for some reason
click-left = ~/.local/bin/wireguard-switch click-left = ~/.local/bin/wireguard-switch
[settings] [settings]

View File

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