.dotfiles/.config/polybar/custom.ini

26 lines
717 B
INI

[module/fan-speed]
type = custom/script
exec = $HOME/.config/polybar/scripts/fan-speed.sh
interval = 1
format-prefix = " "
format-prefix-foreground = ${colors.foreground}
format-underline = ${colors.pink}
format = <label>
label = %output:4%
[module/check-arch-updates]
type = custom/script
exec = cat $HOME/.cache/archlinux-updates.txt | wc -l | sed 's/^0$//'
interval = 30
format-prefix = " "
format-prefix-foreground = ${colors.foreground}
format-underline = ${colors.cyan}
format = <label>
click-left = alacritty -e sh -c "$HOME/.local/bin/archlinux-update; checkupdates > $HOME/.cache/archlinux-updates.txt; read" &
label = %output%