Cinnamon theme switch script

Cinnamon theme switch script

Simple dark/light theme switcher script

#!/bin/bash

current_theme=`gsettings get org.cinnamon.desktop.interface gtk-theme`
normal_theme="'Mint-Y-Darker-Aqua'"
dark_theme='Mint-Y-Dark-Aqua'
normal_icon_set='ePapirus'
dark_icon_set='Papirus-Dark'

if [ "$current_theme" == "$normal_theme" ] 
then
    gsettings set org.cinnamon.desktop.interface gtk-theme "$dark_theme"
    gsettings set org.cinnamon.desktop.interface icon-theme "$dark_icon_set"
else
    gsettings set org.cinnamon.desktop.interface gtk-theme "$normal_theme"
    gsettings set org.cinnamon.desktop.interface icon-theme "$normal_icon_set"
fi