Add VPN indicator to polybar
Resolves #7 Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
63797d5bbc
commit
f450e6bc92
2 changed files with 18 additions and 5 deletions
|
@ -43,7 +43,7 @@ module-margin = 2
|
|||
|
||||
modules-left = i3
|
||||
modules-center =
|
||||
modules-right = update gmail todo battery volume backlight wlan network date power
|
||||
modules-right = update gmail todo battery volume backlight vpn wlan ethernet date power
|
||||
tray-position = none
|
||||
separator = |
|
||||
|
||||
|
@ -220,6 +220,18 @@ interval = 0.1
|
|||
scroll-up = light -A 5
|
||||
scroll-down = light -U 5
|
||||
|
||||
##############################################################################
|
||||
# VPN indicator #
|
||||
##############################################################################
|
||||
[module/vpn]
|
||||
type = custom/script
|
||||
exec = nmcli connection show --active | grep "vpn" | cut -d " " -f 1
|
||||
|
||||
format = <label>
|
||||
label = %output%
|
||||
|
||||
interval = 0.1
|
||||
|
||||
|
||||
##############################################################################
|
||||
# WiFi indicator #
|
||||
|
@ -247,7 +259,7 @@ interval = 1
|
|||
##############################################################################
|
||||
# Network indicator #
|
||||
##############################################################################
|
||||
[module/network]
|
||||
[module/ethernet]
|
||||
type = internal/network
|
||||
interface = ${env:POLYBAR_NETWORK}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue