Questions tagged [wmctrl]

24 questions
6
votes
1 answer

Is it possible to get the directory of a specific nautilus window in a script?

I would like to build a Python script that checks if a specific directory is open in nautilus. So far the best solution I have is to use wmctrl -lxp to list all windows, which gives me output like this: 0x0323d584 0 1006 nautilus.Nautilus …
Erotemic
  • 4,806
  • 4
  • 39
  • 80
5
votes
0 answers

Wayland surface position

I know Wayland protocol doesn't provide option to control shell surface position on the screen. I would like to find a way for controlling window/surface placement. I have tried tools like xdotool and wmctrl, but they only recognize XWayland…
4
votes
3 answers

How to Switch Focus to a Gnome Terminal Tab via Script or Shell Command

I am currently writing a script to open several tabs in gnome-terminal, and set their titles. I can open multiple tabs, but I need to change focus to those tabs (programatically) in order to set their titles from my script. I use zsh and bash…
Todd
  • 2,824
  • 2
  • 29
  • 39
3
votes
1 answer

wmctrl: moving a fullscreen window

A small shell script should fix my ghosting-screen problem. I'm trying to move each window just 1px in a certain direction and in the following second it should do a move in the other direction back. #!/bin/bash while read windowId g x y w h…
Habebit
  • 957
  • 6
  • 23
2
votes
3 answers

How to fix wmctrl Cannot open display when Python open subprocess

This is my program, and it works very well. import subprocess result = subprocess.check_output("wmctrl -l",shell=True,stderr=subprocess.STDOUT) result = result.decode('UTF-8') print(result) Output: 0x03800003 -1 name-PC Desktop 0x03e00037 0…
ddd777
  • 31
  • 6
1
vote
0 answers

Using `wmctrl` and `skip_taskbar to remove an application from the Alt-Tab switcher works for Firefox and Google Chrome but not for CopyQ

Based on the information at Remove app from alt-tab switcher I was able to successfully prevent Google Chrome and Firefox from appearing when I press Alt-Tab by using... wmctrl -r "Google Chrome" -b add,skip_taskbar, and wmctrl -r "Firefox" -b…
Tiel
  • 87
  • 1
  • 9
1
vote
1 answer

How to get current workspace information from Xmonad through bash command / file?

I need the information about the current workspace/screen from Xmonad. I need it externally in a bash script so that I can perform some function based on the current workspace where I am in. I searched the web and it seems like dynamicLog is one of…
harsh atal
  • 411
  • 6
  • 16
1
vote
0 answers

Identify popup window ID by string in popup?

In Firefox, upon reloading some tabs I get an unnamed popup; hence I cannot identify the window ID using xdotool or wmctrl (as far as I know). On the Linux command line, is there a way to get those window IDs, e.g. through matching part of a string…
Victoria Stuart
  • 4,610
  • 2
  • 44
  • 37
1
vote
0 answers

Moving from one workspace to other workspace windows by name

I would like to move application windows from one workspace to other worskpace. What I want If I have two workspaces workspace1 and workspace2: workspace1 old_test1 old_test2 new_test3 workspace2 new_test1 new_test2 What I did so far I used wmctrl…
1
vote
1 answer

bash: display simple sinusoid animation in active window title

I’m using Xubuntu 18.04.2 LTS with the base Greybird theme. My file manager is Nemo (3.8.6) and the window decoration manager is xfwm4. Thanks to this bash script1 (code below and source here…
jlg6
  • 25
  • 5
1
vote
1 answer

(Xubuntu) How to display spinner animation in window title?

Using bash, I have been trying to add and display a simple spinner animation in the window decoration xfwm4 (next to the title of the window) of the Nemo (3.8.6) file manager. I’m using Xubuntu 18.04.2 LTS with the base Greybird theme. Here is what…
jlg6
  • 25
  • 5
1
vote
2 answers

Qt Make Application Always on Top on Weston/Wayland Platform

I would like to arrange focus of two applications in a wayland-weston desktop system. Two applications are: Written in Qt/QML, fullscreen Written with Wayland Client API + OpenGL, fullscreen I would like to keep App#1 always on top and App#2…
mozcelikors
  • 2,582
  • 8
  • 43
  • 77
1
vote
1 answer

difference command in python3 console and python3 program code

I write a program in python3.6 under PyCharm in Ubuntu 18.04 I want to pop up a jpg-file on specific window-coordinates. The only possible way to do this seems to be usage of eog and wmctrl. I did not find an imageviewer, who is able to position the…
user3367867
  • 565
  • 1
  • 7
  • 19
1
vote
1 answer

Count the minimized windows on Linux with bash

I'm trying to build a script that checks that windows under XFCE are minimized before displaying a window I've chosen (it's a part from a bigger project) I tried to recover the count of the open windows with wmctrl but these are not the minimized…
Owlo
  • 15
  • 4
1
vote
1 answer

wmctrl incorrect resize and move - application dependant

When resizing and moving with wmctrl, the outcome is both incorrect and depending on application. Example: At the time of writing I have emacs, chromium, spotify and gnome-terminal running ws=$(wmctrl -d | grep "*" | awk '{print $1}') n=$(wmctrl -l…
jkazan
  • 1,149
  • 12
  • 29
1
2