Skip to content

Instantly share code, notes, and snippets.

@bgalvao
Created March 16, 2021 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgalvao/38a3820d8d863701b8512d46ca263607 to your computer and use it in GitHub Desktop.
Save bgalvao/38a3820d8d863701b8512d46ca263607 to your computer and use it in GitHub Desktop.
theme toggling on xfce4
THEME="vimix-dark-laptop-amethyst"
echo $THEME
# change icon theme
ICON_THEME="Vimix-White-dark"
xfconf-query --channel xsettings --property /Net/IconThemeName --set $ICON_THEME
# change window style
xfconf-query -c xsettings -p /Net/ThemeName -s $THEME
# change window border theme
xfconf-query -c xfwm4 -p /general/theme -s $THEME
# change spotify theme
sed -i 's/current_theme = .*/current_theme = Kaapi/' /home/bee/.config/spicetify/config.ini
spicetify update
THEME="vimix-light-laptop-amethyst"
echo $THEME
# change icon theme
ICON_THEME="Vimix-White"
xfconf-query --channel xsettings --property /Net/IconThemeName --set $ICON_THEME
# change window style
xfconf-query -c xsettings -p /Net/ThemeName -s $THEME
# change window topbar theme
xfconf-query -c xfwm4 -p /general/theme -s $THEME
# change spotify theme
sed -i 's/current_theme = .*/current_theme = Midnight-Light/' /home/bee/.config/spicetify/config.ini
spicetify update
#! /usr/bin/bash
THEME=`cat ~/.theme_status`
case $THEME in
"light")
~/.theme_dark && echo "dark" > ~/.theme_status
;;
"dark")
~/.theme_light && echo "light" > ~/.theme_status
;;
esac
THEME=`cat ~/.theme_status`
echo "theme set to $THEME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment