arch-updates polybar module
This commit is contained in:
parent
01ad60f418
commit
b67495a968
|
|
@ -111,18 +111,18 @@ ramp-foreground = ${colors.foreground}
|
||||||
|
|
||||||
[module/pkg]
|
[module/pkg]
|
||||||
type = custom/script
|
type = custom/script
|
||||||
;exec = "~/.config/Scripts/arch-updates.sh -s"
|
exec = "~/.config/Scripts/arch-updates.sh -s"
|
||||||
;tail = true
|
tail = true
|
||||||
;format = <label>
|
format = <label>
|
||||||
;format-prefix = " "
|
format-prefix = " "
|
||||||
;click-right = "~/.config/Scripts/arch-updates.sh -u&"
|
click-right = "~/.config/Scripts/arch-updates.sh -u&"
|
||||||
;click-left = "~/.config/Scripts/arch-updates.sh -c&"
|
click-left = "~/.config/Scripts/arch-updates.sh -c&"
|
||||||
;click-middle = "~/.config/Scripts/arch-updates.sh -n"
|
click-middle = "~/.config/Scripts/arch-updates.sh -n"
|
||||||
;exec = CHECKUPDATES_DB=$(mktemp -d) ~/.config/Scripts/pkg.sh
|
;exec = CHECKUPDATES_DB=$(mktemp -d) ~/.config/Scripts/pkg.sh
|
||||||
exec = ~/.config/Scripts/updates-arch-yay.sh
|
;exec = ~/.config/Scripts/updates-arch-yay.sh
|
||||||
interval = 150
|
;interval = 150
|
||||||
label = %output%
|
;label = %output%
|
||||||
click-left = urxvt -e yay --noconfirm -Syu
|
;click-left = urxvt -e yay --noconfirm -Syu
|
||||||
|
|
||||||
;[module/updates]
|
;[module/updates]
|
||||||
;type = custom/script
|
;type = custom/script
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,9 @@ killall -q polybar
|
||||||
# Wait until the processes have been shut down
|
# Wait until the processes have been shut down
|
||||||
while pgrep -x polybar >/dev/null; do sleep 1; done
|
while pgrep -x polybar >/dev/null; do sleep 1; done
|
||||||
|
|
||||||
|
# Launch arch_updates script
|
||||||
|
~/.config/Scripts/arch-updates.sh & echo $! > ~/.config/Scripts/arch_updates.pid
|
||||||
|
|
||||||
# Launch
|
# Launch
|
||||||
polybar top &
|
polybar top &
|
||||||
polybar bottom &
|
polybar bottom &
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue