Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-06-22 02:06:46

zoloshot
Member
Registered: 2020-04-25
Posts: 9

always on below from command line

is there a way i can make a program (that i run via terminal) initialize with "Always below other windows" or "Always on top" features ?
sorry if repeated or idiot question

Offline

#2 2020-06-22 04:52:50

ToZ
Moderator
From: Canada
Registered: 2011-06-02
Posts: 6,708

Re: always on below from command line

You can create keyboard shortcuts to make the current window always above:

wmctrl -r :ACTIVE: -b toggle,above

...or always below:

wmctrl -r :ACTIVE: -b toggle,below

Or you can use devilspie to automate the process (so a particular window/app always starts with that flag set). Here is an example mousepad.ds file to make mousepad always start above:

(if (is (window_class) "Mousepad") (begin (above) ) )

Offline

#3 2020-06-22 22:09:35

zoloshot
Member
Registered: 2020-04-25
Posts: 9

Re: always on below from command line

thanks , i used devilspie2 instead , which uses .lua

if (get_application_name() == "Rhythmbox") then
	set_window_below(true)
	pin_window()
end

in case anyone wants it , this script keeps Rhythmbox pinned to every workspace and always below

Offline

Board footer

Powered by FluxBB