diff --git a/.config/polybar/config b/.config/polybar/config index dedd3ff..5c0da5a 100644 --- a/.config/polybar/config +++ b/.config/polybar/config @@ -10,8 +10,8 @@ include-file = ~/.config/polybar/colors monitor = ${env:MONITOR:eDP-1} include-file = ~/.config/polybar/top-bar modules-left = i3 arrow01 xwindow arrow0 -modules-center = term chrome editor fm music vpn -modules-right = arrow10 redshift arrow9 vpn-wireguard-wg arrow8 vpn-nordvpn-status arrow7 wlan arrow6 pkg arrow5 pavolume arrow4 battery arrow3 backlight arrow2 networkmanager arrow1 popup-calendar +modules-center = term chrome editor fm music vpn1 +modules-right = arrow10 redshift arrow9 vpn-wireguard-wg arrow8 vpn arrow7 wlan arrow6 pkg arrow5 pavolume arrow4 battery arrow3 backlight arrow2 networkmanager arrow1 popup-calendar ;tray-position = right ;tray-padding = 2 @@ -125,13 +125,24 @@ label = " %output% " label-foreground = ${colors.color0} label-background = ${colors.color6} -[module/vpn-nordvpn-status] +;[module/vpn-nordvpn-status] +;type = custom/script +;exec = ~/.config/polybar/scripts/nordvpn/vpn-nordvpn-status.sh +;interval = 5 +;label = " %output% " +;label-foreground = ${colors.color0} +;label-background = ${colors.color3} + +[module/vpn] type = custom/script -exec = ~/.config/polybar/scripts/nordvpn/vpn-nordvpn-status.sh +exec = ~/.config/polybar/scripts/nordvpn/vpn_module.sh +click-left = ~/.config/polybar/scripts/nordvpn/vpn_module.sh --toggle-connection +click-right = ~/.config/polybar/scripts/nordvpn/vpn_module.sh --location-menu +click-middle = ~/.config/polybar/scripts/nordvpn/vpn_module.sh --ip_address & interval = 5 -label = " %output% " -label-foreground = ${colors.color0} -label-background = ${colors.color3} +format = " 