8

Is it possible to get the titles of all the running GUI application windows via CLI? The titles which are also shown on the task bar buttons. For example:

  • Firefox: cPanel X - Main
  • Nautilus: File System - File Manager

I am using Linux Mint XFCE (17.3)

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
8thperson
  • 351
  • 1
  • 4
  • 9

1 Answers1

6

You need to use external tool such as for example wmctrl.

To list all running windows pass -l option to it. It is also possible to change title of specified application (short title with -I, long with -N or both with -T).

Run man wmctrl for more info.

jimmij
  • 46,064
  • 19
  • 123
  • 136