Script to change Appearance?

Discussions Regarding Software

Moderator: Moderators

Script to change Appearance?

Postby 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...
billwx
Young Hen
 
Posts: 24
Joined: Fri Aug 28, 2015 4:45

Re: Script to change Appearance?

Postby sabayonino » Wed Apr 12, 2017 10:40

Please don't cross-posting

you've already posted here your question.

keep this topic open.
User avatar
sabayonino
Sagely Hen
 
Posts: 2968
Joined: Sun Sep 21, 2008 1:12
Location: Italy

Re: Script to change Appearance?

Postby 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.
svantoviit
Old Dear Hen
 
Posts: 703
Joined: Sun Feb 28, 2010 17:55


Return to Software in General

Who is online

Users browsing this forum: No registered users and 3 guests