/waybar-wireguard

fork of a custom wireguard waybar module + script (clickable)

Primary LanguagePython

waybar-wireguard

ON/OFF on click, default cfg path /etc/wireguard/your_cfg.conf (edit in wireguard.py)

config.jsonc:

"custom/wireguard": {
        "format": "Wireguard {}",
        "interval": "once",
        "signal": 10,
        "exec": "python /home/$USER/.config/waybar/modules/wireguard.py status",
        "exec-on-event": false,
        "on-click": "python /home/$USER/.config/waybar/modules/wireguard.py; pkill -SIGRTMIN+10 waybar",
        "return-type": "json"
    },