37 lines
976 B
Bash
Executable File
37 lines
976 B
Bash
Executable File
#!/bin/sh
|
|
|
|
COLOR=$1
|
|
|
|
change_theme(){
|
|
sudo rm /usr/share/icons/Default-icons
|
|
sudo ln -s -f /usr/share/icons/Tela-$COLOR /usr/share/icons/Default-icons
|
|
sudo rm /usr/share/icons/menu-icon.png
|
|
sudo ln -s -f /usr/share/icons/logo-$COLOR.png /usr/share/icons/menu-icon.png
|
|
xfce4-panel -r
|
|
xfconf-query -c xfce4-desktop -np '/desktop-icons/style' -t 'int' -s '0'
|
|
xfconf-query -c xfce4-desktop -np '/desktop-icons/style' -t 'int' -s '2'
|
|
#sudo ln -s -f /usr/share/themes/marwaita-$COLOR /usr/share/themes/default-theme
|
|
sudo plymouth-set-default-theme -R pepper-$COLOR
|
|
#update-icon-caches /usr/share/icons/*
|
|
sleep 4
|
|
echo "Theme Change Successful"
|
|
}
|
|
|
|
if [ $COLOR = "blue" ]; then
|
|
change_theme
|
|
elif [ $COLOR = "red" ]; then
|
|
change_theme
|
|
elif [ $COLOR = "green" ]; then
|
|
change_theme
|
|
elif [ $COLOR = "pink" ]; then
|
|
change_theme
|
|
elif [ $COLOR = "orange" ]; then
|
|
change_theme
|
|
elif [ $COLOR = "purple" ]; then
|
|
change_theme
|
|
elif [ $COLOR = "yellow" ]; then
|
|
change_theme
|
|
else
|
|
echo "NOT VALID"
|
|
fi
|