Questions tagged [wmctrl]

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

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

Is there a way to “unminimize” a window from the terminal? [duplicate]

I'm making a small GUI extension, one of the things with which it struggles however are minimized windows (I do a lot of window moving via wmctrl). I heard that it is impossible to minimize windows ...
0
votes
0answers
51 views

Is it possible to have an invisible desktop

Note, I've rephrased my question below in edit 2. I really like Ubuntu 20.04s desktop system, I am however looking to make a small script to add some functionality to my system and was wondering it is ...
0
votes
1answer
85 views

Start firefox in fullscreen using wmctrl

I wanted to know if the Firefox's config file can be edited such that Firefox starts in fullscreen. I wanted to find out where is Firefox's config file, so that I could go on and add this line there ...
0
votes
1answer
40 views

run a python file immidiately after alt+tab

I wrote a python file, which based on wmctrl output of the current window, changes the panel color. I want to bind this file to the Alt+Tab . I tried using system shortcuts but It disables the normal ...
0
votes
0answers
177 views

Is there a way to Restore Window from maximized, if not where is the code for the window button that does this?

This is not a duplicate of: Command for restoring minimized windows. (The answer is incorrect on that question and I don't know how to contact the mods to have it unmarked as accepted. I did find this ...
0
votes
0answers
44 views

Scroll through opened windows & apps with mouse button and scroll wheel

I have my Logitech G502 mouse with many extra buttons so I wish to be able to hold down a mouse button, use scroll wheel to go through opened windows, release mouse button to select it. The close ...
0
votes
1answer
148 views

How can a bash script running in a window raise/activate its window?

I ran two similar experiments. First one works, second one doesn't. What am I doing wrong? Setup for both experiments: I have two terminal windows (urxvt) side by side (i3 wm, ubuntu 18.04.4 LTS) ...
3
votes
2answers
309 views

How to send standard input to background job?

After several trial & error, I installed another image viewer on my remote machine (feh), setting in up— and tried the command once again. feh WARNING: /tmp/feh_stdin_ZwCjv7 - No Imlib2 loader ...
1
vote
1answer
136 views

take-vector-screenshot: focusing the window before taking the screenshot

I am using take-vector-screenshot to take a PDF screenshot. When I launch take-vector-screenshot, I have to click a button within its window in order to begin the screenshot process. I then need to ...
6
votes
1answer
1k views

Setting terminal window's title: wmctrl versus xdotool

Edit: I am not looking for other ways or better ways to change a window's title or to add titles to tabs in terminals. The answers in the proposed duplicate do not in any way come close to addressing ...
0
votes
1answer
147 views

How to Retrieve an Iconized Program from the Tray with a Keyboard shortcut

I know that many here don't love Electron, but it's here to stay, as many commercial solution providers are using to package the web applications and make them act/feel like desktop apps and have them ...
12
votes
1answer
2k views

How to determine if window is maximised or minimised from bash script

I have a bash script that moves my windows from the left screen to right screen in dual-screen setup. Currently the way it works is cycling through the window ids that are given by xdotool search --...
2
votes
1answer
2k views

wmctrl && xdotool as keyboard shortcut [duplicate]

In my workflow I always have tab 1-3 of chrome as specific pages that never change. I want to make a keyboard shortcut that will navigate to the second tab with Super+Shift+S. If I execute the ...
1
vote
1answer
317 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,...
1
vote
1answer
126 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
63 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 ...
3
votes
2answers
375 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 ...
5
votes
3answers
630 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
966 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
1k 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
839 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 ...
2
votes
0answers
536 views

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

(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
55 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
104 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
40 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
94 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
88 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 ...
11
votes
3answers
3k 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
1k 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
598 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 ...
11
votes
5answers
5k 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
2k 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
1k 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
94 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
1k 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/...
3
votes
1answer
539 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 ...
1
vote
2answers
914 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. ...
9
votes
1answer
3k 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
2k 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
789 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
315 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
702 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
951 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 ...
3
votes
1answer
3k 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
1k 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?
4
votes
1answer
736 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
2k 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
496 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 ...
6
votes
2answers
4k views

Get Active Window ID in Hex not Decimal

How to get the window ID of the focus(active) window in Hex ?
4
votes
2answers
3k 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: #!/...