Fix some polybar stuff

This commit is contained in:
Tobias Reisinger 2023-01-28 18:31:46 +01:00
parent be03e4d50e
commit f2e9a4061f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
2 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -1,6 +1,6 @@
#!/usr/bin/env sh
. "$HOME/.config/environment.local"
. "$HOME/.config/environment"
get_icon() {
case $1 in