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

learn more… | top users | synonyms

6
votes
2answers
251 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
79 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
59 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.
2
votes
1answer
136 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. ...
1
vote
1answer
98 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 ...
0
votes
0answers
25 views

wmctrl: Permanently renaming a window

When i use wmctrl to rename a window (Firefox) to something else, the reload of a page or switching to a tab overwrites that name. How can i permanently rename a window? Or how could i re-rename it ...
2
votes
1answer
121 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
112 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
52 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 ...
0
votes
0answers
17 views

Aligning a Window with WMCTRL

I'm running Ubuntu 14.04 on 1366 x 768 display. The following command is meant to align the active window the left side of the desktop (exactly like dragging the window to the left side of the ...
1
vote
1answer
48 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
1k 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 ...
0
votes
1answer
784 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 ...
0
votes
1answer
317 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
572 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
118 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
316 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
56 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
197 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
136 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
559 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
623 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 ...