Different themes, different workspaces

Style your desktop
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Captain Brillo

Different themes, different workspaces

Post by Captain Brillo »

Can I do this somehow?
Set up Cinnamon so I can tell what workspace I'm in from the theme I've set?

(reposted from Cinnamon board as per suggestion)
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
gm10

Re: Different themes, different workspaces

Post by gm10 »

Cinnamon doesn't support it as far as I recall. It's easy to script though. Here's an example that works on MATE:

Code: Select all

WORKSPACETHEMES=(Mint-Y Mint-X Arc Arc-Dark)
xprop -root -spy _NET_CURRENT_DESKTOP | while read -r; do
    gsettings set org.mate.interface gtk-theme "${WORKSPACETHEMES[${REPLY: -1}]}"
done
Stick that in a script and run it at startup. I'm not on Cinnamon right now so I don't have the necessary gsettings at hand for that DE but the idea is the same, you or someone else will be able to adapt it.
User avatar
smurphos
Level 18
Level 18
Posts: 8501
Joined: Fri Sep 05, 2014 12:18 am
Location: Irish Brit in Portugal
Contact:

Re: Different themes, different workspaces

Post by smurphos »

The relevant cinnamon keys could include the following depending on which themeable elements you want to change.

Desktop theme (panel and menu etc) - org.cinnamon.theme name
Controls theme (gtk theme for apps - org.cinnamon.desktop.interface gtk-theme
Icon theme - org.cinnamon.desktop.interface icon-theme
Window borders - org.cinnamon.desktop.wm.preferences theme
Cursor theme - org.cinnamon.desktop.interface cursor-theme

You could expand gm10's example script to have different arrays of theme names for the different elements (depending on which you wish to change)

I've just given this a try changing the gtk/controls theme only - it causes the workspace transition to stutter quite significantly on my machine (with about a dozen windows open).

Changing only the desktop theme worked quite nicely with no stuttering.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Locked

Return to “Themes, Icons & Wallpaper”