Stack Exchange Network

Stack Exchange network consists of 174 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 UNIX/Linux command line tool to interact with an EWMH/NetWM compatible X Window Manager.

0
votes
0answers
23 views

How to make wctrl manipulate multiple xfce4-panel windows?

I have two xfce4-panel windows running and am using wmctrl -x -a xfce4-panel -b add,below to make them both hide under windows, but only the panel 0 actually goes below windows. The second panel, ...
0
votes
0answers
33 views

Ubuntu 18.04 wmctrl issues

So I've just upgraded to 18.04 and have been adjusting settings and such but am having issues with wmctrl. I had a shortcut set for toggling a window to be always on top "wmctrl -r :ACTIVE: -b toggle,...
0
votes
0answers
31 views

Focus and control another window without changing desktop / workspace

If $id is any window on another desktop: wmctrl -ia "$id" xvkbd -window "$id" -text "q\r" I want to send the "q" to the window, but without switching my desktop to that of the ...
1
vote
1answer
25 views

Get process name behind a window

I'm trying to make a script that checks if Spotify is closed. I tried the following to print the number of open Spotify windows, but it doesn't work. wmctrl -l | grep "Spotify" | wc -l The reason is ...
1
vote
0answers
38 views

gnome-terminal is secretive with the runing process in its titlebar (a bug or ?)

Misbehavior of the new gnome terminal (18.04) I used to use wmcrtl to search for the proper window on my crowded desktop and to raise it, set the focus or to do other wm operations... However it ...
1
vote
1answer
60 views

Command for restoring minimized windows

Anyone knows the command to restore minimized windows? I need that command to configure Easystroke. For some reason, misc option is not working in that app so I need to enter the command manually. I'm ...
0
votes
0answers
274 views

wmctrl and xdotool on awesomewm working in terminal in a bash script, not when starting up

i run this script fine from terminal, from a .sh file: xdotool search --class chromium set_desktop_for_window %@ 4 & wmctrl -r \"chromium\-browser\" -t 4 & #sleep2 xdotool search --class ...
1
vote
1answer
208 views

wmctrl Ubuntu 17.10 toggle,above not toggling down

After trying the answers in this question: How to start an app with "Always On Top" set?, specially the one in the comments by @MichaelTunnell: This is the best option for me because I ...
2
votes
1answer
544 views

17.10 workspaces, xdotool, and wmctrl

Under (not-yet-installed) 17.10, I want a fixed number of (not dynamic) workspaces; whether they're presented horizontally or vertically I don't care. Under Ubuntu 16.10 I'm running now, I had do a ...
2
votes
1answer
362 views

Start every window on all workspaces, with a few exclusions

I know about Always on visible workspace But I want all windows to have this as the default when opening, with a few exceptions. The workflow I'm looking for is pretty much the inverse of how it ...
2
votes
1answer
455 views

Skype pop up video hack (forcibly resize window)

I use Skype a lot, and a problem I face is that the video pop up doesn't come in ubuntu, as it does in Windows. I tried to use wmctrl for the desired results. This is what I did: wmctrl -i -r ID -b ...
1
vote
1answer
109 views

How do I make browser window always-on-top (or bottom) whenever I open the broswer?

(Actually I want it to be always-on-bottom, but "on-top" is a more common search term). I know that I can use wmctrl -r "Mozilla Firefox" -b toggle,below to set the browser window to be always-...
1
vote
0answers
26 views

How can I detect Workrave windows?

I have some scripts using xmacro. The problem is the thing that Workrave blocks the input from a keyboard for Micro-breaks. So I would like to pause my xmacro script at the moment when Micro-break ...
1
vote
0answers
93 views

Open a script while working on another program

I would like to know how to open a script in a different workspace while working in another workspace. The script opens different webpages every 2 seconds and it lasts 2 minutes to open all the ...
2
votes
0answers
27 views

Window location in wmctrl [duplicate]

I have open File Manager window in Ubuntu 16.06 (Unity). I want to make this window size to 400px x 400px and I want to locate top-left corner of this window in point (50, 20). To do this I run ...
0
votes
1answer
78 views

Make Brackets open maximised?

I'm running Ubuntu 14.04 with brackets installed (btw, does brackets work on Ubuntu 17? Coz when I checked with 16 it didn't? But anyway...) The problem When I open Brackets it always comes up in ...
1
vote
0answers
34 views

Obtain last active time of window from ID

Distribution used (if that helps): Ubuntu 16.04 LTS with Gnome 3.18.5 I am trying to automate raising a specific application window using a keyboard shortcut. My requirements: Use keyboard shortcut ...
10
votes
3answers
1k views

How do I look up the name of the current workspace?

Is there any way for a bash script to look up the name of the current workspace (virtual desktop)? This seems really useful for things like customizing behaviors in my .bashrc file based on the ...
4
votes
1answer
264 views

Why does my wmctrl -a command not raise my minimized Rhythmbox window?

The problem I am currently adding a few custom shortcuts. I fail at revealing a minimized Rhythmbox window. I use wmctrl in a shell script, see below, for this task. When I press the key combo, ...
1
vote
1answer
205 views

How can I make wmctrl raise the most recently fosused window of an application?

I have a script running wmctrl -x -a "$1". It brings up the window, passed as the argument to the script e.g.: wmctrl -x -a "Firefox" activates firefox. However, with applications that have ...
9
votes
5answers
2k views

How can I kill a specific X window

Given IDs produced by wmctrl -l, I d like to be able to kill the process linked to the window ID. How would you suggest to do it?'
9
votes
2answers
763 views

command to span window across multiple monitors

Trying to create a shortcut to take the active window and display it across two displays. Using the following only maximizes it on a single monitor: wmctrl -r :ACTIVE: -e 0,0,0,1800,2300
2
votes
1answer
508 views

wmctrl fails to resize/move windows inside script

I'm trying to write a script that opens a bunch of programs and moves/resizes the windows on the screen. For example, #!/bin/bash zim wmctrl -r Zim -b toggle,maximized_vert wmctrl -r Zim -e 0,700,0,-...
1
vote
0answers
66 views

How to resize Android Sutdio using wmctrl?

wmctrl works for other windows, but for android studio, it doesn't work for me. Upon investigation, I found the tile of the window as seen by window.get_active_title() is, FocusProxy. I tried the ...
1
vote
1answer
487 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 /home/arun/Iris/...
2
votes
1answer
239 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
2answers
707 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. ...
7
votes
1answer
1k 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
700 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.
17
votes
2answers
672 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 ...
4
votes
2answers
221 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
408 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 ...
3
votes
2answers
753 views

How to make equally sized windows in corners of the screen?

I recently saw this answer to a great question, and I wondered, is this also possible on Ubuntu GNOME 15.10 with GNOME 3.18 and GDM, as well as on Compiz as the answer to that question shows? But the ...
2
votes
1answer
2k 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
552 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?
3
votes
1answer
428 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 ...
3
votes
2answers
969 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 ...
3
votes
1answer
375 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
2k views

Get Active Window ID in Hex not Decimal

How to get the window ID of the focus(active) window in Hex ?
3
votes
2answers
2k 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: #!/...
4
votes
2answers
658 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: ...
5
votes
3answers
4k 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 ...
15
votes
4answers
7k 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
710 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 ...
4
votes
1answer
475 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.
9
votes
2answers
2k 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
589 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 ...
4
votes
1answer
827 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, ...
4
votes
1answer
3k 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 ...
1
vote
1answer
1k 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 ...