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:
parent
6d55ad38a4
commit
aaa67ac623
@ -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]
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user