Shell命令将一个程序窗口放在另一个前面?

NES*_*NES 13 gnome command-line window-manager

是否存在 shell 命令将 gnome 中已经启动的程序放在另一个程序的前面。

IE:

Gedit 和 Nautilus 已启动。Nautilus 在后台,Gedit 在前台。

如何使用 shell 命令将 Nautilus 放在前面?

kar*_*k87 14

笔记:

  • 可以在此处找到有关 xdotool 的更多信息。


fra*_*ous 8

另一种选择是xdotool

xdotool search --class Nautilus windowactivate

  • 对我来说失败了`XGetWindowProperty[_NET_WM_DESKTOP] failed (code=1)` (3认同)