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.

16 questions
12
votes
3 answers

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 tool in Microsoft Windows? I.e. A command line…
Vik
  • 262
9
votes
1 answer

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 lnx Billy Talent - This Suffering :: …
ps-aux
  • 3,815
5
votes
1 answer

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.
xuhdev
  • 2,111
5
votes
1 answer

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, wmctrl -d listed four workspaces. But now when I…
3
votes
0 answers

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 metacity (for removing title bar in windows), i…
3
votes
1 answer

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 results in a bunch of errors, the first few of which…
Will
  • 660
2
votes
1 answer

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 NOT fullscreen the script should call wmctrl -r…
2
votes
1 answer

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 through the terminal: # Launch a terminal with…
pmr
  • 131
2
votes
0 answers

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 programs that can go to tray. However onboard is…
Y. Sasy
  • 21
1
vote
1 answer

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 terminal emulator inside X, but it changes nothing.
1
vote
1 answer

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:~ > wmctrl -lG 0x01e00002 -1 21 395 310 146 note…
Zorf
  • 361
1
vote
0 answers

X-Windows: sending a mouse click to a window in a different desktop without switching to that desktop?

I am using XFCE4 under Xubuntu 20.04.2. I already know how to use wmctrl and xdotool to identify a window in a different desktop, switch to that desktop, send a mouse click to that window, and then switch back to my current desktop. However, I am…
1
vote
1 answer

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 showed different sizes for these windows. I'm using…
0
votes
0 answers

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 WA: 0,25 3520x1175 1 I also get a similar output…
0
votes
2 answers

How to use wmctrl to pin application to all workspaces

I have a script, called at login, to move specific applications to their respective workspaces I want to pin one application to all workspaces. According to the wmctrl man page, Desktop numbers start at 0. Use -1 to pin to all desktops. However…
Psionman
  • 153
1
2