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