Questions tagged [wmctrl]

wmctrl is a command line utility used to interact with an X Window Manager which is adhering to the EWMH/NetWM specification. It can request and modify certain information by interacting with the window manager from the command line.

Filter by
Sorted by
Tagged with
0
votes
0answers
3 views

Is there anyway to protect/prevent a specified window (of an arbitrary application) from being closed in GNOME?

As the title suggests, I'm looking for a way to "pin" or "lock" a given window so that I can't accidentally close it. My use case for this is typically some long job or download (usually a terminal ...
2
votes
0answers
53 views

How can I show/hide programs using in tray wmctrl?

I'm trying to make my onboard hide/show with a keyboard shortcut (I know ironic, please don't ask why). However I couldn't find a way to do it in their manual, it only shows programs that are windowed ...
1
vote
1answer
86 views

Linux. wmctrl returns incorrect size of gedit

I found strange thing using wmctrl utility to get window size by running wmctrl -lG. I found, that size of gedit window is icnorrect. I equaled sizes of Terminal and gedit window, however wmctrl ...
0
votes
2answers
1k views

wmctrl command to create new workspace

Is there a wmctrl command to create a new workspace? I want to have a button at the end of my workspaces in my bar that will open a new workspace. Here is a screenshot of my bar so you know what I am ...
3
votes
0answers
319 views

set firefox window to open in specific position

I am using ubuntu 10.04 and i want to open firefox window in specific position ,but before calling firefox i need to execute this command metacity --replaceand after a second this command : killall ...
7
votes
1answer
3k views

How to use wmctrl to activate window of a given class?

The output of wmctrl -lx looks like this: 0x020002f5 0 Plasma.Plasma lnx plasma-desktop 0x02a00015 0 okular.Okular lnx TCP/IP Protocol Suite – Okular 0x032000fe 1 amarok.Amarok ...
0
votes
1answer
2k views

Detect window's fullscreen status on Linux?

So basically, I'm trying to write a watchdog script, that checks window titles against a list stored in a file. If the window is fullscreen, the script should do nothing and move on. If the window is ...
1
vote
1answer
355 views

linux - use wmctrl from tty1

When I try to run wmctrl (e.g. wmctrl -l) from a tty outside of X (e.g. tty1), I get "Cannot open display." I have tried setting the $DISPLAY and $XAUTHORITY variables to the values I get from a ...
2
votes
1answer
333 views

Execute wmctrl commands in xinitrc

I'm using XMonad configured to accept commands through wmctrl and would like to start up a few applications through xinitrc and move them to a certain workspace. Those commands work, when I use the ...
4
votes
1answer
3k views

Is there any wmctrl alternatives on OS X?

Is there an alternative of wmctrl on OS X? It seems that wmctrl (installed from Homebrew) only works for X Applications on OS X.
1
vote
1answer
296 views

Get the desktop/viewport of a window in enlightenment?

Okay, so, given a XID of a window I need to get its desktop or viewport as well as the currently active one. Enlightenment does not seem to properly respond to wmctrl which leads to: ***@note:~ > ...
3
votes
1answer
1k views

Trouble installing `wmctrl`

It seems that wmctrl is not installed on my system (Mac OS 10.8), but when I try to install it by cloning a git repo and following the instructions (./configure, make, make install), running make ...
0
votes
0answers
154 views

xubuntu, wmctrl listing a single large display when I have two monitors

I currently have two monitors connected to my computer, the following: [ON LEFT] [ON RIGHT] 1920x1200 1600x900 When I run wmctrol -d I get the following output: 0 * DG: 1152x864 VP: 0,0 ...
11
votes
3answers
9k views

Is there a command line utility equivalent to wmctrl on Windows

I'm trying to write a remote window manager so that I can control my open windows via bluetooth using anyremote. There's wmctrl for Linux that manages windows from the command line. Is there similar ...
5
votes
1answer
3k views

wmctrl says I have one workspace when I actually have four

I'm trying to create one gvim per workspace using this script as a starting point: http://www.openhex.org/notes/2011/1/27/one-vim-server-per-desktops I know when I first found this script months ago, ...