xfce-panel display list of windows of a single application?
I am using Xubuntu 14.04 using xfce 4.12 I use a lot of terminals ( 6-8 ) when working. Is it possible to have a xfce panel that lists all windows of a specific application ( terminal in this case ). I have attached a sample screenshot. Image: http://i.imgur.com/n1MvLp8.png Can I do this with some other application if it is not possible with xfce-panel? Why do I need this? Easier to view what terminals are available and can easily click and work in it right away. Thank you. Edit: Updated the image to show the panel I was referring to.
1 Answer 1
I have used the xfce4-terminal, as well as the xfce panel with the openbox window manager on a Ubuntu 14.04 kernel (3.13.53 linux kernel version), and had a similar problem.
I used the default option on the xfce panel initially which displayed the top panel and the second xfce panel as a dock on the bottom. As a work around I deleted the second panel (the dock), and re-added the second panel at the bottom and elongated its dimensions to have identical dimensions as the the top panel.
The xfce panel has settings which you can adjust by right clicking the panel, selecting panel, and selecting panel-preferences. With in panel-preferences you can delete and add panels as well as change each panels settings. This may be the option you are looking for. Another alternative which I employed, which is a work around all by itself and is to install and configure cairo-dock.
Using cairo-dock you can configure it to show each individual occurrence by selecting the integrated option under the behavior setting. By doing so the dock will show each individual initialized terminal resting on the dock as shown below.
Best of luck and go UBUNTU!
Sorry Rivi, I just read re-post, you might ordersorting:
How to show all windows in XFCE?
In XFCE’s windows settings, there is a command called Show Desktop . It minimizes all windows and well, shows the desktop. A more detailed description can be found here, for example. Is there a command available that will show all windows again, i.e. a command that essentially serves as the counter-part by way of a toggle?
@ArtemS.Tashkinov What exactly is the solution here? 🙂 Could you post it as a full answer, so I can mark it as solved?
@ArtemS.Tashkinov I respect that. That is arguably highly honorable of you. However in context of posting on this site, the underlying understanding is a bit nonsensical in my humble opinion. The site serves to share knowledge via replies with quality and threads by way of questions that get answers. and although I haven’t read any community guidelines for comments on here in the last 2-3 years or so, I would think that a link collection in comments isn’t the goal. You would not take credit if you included a clear phrase about the origin.
2 Answers 2
Given the existing ctrl + alt + d keyboard shortcut to Show Desktop , you can use xdotool to toggle show/hide of the desktop. For example, here’s a test script that shows the desktop, waits five seconds, and then shows the windows again:
#!/bin/bash xdotool key ctrl+alt+d sleep 5 xdotool key ctrl+alt+d
But it should be noted that if any windows are shown on the desktop, the Show Desktop operation executed by the ctrl + alt + d shortcut will minimize those windows. So, if xdotool key ctrl+alt+d is run from a terminal to minimize a bunch of windows and show the desktop, and the terminal is then restored to run the command again, the other windows won’t be restored; the terminal will just be minimized.
Get a list of open windows in Linux
ps ax shows all the running processes. I want to do something similar, but instead of the names of the actual processes, I want the window names listed instead. What Linux command will do this?
4 Answers 4
wmctrl -l may be what you’re looking for. The wmctrl program can also perform some simple actions on the windows like moving them around and setting their properties.
xlsclients shows the running clients and xwininfo -root -children shows all children of the root window. That also includes some stuff your window manager or desktop renders.
Here is the way to show names only:
because wmctrl -l shows a bit extra info rather than just names required in the question:
0x020002c6 0 ruslan-Latitude-E6410 fromscratch 0x04600007 0 ruslan-Latitude-E6410 Psensor - Temperature Monitor 0x01600007 0 ruslan-Latitude-E6410 Top Expanded Edge Panel 0x01600017 0 ruslan-Latitude-E6410 Bottom Expanded Edge Panel 0x0200000a -1 ruslan-Latitude-E6410 Desktop 0x05a0000c 0 ruslan-Latitude-E6410 ruslan@ruslan-Latitude-E6410: /var/lib/apt 0x05600085 0 ruslan-Latitude-E6410 index.html (~/Dropbox/cpucraft.com/fromscratch) - gedit
and filtering it by awk we get only names of open windows:
fromscratch Psensor - Temperature Monitor Top Expanded Edge Panel Bottom Expanded Edge Panel Desktop ruslan@ruslan-Latitude-E6410: /var/lib/apt index.html (~/Dropbox/cpucraft.com/fromscratch) - gedit ubuntu - Get a list of open windows in Linux - Super User - Mozilla Firefox cpucraft@cpucraft.com - FileZilla