Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [wmctrl]

wmctrl is a command for EWMH- and NetWM-compatible X Window managers on Linux systems. It can be used to control windows by their characteristics on workspaces and on external displays.

1
vote
1answer
18 views

Is it possible to move window out of the screen border?

So I'm currently moving application Windows with wmctrl but I can't move a window outside the screen's border. Not talking about moving outside top left corner which we can't even acheive it by mouse, ...
0
votes
0answers
36 views

Gnome-terminal's opened after first one is opened & minimised, open but don't come to focus

I am running Arch, tint2 & Openbox with all the latest updates. I have the following snippet in Openbox which is a keyboard shortcut; <keybind key="w-t"><action name="Execute"><...
0
votes
1answer
104 views

How to activate most recently focused app window in xfce4/xfwm4?

I use my function keys for specific applications (F1 chrome, F2 terminal, etc). I have a script bound to a shortcut key to activate the right application, and that works, but it doesn't activate the ...
-1
votes
1answer
69 views

Constantly update .txt file with title of a window in Linux?

I have an application with a window title that, every second, I want to update a .txt file with that window title. I have been trying to pull this off in bash with wmctrl -l, but I can't get anywhere. ...
0
votes
0answers
69 views

move from one xterm and back again using wmctrl

I'm running fvwm and have multiple virtual desktops open. I'd like to be able to write a bash script that would take me from one xterm to another---this part is easy, using wmctrl -a ---and then back ...
1
vote
0answers
107 views

How to superimpose window on panel bar

Fullscreen mode allows a window to cover the whole screen (hence its name), even over the panel bar. How can this be done for a window without entering the fullscreen mode? Assuming a panel bar on ...
2
votes
0answers
198 views

wmctrl doesn't move window when snapped or tiled

I'm using Mint 18.1 cinnamon. I'm trying to write a little bash program to move windows around. I have a command that will remove maximized_vert and maximized_horz then move the window. It works ...
4
votes
1answer
149 views

How can I monitor in real time the changes to the browser's WM_NAME

I need to check how the browser's WM_NAME (let's say google-chrome) is changing in real time. How can I do that ?
3
votes
0answers
370 views

How to launch an application as a dock on openbox

If i do obxprop|grep dock and click on gnome-panel for example, my result is : _OB_APP_TYPE(UTF8_STRING) = "dock" For the rest, it's : _OB_APP_TYPE(UTF8_STRING) = "normal" How can i force a ...
1
vote
1answer
248 views

A tool that let's you draw rectange on screen, gives dimensions + X-Y? [closed]

a tool like: xprop wmctrl xdotool but it needs to permit me to draw a shape on the screen. then it should tell me the dimensions + the x-y coordinates is there such tool ?
2
votes
5answers
644 views

Getting just the application name from wmctrl -l

I am trying to just get the application name out of this code: wmctrl -l but I don't know how to do it! If you could please explain how I could do this, that would be great. EDIT: The output of ...
8
votes
1answer
3k views

How to customize window tiling zones/grid?

In Cinnamon, pressing super+arrow keys (or other similar shortcut) resizes current window into a tile (snaps to grid). How can I customize this grid? For example I would like to split screen into 3 ...
1
vote
1answer
528 views

Sending key with wmctrl

Is it possible using wmctrl to send keystrokes to a window? I know it's possible by using xdotool. Both tools are very similar, so maybe I missed something when I read the man pages for wmctrl.
1
vote
0answers
118 views

How to run program from specific viewport (not how to move it there)

Is there a way to run a program from a specific viewport (monitor)? All explanations I found, were about moving a window after it has been created, which is not what I am trying to do. Why: I have ...
1
vote
2answers
82 views

How to move windows of dimension range to Workspace 2?

I have many figures of widthxheight (550-570)x(465-486) at the southwest logically set there by Matlab's movegui() function. I would like to open all those southwest windows of the size range in an ...
0
votes
1answer
69 views

Creating a specific chrome window and use it as drop-down search window

I am using a simple script runs as "toggle.sh process1" which toggles visibility of process1 if it exists and if it doesn't exist then it launches process1. It is really simple but useful. I use it ...
2
votes
0answers
58 views

stopping terminal command gnome-open from opening files as maximised

when I use the terminal command 'gnome-open' for opening files it causes them to always open as maximised, this is a problem because in its maximised form I can't change its position and size using '...
1
vote
0answers
186 views

Simplest way to tell if a GTK application (e.g. Firefox) is fully loaded and ready, in order to maximize it

In Linux kiosks, in order to reset some applications'state "behind the scenes" (while the screensaver blanks the screen), I use a BASH script which among other things calls wmctrl, with the task of ...
1
vote
0answers
549 views

How to change title of active window using wmctrl

I'm using fluxbox window manager and recently I've added "always on top" shortcut to my "keys" file. Mod1 a :ExecCommand wmctrl -r :ACTIVE: -b toggle,above But I'd like to know if window state is "...
1
vote
2answers
98 views

How are window-ids given out by MATE window manager?

While trying to write a script involving wmctrl ( since MATE on LMDE 2 doesn't offer as many advanced features as other WM configurations involving Compiz, which I don't have on LMDE 2), I came across ...
6
votes
3answers
4k views

How can I automate window tiling with a custom width? (Cinnamon)

I am running Linux Mint 17 Cinnamon 2.4.8. I really like xdotool, but it conflicts with Cinnamon's awesome snapping/tiling feature. If I run the following command, it does NOT work if the current ...
3
votes
1answer
3k views

Stretch window over two monitors with “gap” in between

I have a dual monitor setup with Compiz as window manager on Ubuntu 14.04. I can resize a window to stretch over both windows. However, while the physical display panels are a few centimeters apart, ...
4
votes
1answer
654 views

Retrieve X11 window ID of a just-launched GUI-program

I want to retrieve the X id of GUI programs I launch in background, in order to work on their windows properties. I've been so far using this workaround: myprogram & sleep 1 winID=$(wmctrl -l | ...
1
vote
1answer
666 views

how to determine in what viewport (compiz/unity) a window is placed?

I am writing a script that requires determining in what viewport a window is placed. My desktop is 2x2 (4 viewports), it is usually thought as being 4 virtual desktops but on compiz/unity it is ...
1
vote
1answer
251 views

Opening a window in a specific workspace?

In Ubuntu 14.04, is it possible (perhaps using wmctrl?) to activate an instance of a window in a specific workspace? Example: Suppose I'm in workspace 1, and I have a google-chrome window open in ...
1
vote
3answers
1k views

WMCTRL not working after starting xfce4-terminal

If I type these two commands in a terminal: xfce4-terminal --hide-menubar --hide-borders --hide-toolbars --title=dt wmctrl -r dt -e 0,10,10,720,720 I get the desired result (position and resize of ...
7
votes
1answer
2k views

Resizing a maximized window from the command line

The following script fails to resize an already maximized window: wmctrl -i -r :ACTIVE: -b remove,maximized_vert,maximized_horz xdotool windowunmap --sync xdotool windowmap --sync wmctrl -r :ACTIVE:...
0
votes
1answer
140 views

Wmctrl Resizing Issue

The following fails to resize my active window (simply nothing happens). Is there something I'm missing? The command I used is: wmctrl -r -e :ACTIVE: 0,100,100,600,400
1
vote
1answer
668 views

call a script if a zenity window is minimized, resized or moved

I would like to add an event-catcher, if my the zenity window gets minimized, resized or moved. I already call a script if the window is closed or the button is pressed in my typebreak script But I ...
1
vote
1answer
333 views

Get report of the gui application processes

I want to list main applications processes report in this format ps -e -o pid,comm,pmem,pcpu,uname To filter main GUI applications wmctrl -pl is the only way I can get processes ids.its great if ...
4
votes
1answer
4k views

How to move a window to a different workspace using its ID, in bash?

Currently I have successfully used wmctrl -r :SELECT: -t 2 but something like wmctrl -r -i 0x03e00003 -t 2 does not work. How should I write the command in order to select the window to be moved ...
7
votes
2answers
6k views

How do I resize the active window to 50% with wmctrl?

I would like to resize the window to the left half of the screen. A solution to achieve that would be to use wmctrl and keybind the right command to a keyboard shortcut. But the manpage only shows ...