我的 i3 配置文件中有以下几行:
# Startup applications.
exec firefox
exec gnome-terminal
exec nautilus
这些行按预期启动 firefox、gnome-terminal 和 nautilus,但它们启动的顺序是不可预测的。有没有办法启动这些应用程序,使窗口按我想要的顺序显示? (即 firefox,然后是 gnome-terminal,然后是 nautilus)。
参考i3 中的布局保存 https://i3wm.org/docs/layout-saving.html.
将其添加到 i3 配置文件中:
# Create specific layout for applications.
exec --no-startup-id "i3-msg 'workspace 1; append_layout ~/.config/i3/workspace-1.json'"
# Start applications.
exec firefox
exec gnome-terminal
Create ~/.config/i3/workspace-1.json
:
// Layout of a workspace.
{
"layout": "tabbed",
// To get a window's class name, run xprop and click on the window.
// You will see the following output:
// WM_CLASS(STRING) = "InstanceName", "ClassName"
// Alternatively, "swallow" by the window's title.
"nodes": [
{"swallows": [{"class": "^Firefox$"}]},
{"swallows": [{"class": "^Gnome-terminal$"}]}
]
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)