Created
January 30, 2018 17:04
-
-
Save squizzi/f2d69e2bef527702f93f6b247a3529e7 to your computer and use it in GitHub Desktop.
stupid script to make my calendar icon reflect the date
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
# Replace the calendar icon with the correct date daily | |
string=$(date +%d) | |
if [ ${#string} -le 2 ]; then | |
string=$(printf %02d $string) | |
fi | |
sed -i "s/calendar-blue-[0-9][0-9]*/calendar-blue-$string/" ~/.local/share/applications/chrome-ejjicmeblgpmajnghnpcppodonldlgfn-Profile_2.desktop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment