diff --git a/polybar/.config/polybar/config b/polybar/.config/polybar/config index cbcd231..663e98b 100644 --- a/polybar/.config/polybar/config +++ b/polybar/.config/polybar/config @@ -38,7 +38,7 @@ font-2 = siji:pixelsize=10;1 modules-left = ewmh xwindow modules-center = -modules-right = xkeyboard date +modules-right = xkeyboard vpn date tray-position = right tray-padding = 2 @@ -211,3 +211,12 @@ screenchange-reload = true [global/wm] margin-top = 5 margin-bottom = 5 + +[module/vpn] +type = custom/script +exec = echo VPN +exec-if = pgrep --exact openconnect +interval = 5 +format-underline = #a8547e +format-background = #3f1f32 +format-padding = 3