diff --git a/config/polybar/config.ini b/config/polybar/config.ini index 6778431..83e1577 100644 --- a/config/polybar/config.ini +++ b/config/polybar/config.ini @@ -38,8 +38,8 @@ height = 40 monitor = ${env:MONITOR:} font-0 = Roboto:pixelsize=13;1 -font-1 = Material Icons:pixelsize=15;4 -font-2 = Roboto Mono:pixelsize=13;1 +font-1 = Material Icons:pixelsize=15;3 +font-2 = MesloLGS NF:pixelsize=10;1 separator = "|" separator-padding = 1 @@ -60,7 +60,7 @@ module-margin-left = 2 modules-left = bspwm modules-center = title -modules-right = phone-battery temperature memory cpu battery wlan eth date +modules-right = phone-battery temperature memory cpu audio battery wireguard wlan eth date wm-restack = bspwm diff --git a/config/polybar/modules/status b/config/polybar/modules/status index d7db7ef..0602626 100644 --- a/config/polybar/modules/status +++ b/config/polybar/modules/status @@ -6,17 +6,23 @@ full-at = 100 format-charging = -format-discharging = +format-discharging = -label-charging = %percentage%% +label-charging =  %percentage%% label-discharging = %percentage%% -ramp-capacity-0 =  -ramp-capacity-1 =  -ramp-capacity-2 =  -ramp-capacity-3 =  -ramp-capacity-4 =  +ramp-capacity-0 =  +ramp-capacity-1 =  +ramp-capacity-2 =  +ramp-capacity-3 =  +ramp-capacity-4 =  +ramp-capacity-5 =  +ramp-capacity-6 =  +ramp-capacity-7 =  +ramp-capacity-8 =  +ramp-capacity-9 =  +ramp-capacity-10 =  [module/title] type = internal/xwindow @@ -47,22 +53,31 @@ format-disconnected = label-disconnected =  +[module/wireguard] +type = custom/script + +exec = ~/.config/polybar/wireguard-is-connected.sh + +click-left = ~/.config/polybar/toggle-wireguard.sh + +interval = 5 + [module/eth] type = internal/network interface = enp34s0 interval = 3.0 -label-connected =  %downspeed% +label-connected =  %downspeed% format-connected = -label-disconnected =  +label-disconnected = [module/phone-battery] type = custom/script -exec = echo "$(mconnectctl show-battery /org/mconnect/device/0 | head -1 | awk '{print $2}')%" +exec = echo " $(mconnectctl show-battery /org/mconnect/device/0 | head -1 | awk '{print $2}')%" exec-if = ~/.config/polybar/phone-is-connected.sh @@ -78,4 +93,4 @@ date = %a %e %b label = %date% %time% -format =