wmctrl is a UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager.

learn more… | top users | synonyms

1
vote
1answer
65 views

Hide GUI of program after auto launching on startup

After suffering from a bug in Redshift, I found a great replacement, Iris. I have put the Iris folder in my home directory, and added the following command to Startup Applications sh ...
1
vote
1answer
57 views

Can I automatically send a particular application's window to the lowest z-position, when it loses focus?

I do most of my work in two applications: my web browser and my editor. I switch back and forth between them frequently with Alt-Tab. I also have an IM client (Hipchat) open at all times, but I ...
0
votes
1answer
78 views

Is it possible to cycle through workspaces in Unity (14.04+)?

I have configured my keyboard shortcuts so that Alt + left takes me to the work space left, and Alt + right takes me to the work space to the right, but I would rather have one set of keys to cycle. ...
3
votes
1answer
65 views

Why can't I move a window to the top left corner with wmctrl in Unity?

I've been playing around with wmctrl to take more control of my windows. I've encountered a weird behaviour where Unity reserves double the space. See this screen shot: I opened the terminal and ...
1
vote
0answers
40 views

Why isn't wmctrl working?

I am on Ubuntu 14.04. I installed wmctrl using sudo apt-get install wmctrl. Now in the terminal when I try wmctrl -s 0 or wmctrl -s 1 nothing happens. I don't even get any error.
15
votes
2answers
409 views

Can I minimize a window into a box on Unity?

On Irix's 4Dwm, there was an ability to minimise windows into a box (contrary to the task bar used by modern window managers). I have seen this also on an old HPUX. See the "console" square in the ...
3
votes
2answers
94 views

How can I make a shortcut to raise an application's window if it exists?

I constantly switch between Sublime Text, Terminal and Chrome. I'd like to bind shortcut like "Alt + 1" so my current Terminal and current Google Chrome opens. Right now, each time i launch Google ...
2
votes
1answer
79 views

How can I prevent annoying workspace- overlapping window appearance?

In the current workspace, I don't want to see the edge of a window I was working with on another workspace. Also I like being able to shove a window mostly off screen so forcing bounds wouldn't be a ...
2
votes
1answer
188 views

How to force an application window to be automatically maximized after starting the application?

I tried to use Docky, then I removed it and after that my browser (Chromium) can't be opened in maximum height, every time I should maximize it myself. (XFCE desktop)
0
votes
1answer
44 views

Turn off workspace switch-over display

Using LightDM and wmctrl to set up workspaces and switch between them. How can I deactivate the screen which is very briefly shown when switching between workspaces?
0
votes
0answers
126 views

Open vlc with arguments at a specific XY position and specific size

new ubuntu user here. I'm working on a video project where I need to open VLC with arguments at a specific xy position with a certain size The VLC command is the following vlc ...
6
votes
1answer
117 views

Window 'grouping'?

I was just wondering, is there any way of 'grouping' windows? I mean, is there a way of joining the edges of two or more windows together so that when one is moved, the other moves with it, acting as ...
2
votes
2answers
148 views

How can I identify different Chrome windows when using the “Continue where you left off” -option (to use in wmctrl)?

I am using several Chrome windows (3-5) with many open tabs on each and I am using "On startup" > "Continue where you left off" settings. The problem is, when I start the chrome, all the windows are ...
0
votes
0answers
147 views

How to configure multiple skype chat windows in linux

How to position multiple Chat windows on linux at specified position. Suppose I chat with two users at a time. How do I specify the position of multiple window. and how do i grep that particular ...
5
votes
1answer
214 views

How can I move a window from an invisible viewport to the current one, without switching viewports

I use 15.04 with Unity and 4 virtual desktops. When I have opened a window on desktop 1 and am viewing desktop 2 (for example), is there a way to easily get that window from desktop 1 to show up on ...
2
votes
1answer
239 views

Get Active Window ID in Hex not Decimal

How to get the window ID of the focus(active) window in Hex ?
1
vote
2answers
241 views

Executing wmctrl from bash

After playing a little from the terminal with wmctrl, now comes the next step. Execute wmctrl from a bash script. I do achieve to execute wmctrl in a bash when it is completely alone. Example: ...
3
votes
2answers
133 views

wmctrl does not resize my window

I would like to resize a web browser to a specific size. I have been trying to resize my window (testing wmctrl) using wmctrl but somehow is does not resize it, however the position works. I tried: ...
2
votes
2answers
450 views

Saving and restoring window positions

I'm experiencing a bug where when the machine comes back from standby a monitor connected via displayport (MST) does not come back on, however the windows are still in the area it cover if it did come ...
13
votes
4answers
2k views

How do I permanently change window titles?

Which files are involved in generating the window title? For example, if you open Rhythmbox, you see the program name as the window title. But it’s not generated by the .desktop file. Which file(s) do ...
2
votes
2answers
204 views

How can I find windows of a specific application and place them into a grid?

I'm trying to write a script to identify all open chrome windows and move them into a grid layout on a large screen I'm not sure how to find out what the best resolutions would be so I was going to ...
3
votes
1answer
183 views

Resizing window to a particular size

I want to resize a game's window to 1280x720. I tried with wctrl and xdotools but it wasn't working. I'm using 15.04. Here's a video showing the problem.
5
votes
1answer
495 views

What causes the deviation in the wmctrl window move command

About wmctrl With wmctrl (not installed by default), we can get information on windows, their id, their geometry, the pid they belong to etc. We can also move or resize windows with several commands. ...
2
votes
1answer
322 views

Can I set a keybinding to resize a window to half its size, in a chosen direction?

Using Ubuntu 14.04, I'm looking into getting a 40" 4k display and have found how to resize windows down to quarter sections of the screen, but I would like the ability to further resize them down if ...
2
votes
1answer
424 views

What is exactly the relation between wmctrl -d and wmctrl -lG in Unity?

from man wmctrl: wmctrl is a command that can be used to interact with an X Window manager that is compatible with the EWMH/NetWM specification. wmctrl can query the window manager for information, ...
2
votes
1answer
461 views

How to close only one window of an application?

I know that if I get the sid through : ps -ax | grep firefox and use : kill -9 "sid" I will close all the windows of the program. How can I close only one window of an application running through ...
0
votes
1answer
175 views

How do I use wmctrl to detect if a window is present?

I am doing some UI automation and I want to perform some task based on the window being present. The window only opens up in same cases. The command that I want to use is: wmctrl -a "Confirm New ...
1
vote
1answer
89 views

Raise all windows with a specific title

I'm trying to find a way to raise all the windows that have one, specific title. For example, I have two windows named superconky (yes, you guessed it, I'm trying to get conky running in lubuntu). I ...
3
votes
2answers
2k views

How can I have an application automatically display on all desktops under openbox?

Is it possible to use wmctrl or something else to make a specific window automatically display on all desktops? I use the Prime Player Google Play Music miniplayer Chrome extension to control music ...
1
vote
1answer
1k views

Why wmctrl doesn't work for certain windows?

francisco@Ubuntu:~$ wmctrl -l 0x02600006 0 Ubuntu Área de trabalho 0x03c00002 0 Ubuntu XdndCollectionWindowImp 0x03c00005 0 Ubuntu unity-launcher 0x03c00008 0 Ubuntu unity-panel 0x03c0000b 0 ...
1
vote
1answer
553 views

Trying to launch application in full screen mode on boot

I'm trying to write a bash script to launch XBMC in full screen mode using wmctrl. I'm using wmctrl so I don't lose the ability to alt-tab, etc and get back to the desktop/GUI if I need to, since ...
0
votes
3answers
845 views

Focus or open window in gnome on keyboard shortcut

As described here (askubuntu.com/questions/234206/shortcut-to-switch-to-app/328842) the wmctrl gives you access to your windows. So you can switch via keyboard. But I like to have one shortcut to open ...
0
votes
1answer
138 views

How does “show desktop” work?

How does Super+D work to show the desktop? Does it minimize all windows? Or does it set the desktop as "on top"? Or does it make all windows invisible? Can I exclude certain windows/applications ...
0
votes
2answers
457 views

How to get wmctrl output in python

How can I get the output of the terminal code "wmctrl -m" $ wmctrl -m Name: GNOME Shell Class: N/A PID: N/A Window manager's "showing the desktop" mode: ON in python code? I don't know how to ...
0
votes
1answer
67 views

Programmatically Present Windows (Invoke Window Picker) in Compiz

Is there a bash command to invoke what Super+W does in Ubuntu?
0
votes
1answer
291 views

wmctrl on Ubuntu Touch

I want to control windows via Window manager controls (wmctrl). I am able to successfully switch between qml application windows using wmctrl commands on the Ubuntu Desktop. But I am running same ...
1
vote
1answer
203 views

wmctrl - wait until window is closed

I'm using the wmctrl to close running windows when I want shutdown the computer. It's because I need to save workspace in Eclipse and also I don't want to lost my opened tabs in Chrome. I wrote a ...
5
votes
1answer
841 views

wmctrl ignore other workspaces

My question is very similar to Make wmctrl ignore other-than-current workspace's windows. The fact is I use XFCE so wmctrl actually sees more desktops. petr@sova:~$ wmctrl -d 0 * DG: 1600x900 ...
4
votes
2answers
1k views

wmctrl - focus most recent window of an app

I've created some shortcuts mimicking the Unity's Mod4 + num behavior. wmctrl -xa Sublime || subl What I don't like, is that once sublime is running, it always focuses the first opened window. I'd ...
3
votes
2answers
1k views

Compiz Commands “edges actions” (screen edge bindings) not always enabled on startup.

When logging in, edges are sometimes unresponsive, ie right click on the edge brings the usual right click menu instead of the Compiz command. And yes, compiz is running (wmctrl -m -> Compiz). It can ...