This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[module/updates] | |
type = custom/script | |
interval = 10 | |
format = <label> | |
format-prefix = " " | |
format-foreground = ${colors.color0} | |
format-background = ${colors.color4} | |
exec = cat updates.txt | wc -l | |
click-left = notify-send "$(if [ $(cat updates.txt | wc -l) != 0 ]; then echo 'Available updates ('$(cat updates.txt | wc -l)'):'; else echo 'Everything up to date!'; fi)" "$(cat updates.txt | egrep -o '^[^\ ]+')" | |
click-right = urxvt -e zsh -c "sleep 0.2s; i3-msg floating enabled; clear; pacaur -Syu; checkupdates > updates.txt" & |