Questions tagged [xprop]

14 questions
79
votes
5 answers

How can I tell a process PID by its window? (under X11)

How I can tell what the process name of a window is? I need a command that I can run on the terminal. I'm using X11, not Wayland.
Ted
  • 995
24
votes
4 answers

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 I need to edit to add text to the title of an…
Maud Kon
  • 561
16
votes
1 answer

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 --onlyvisible --maxdepth 2 --class "" and then moves…
v010dya
  • 1,502
6
votes
2 answers

Transparent container on half screen in Ubuntu 20.04

Basically, I closed my laptop lid at night and normally it would go to sleep. But, in morning when I opened it, it didn't started at the login screen but on the page where I left it and was unresponsive. So, I again closed and opened the lid and…
mr.loop
  • 227
5
votes
1 answer

Learning terminal by observing commands being run by GUI

Hello I'm new to the Linux system and would like to know if there is a code or application which opens a terminal that will tell me the lines of code being used. For example, If I were to open a folder or directory I would like to know the lines of…
4
votes
1 answer

xprop fails to undecorate window

I am running Ubuntu 16.04. I want to undecorate (remove borders and title bar) of a window. I found an old posted scripts on the net claimed to be working but it doesn't work now. To undecorate: xprop -f _MOTIF_WM_HINTS 32c -set _MOTIF_WM_HINTS…
kenn
  • 5,232
4
votes
1 answer

How can one get executable file-path for a window which is launched as FlatPak application?

I know that xprop | awk '/PID/ {print $3}' | xargs ps and xprop | awk '/COMMAND/ {print $4}' | xargs which work great with GUI applications which are deb-packaged, AppImage'd or Snap'd. But this method does not give executable file-name for…
N0rbert
  • 103,263
3
votes
1 answer

Duplicate icons of the same application created on Dock with no WM_class found

I followed all the steps in this answer: https://askubuntu.com/a/975230/719469 However when I run xprop WM_CLASS in Terminal and click on my application's window, it gives me: WM_CLASS: not found. What should I do to get a single icon of the app…
Kewal Shah
  • 1,044
2
votes
1 answer

Why does my xprop- command fail on login, if I run it from ~/.profile?

I'm running Lubuntu 16.04. It's using openbox as its window manager. I wanted to configure the virtual desktops to be in a grid arrangement rather than a line, which I can do by running this command: xprop -root -f _NET_DESKTOP_LAYOUT 32cccc -set…
Pod
  • 123
2
votes
3 answers

How can I xprop or xwininfo Gnome-Do?

I need to see the X properties of the Gnome-Do popup window, in regard to this question that I asked earlier. The problem is that as soon as the Gnome-Do window loses focus it closes, so I can't change focus to the terminal to run xprop. The answer…
Hubro
  • 1,293
1
vote
1 answer

how to handle unwanted exiting of a command and its output in bash script

I made a one liner script to auto hide a specific window when mouse is not hover over that window. It gets mouse position and geometry of the window and its position (topleftx,toplefty), I added its geometry to the window's starting position to get…
kenn
  • 5,232
1
vote
1 answer

Get xprop class of gnome-screenshot

I'm using a window manager and compositor in Ubuntu. I have blur enabled for transparent windows, which means that when I take a screenshot with gnome-screenshot, the content I'm trying to take a picture of is blurred. With xprop, or some other…
k-a-v
  • 113
0
votes
1 answer

How to get the average wallpaper color in non-gnome and wayland environments, just like Unity?

In GNOME based environments, under X11, the average background color of the wallpaper can be obtained with xprop -root | grep _GNOME_BACKGROUND_REPRESENTATIVE_COLORS It gives an output like _GNOME_BACKGROUND_REPRESENTATIVE_COLORS(STRING) =…
0
votes
2 answers

Can't use xprop on Firefox

i've updated my System to Ubuntu 22.04.1 LTS, which runs pretty good so far. But Firefox behaves weird, i can't use xprop | grep WM_CLASS on Firefox Windows. None of the xprop commands are working, the cursor also don't turn to a cross, when i hover…
Ypsilon
  • 11