Created
March 16, 2021 10:34
-
-
Save bgalvao/38a3820d8d863701b8512d46ca263607 to your computer and use it in GitHub Desktop.
theme toggling on xfce4
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
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 | |
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
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 | |
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
light |
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/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