diff --git a/.config/polybar/custom.ini b/.config/polybar/custom.ini index 2a8447e..5ac576d 100644 --- a/.config/polybar/custom.ini +++ b/.config/polybar/custom.ini @@ -12,7 +12,7 @@ [module/check-arch-updates] type = custom/script - exec = cat $HOME/.cache/archlinux-updates.txt | wc -l | sed 's/^0$//' + exec = wc -l $HOME/.cache/archlinux-updates.txt 2>/dev/null | sed 's/^0$//' interval = 30 format-prefix = " " @@ -26,7 +26,7 @@ [module/bsp-layout] type = custom/script - exec = bsp-layout get $(bspc query -D --names -d focused) + exec = bsp-layout get $(bspc query -D --names -d focused) | sed -E 's/^(-|tiled)$//m' interval = 0.1 format-prefix = " " @@ -40,11 +40,11 @@ [module/bsp-layout-primary] inherit = module/bsp-layout - exec = bsp-layout get $(bspc query -D --names -d ${MONITOR_PRIMARY}:focused) + exec = bsp-layout get $(bspc query -D --names -d ${MONITOR_PRIMARY}:focused) | sed -E 's/^(-|tiled)$//m' [module/bsp-layout-secondary] inherit = module/bsp-layout - exec = bsp-layout get $(bspc query -D --names -d ${MONITOR_SECONDARY}:focused) + exec = bsp-layout get $(bspc query -D --names -d ${MONITOR_SECONDARY}:focused) | sed -E 's/^(-|tiled)$//m' [module/openweather] type = custom/script diff --git a/.config/polybar/scripts/openweather.sh b/.config/polybar/scripts/openweather.sh index 2e94137..6cae21e 100755 --- a/.config/polybar/scripts/openweather.sh +++ b/.config/polybar/scripts/openweather.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -. "$HOME/.config/environment.local" +. "$HOME/.config/environment" get_icon() { case $1 in