feat: add WireGuard Waybar custom module #13
Reference in New Issue
Block a user
No description provided.
Delete Branch "feat/wireguard-waybar-module"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Adds a Waybar custom module to display WireGuard VPN status in the bar.
Changes
scripts/wireguard-status.sh — Shell script that outputs JSON for Waybar:
🔒 ↓1.0 GiB ↑500.0 MiB)wgnot installed gracefullywgandipbinariesWG_ICON_LOCKED,WG_ICON_UNLOCKED)waybar/.config/waybar/modules.json — Added
custom/wireguardmodule:return-type: jsonsudo wg-quick up work-laptopsudo wg-quick down work-laptopwaybar/.config/waybar/config.jsonc — Added
custom/wireguardtomodules-right(between network and battery)waybar/.config/waybar/style.css — Added
#custom-wireguardstyling:.connectedclass highlights with@color5.disconnectedclass uses standard module backgroundREADME.org — Added WireGuard module section with setup instructions:
Verification
bash -nsyntax check$mainMod+Ctrl+Vconnect /$mainMod+Ctrl+Shift+Vdisconnect (merged from feat/wireguard-keybinds branch)View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.