Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-04-20 23:48:33

nixguy
Member
Registered: 2016-04-06
Posts: 8

change xfwm4-settings through command line

Hello Everyone,

On the xfwm4-settings window, under Focus tab, the "Raise window when clicking inside...." button.

Is there a possible way I can set and unset this option through command line?  I looked at xfwm4-settings --help-all; but, not sure if any options are useful.

Offline

#2 2016-04-21 00:17:01

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,524

Re: change xfwm4-settings through command line

Yes, using xfconf-query. You can use the xfce4-settings-editor to locate the setting you want to change. If you don't know the setting name, run:

xfconf-query -c xfwm4 -m

...in a terminal window and then change the setting in the xfwm4 settings window. The name of the setting will be displayed.

For example:

$ xfconf-query -c xfwm4 -m
Start monitoring channel "xfwm4":

set: /general/raise_on_click

The property that got changed was /general/raise_on_click. You can then run either of the following commands to set, unset, or toggle that setting using xfconf-query:

xfconf-query -c xfwm4 -p /general/raise_on_click -s true
xfconf-query -c xfwm4 -p /general/raise_on_click -s false
xfconf-query -c xfwm4 -p /general/raise_on_click -T

Offline

#3 2016-04-21 01:18:24

nixguy
Member
Registered: 2016-04-06
Posts: 8

Re: change xfwm4-settings through command line

ToZ, thank you very much!!!!!  Exactly what I needed! big_smile

Offline

#4 2016-04-21 01:37:59

nixguy
Member
Registered: 2016-04-06
Posts: 8

Re: change xfwm4-settings through command line

Just another quick question, I assume the -p and -s flags are gtk flags? I could not find the flags from xfwm4 --help-all; and, can't find it in the source code.  Unless, I am not looking in the right place.

Offline

#5 2016-04-21 01:48:35

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 9,524

Re: change xfwm4-settings through command line

They are not from gtk or xfwm4, but rather from xfconf-query. xfwm4 (and many other Xfce components) use xfconf as their configuration system. Have a look at the xfconf-query code or run:

xfconf-query --help

The xfconf-query wiki page has a good explanation of how it works.

Offline

#6 2016-04-21 02:01:35

nixguy
Member
Registered: 2016-04-06
Posts: 8

Re: change xfwm4-settings through command line

Makes sense, since the command is xfconf-query, I was so focused on xfwm4.  Thanks!!!! smile

Last edited by nixguy (2016-04-21 02:03:49)

Offline

Board footer

Powered by FluxBB