This commit is contained in:
паша душный 2023-05-03 18:59:40 +03:00
parent 4c901ef8df
commit b732f28833
4 changed files with 46 additions and 56 deletions

View file

@ -200,7 +200,8 @@ monitor = HDMI-A-0
; format-background = ${colors.background-alt}
type = custom/script
; hook-0 = ~/.config/polybar/scripts/weather-plugin.sh
exec = ~/.config/polybar/scripts/weather-plugin.sh
# exec = ~/.config/polybar/scripts/weather-plugin.sh
exec = ANSIWEATHERRC=~/.config/ansiweather/config_for_bar ansiweather | sed 's#.*Sa.*rg: ##' | tr ':' ' '
tail = false
interval = 900
@ -222,7 +223,8 @@ type = custom/ipc
interval = 10
initial = 1
hook-0 = echo  $(mpc --host=192.168.0.186 status %volume%)
# hook-0 = echo  $(mpc --host=192.168.0.186 status %volume%)
hook-0 = echo 󰴸 $(mpc --host=192.168.0.186 status %volume%)
hook-1 = mpc --host=192.168.0.186 volume +1 > /dev/null
hook-2 = mpc --host=192.168.0.186 volume -1 > /dev/null
hook-3 = mpc --host=192.168.0.186 toggleoutput 1 > /dev/null
@ -238,7 +240,7 @@ hook-5 = mpc --host=192.168.0.186 volume -5 > /dev/null
type = custom/script
exec = echo `ddcutil getvcp 10` | sed 's/VCP code 0x10 (Brightness ): current value = //'| sed 's/, max value = 100//'
interval = 20
format-prefix = " "
format-prefix = "󰍹 "
format-suffix = "%"
click-left = ddcutil setvcp 10 + 10
click-right = ddcutil setvcp 10 - 10
@ -418,7 +420,7 @@ format-volume = <ramp-volume> <label-volume>
label-volume = %percentage%%
label-muted =
label-muted = 󰖁
label-muted-foreground = ${colors.disabled}
; Use PA_VOLUME_UI_MAX (~153%) if true, or PA_VOLUME_NORM (100%) if false
@ -430,18 +432,17 @@ click-right = kitty pulsemixer
; click-middle =
; Only applies if <ramp-volume> is used
ramp-volume-0 =
ramp-volume-1 = 奔
ramp-volume-2 =
ramp-volume-0 = 󰕿
ramp-volume-1 = 󰖀
ramp-volume-2 = 󰕾
[module/xkeyboard]
type = internal/xkeyboard
blacklist-0 = num lock
label-layout = %layout%
label-layout = 󰌌 %layout%
label-layout-foreground = ${colors.primary}
; label-indicator-on-capslock = 
label-indicator-padding = 1
label-indicator-margin = 1
label-indicator-foreground = ${colors.background}
@ -452,19 +453,19 @@ type = internal/memory
interval = 2
# format-prefix = " "
format-prefix-foreground = ${colors.primary}
label = %gb_used%/%gb_total%
label = 󰍛 %gb_used%/%gb_total%
[module/swap]
type = internal/memory
interval = 2
# format-prefix = " "
format-prefix-foreground = ${colors.primary}
label = %swap_used%/%swap_total%
label = 󰋊 %swap_used%/%swap_total%
[module/cpu]
type = internal/cpu
interval = 2
format-prefix = " "
format-prefix = "󰻠 "
format-prefix-foreground = ${colors.primary}
label = %percentage:2%%
@ -500,7 +501,7 @@ type = internal/network
interface = wg
interface-type = wired
interval = 3.0
ping-interval = 5
#ping-interval = 5
; unknown-as-up = true
label-connected = 󰒄 %ifname% %local_ip%
label-disconnected = 󰒄 %local_ip%
@ -519,7 +520,7 @@ type = internal/network
interface = enp37s0
interface-type = wired
interval = 3.0
ping-interval = 5
#ping-interval = 5
; accumulate-stats = true
; unknown-as-up = true
; speed-unit = ''
@ -547,7 +548,7 @@ interval = 1
date = %a %d/%m %H:%M
date-alt = %H:%M:%S
label = %date%
label = 󰥔 %date%
label-foreground = ${colors.primary}
right-click = kitty ikhal