make better autostart for awesome
This commit is contained in:
parent
29ac45c1f3
commit
d9cc030c15
1 changed files with 6 additions and 14 deletions
|
@ -584,17 +584,9 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
|
||||||
-- Gaps for dopamine
|
-- Gaps for dopamine
|
||||||
beautiful.useless_gap = 5
|
beautiful.useless_gap = 5
|
||||||
|
|
||||||
-- autostart
|
-- better autostart
|
||||||
autorun = true
|
awful.spawn.with_shell(
|
||||||
autorundone = false
|
'if (xrdb -query | grep -q "^awesome\\.started:\\s*true$"); then exit; fi;' ..
|
||||||
autorunApps = {
|
'xrdb -merge <<< "awesome.started:true";' ..
|
||||||
"keepassxc",
|
'keepassxc'
|
||||||
"flameshot",
|
)
|
||||||
}
|
|
||||||
|
|
||||||
if autorun and not autorundone then
|
|
||||||
for app = 1, #autorunApps do
|
|
||||||
awful.util.spawn(autorunApps[app])
|
|
||||||
end
|
|
||||||
autorundone = true
|
|
||||||
end
|
|
||||||
|
|
Loading…
Reference in a new issue