sai*_*116 6 command-line gnome-terminal
假设我打开了 Firefox Browser 和 Libre Office,然后打开了终端。我可以从终端使用命令切换回 Firefox。?
您可以使用wmctrl. 要在终端中安装它,请使用
sudo apt-get install wmctrl
Run Code Online (Sandbox Code Playgroud)
要切换到 Firefox,请在终端中使用以下命令,
wmctrl -a firefox
Run Code Online (Sandbox Code Playgroud)
实际上它切换到一个名称包含“firefox”的窗口。查看man wmctrl更多。