Different themes, different workspaces

Forum rules
Before you post please read how to get help
Post Reply
Captain Brillo
Level 3
Level 3
Posts: 130
Joined: Mon Oct 23, 2017 9:38 pm

Different themes, different workspaces

Post by Captain Brillo » Tue Aug 21, 2018 1:54 pm

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)
Every time I bork the Linux box, I learn something new - what a blast!
If it ain't broke, fix it anyway! Ha Ha!

gm10
Level 18
Level 18
Posts: 8187
Joined: Thu Jun 21, 2018 5:11 pm

Re: Different themes, different workspaces

Post by gm10 » Tue Aug 21, 2018 2:49 pm

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 11
Level 11
Posts: 3985
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Different themes, different workspaces

Post by smurphos » Wed Aug 22, 2018 1:56 am

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.

Post Reply

Return to “Themes, Icons, & Wallpaper”