如何从命令行生成所有打开的窗口的列表,包括对话框和重复项?
您可以使用wmctrl获取所有打开的窗口的列表。您首先需要安装它。
sudo apt install wmctrl
然后,您可以运行命令。
wmctrl -l
0x0080006a -1 localhost panel
0x0180007c 0 localhost Mozilla Firefox
0x02600007 3 localhost [email protected]: /home/user - Shell - Konsole
0x00600011 1 localhost KTorrent
0x02200007 0 localhost [email protected]: /home/user - Shell - Konsole
1 2 3 4
列:
更多示例:wmctrl-examples
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句