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" & |
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
#!/usr/bin/env python | |
""" | |
Jellyfin date fixer | |
Nicola Smaniotto <[email protected]> | |
Runs hourly checks to correct the addition dates of modified movies and episodes. | |
Keeps an external database to compare the dates to. | |
Usage: python jellyfin-date-fixer.py | |
""" |