Skip to content

Instantly share code, notes, and snippets.

@bencwbrown
Created January 17, 2019 21:49
Show Gist options
  • Save bencwbrown/55f5fc9da356a379c51da7ca92a31ff1 to your computer and use it in GitHub Desktop.
Save bencwbrown/55f5fc9da356a379c51da7ca92a31ff1 to your computer and use it in GitHub Desktop.
Bash script for the argos Gnome extension, which changes the theme.
#!/usr/bin/env bash
echo "Theme"
echo "---"
SUN_ICON=$(curl -s "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/160/apple/155/black-sun-with-rays_2600.png" | base64 -w 0)
MOON_ICON=$(curl -s "https://emojipedia-us.s3.dualstack.us-west-1.amazonaws.com/thumbs/160/apple/155/full-moon-symbol_1f315.png" | base64 -w 0)
echo "Daymode | image='$SUN_ICON' imageWidth=20 bash='gsettings set org.gnome.desktop.interface gtk-theme Adapta-Eta-Maia' terminal=false"
echo "Nightmode | image='$MOON_ICON' imageWidth=20 bash='gsettings set org.gnome.desktop.interface gtk-theme Adapta-Nokto-Eta-Maia' terminal=false"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment