From ad816bf5f36eaff87b88264155cb2914fff8a46a Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Fri, 30 May 2025 23:58:34 +0500 Subject: [PATCH] added vpn status module for waybar --- .config/waybar/config.jsonc | 6 ++++++ .config/waybar/style.css | 1 + 2 files changed, 7 insertions(+) diff --git a/.config/waybar/config.jsonc b/.config/waybar/config.jsonc index 77eeae6..78ee35f 100644 --- a/.config/waybar/config.jsonc +++ b/.config/waybar/config.jsonc @@ -15,6 +15,7 @@ "modules-right": [ // "hyprland/language", "sway/language", + "custom/vpn", "pulseaudio", "cpu", "memory", @@ -33,6 +34,11 @@ "interval": 600, "signal": "8" }, + "custom/vpn": { + "exec": "$HOME/Scripts/vpn_controls/check_vpn_status.sh", + "format": "VPN {text}", + "interval": 10 + }, "sway/workspaces": { "tooltip": false, "on-click": "activate", diff --git a/.config/waybar/style.css b/.config/waybar/style.css index e5a6ba6..a7e8cca 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -44,6 +44,7 @@ window#waybar { #cpu, #memory, #custom-weather, +#custom-vpn, #language { border-bottom: 2px solid #7e9cd8; padding-top: 5px;