Skip to content

Instantly share code, notes, and snippets.

@squizzi
Created January 30, 2018 17:04
Show Gist options
  • Save squizzi/f2d69e2bef527702f93f6b247a3529e7 to your computer and use it in GitHub Desktop.
Save squizzi/f2d69e2bef527702f93f6b247a3529e7 to your computer and use it in GitHub Desktop.
stupid script to make my calendar icon reflect the date
# 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