wmctrl

wmctrl move window to workspace

wmctrl move window to workspace I am trying to use wmctrl to move a window to a workspace. By wmctrl -l window is 0x03e00057 9 meer montazo – Google Search — Mozilla Firefox Command and output is /usr/local/bin/wmctrl -v -i 0x03e00057 -t 3 envir_utf8: 0 No window was specified. My understanding is that -i points …

Total answers: 1

Is there a way to get list of windows on KDE Wayland?

Is there a way to get list of windows on KDE Wayland? In the era of X11, I could do wmctrl -l to list available windows, that I can use in my scripts. $ wmctrl -l 0x01000050 0 my-pc project1 – Readme.md But nowadays most application use Wayland. The above command only shows windows that …

Total answers: 1

Command-line tool to get "click and drag" rectangle coordinates from the screen

Command-line tool to get "click and drag" rectangle coordinates from the screen I would like to execute a command-line command that activates "click and drag" mouse selection on a single local X11 screen. The goal is to: get the selected rectangle X and Y coordinates, get the rectangle width and height, output these values to …

Total answers: 1

Retrieve X11 window ID of a just-launched GUI-program

Retrieve X11 window ID of a just-launched GUI-program I want to retrieve the X id of GUI programs I launch in background, in order to work on their windows properties. I’ve been so far using this workaround: myprogram & sleep 1 winID=$(wmctrl -l | awk ‘/./{line=$0} END{print $1;}’) But this relies on three heavy assumptions: …

Total answers: 2

Resizing a maximized window from the command line

Resizing a maximized window from the command line The following script fails to resize an already maximized window: wmctrl -i -r :ACTIVE: -b remove,maximized_vert,maximized_horz xdotool windowunmap –sync xdotool windowmap –sync wmctrl -r :ACTIVE: -e 0,300,168,740,470 I am pretty sure the culprit is in the middle two lines, which I am meaning to apply to the …

Total answers: 1

How to move a window to a different workspace using its ID, in bash?

How to move a window to a different workspace using its ID, in bash? Currently I have successfully used wmctrl -r :SELECT: -t 2 but something like wmctrl -r -i 0x03e00003 -t 2 does not work. How should I write the command in order to select the window to be moved by ID not by …

Total answers: 1

wmctrl – focus most recent window of an app

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 like to focus the last “focused” window. Same as in Unity. Is …

Total answers: 4