awesome窗口管理器启动时自动运行 设定的程序

谢夜洛
2023-12-01
<span style="font-size:18px;">
autorun = true
autorunApps = 
{ 
    "gnome-settings-daemon",
    "nm-applet",
}

if autorun then
    for app = 1, #autorunApps do
        awful.util.spawn_with_shell(autorunApps[app])
    end
end</span>
把上面的代码粘帖到  ~/.config/awesome/rc.lua 文件里, 可以在 autorunApps里面加入 要运行的程序名, 保存下即可开机自动运行这些程序

 类似资料: