Script to change Appearance?

Discussions Regarding Software

Moderator: Moderators

Post Reply
Young Hen
Posts: 33
Joined: Fri Aug 28, 2015 4:45

Script to change Appearance?

Post by billwx » Wed Apr 12, 2017 6:18

Hi all,
I use Sabayon MATE, generally with the Green Laguna theme, but when in the pic viewer gThumb i like the dark background of Black MATE. Is there a way to write a script that switches to Black MATE when gThumb is opened, and back to Green Laguna when i leave the picture browser? Of course this is not a pressing issue. I have the appearance icon in my taskbar so can change it with a few extra clicks. My main reason for asking is that i know there are tons of shortcuts that can be created by scripts, but have never written or used one. Aways curious to learn...

User avatar
Sagely Hen
Posts: 3545
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Script to change Appearance?

Post by sabayonino » Wed Apr 12, 2017 10:40

Please don't cross-posting

you've already posted here your question.

keep this topic open.

Old Dear Hen
Posts: 757
Joined: Sun Feb 28, 2010 17:55

Re: Script to change Appearance?

Post by svantoviit » Sun Apr 30, 2017 8:27

Not on MATE so I can't give you the exact instructions just a brief guide.
Look for the command that switches the theme and then build your script as follows:
- create a trap when gThumb exits to set the theme to default (see man bash for more info)
- switch theme
- start gThumb

I would call the script gthumb and put it into /usr/local/bin.

Post Reply