Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-04-19 17:34:13

infinite
Member
Registered: 2015-11-03
Posts: 91

Execute WM shorcut name in terminal

Hi,

Is there a comon program by default who recognize WM shorcuts ?
For instance, to maximize a window :

master@Ubuntu:~$ programname <Alt><F10> --window=windowname

Or a comand that work with all X windows .

Last edited by infinite (2016-04-19 17:36:16)

Offline

#2 2016-04-19 23:34:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,015

Re: Execute WM shorcut name in terminal

wmctrl is a program that can be used to manipulate EWMH/NetWM compatible window managers (like xfwm4). So for example, to toggle them maximize status of a window, you could do:

wmctrl -r Mousepad -b toggle,maximized_vert,maximized_horz

...and it will toggle those two states for any window who's title matches "Mousepad".

If you want to programmatically manage windows you can use wmctrl, though I don't think you can do all xfwm4 window shortcuts (eg. tiling).


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2016-04-22 22:48:53

infinite
Member
Registered: 2015-11-03
Posts: 91

Re: Execute WM shorcut name in terminal

Thanks ToZ .

So, there is no other program than wmctrl that handle windows ?

Offline

#4 2016-04-23 01:50:54

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,015

Re: Execute WM shorcut name in terminal

Depends on what exactly you want to do. wmctrl is really a one-of-a-kind tool when it comes to programmatically manipulating windows. If you are looking for someway to default window properties when the application first starts up, have a look at devilspie.

Is there a reason why you don't want to use wmctrl?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2016-04-23 10:36:22

sixsixfive
Member
From: behind you
Registered: 2012-04-08
Posts: 579
Website

Re: Execute WM shorcut name in terminal

Wouldn't it not better to switch your windowmanager to something else that is more key-friendly than xfwm?

Offline

Board footer

Powered by FluxBB