add autostart script isntead
This commit is contained in:
parent
861fb05ebd
commit
2db310a772
2 changed files with 12 additions and 6 deletions
10
config/awesome/autostart.sh
Executable file
10
config/awesome/autostart.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
## run (only once) processes which spawn with the same name
|
||||
function run {
|
||||
if (command -v $1 && ! pgrep $1); then
|
||||
$@&
|
||||
fi
|
||||
}
|
||||
|
||||
run keepassxc
|
|
@ -584,9 +584,5 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
|
|||
-- Gaps for dopamine
|
||||
beautiful.useless_gap = 10
|
||||
|
||||
-- making better autostart
|
||||
local startupApps = {
|
||||
'keepassxc',
|
||||
}
|
||||
|
||||
awful.spawn.single_instance(startupApps)
|
||||
-- autostart
|
||||
awful.util.spawn_with_shell("~/.config/awesome/autostart.sh")
|
||||
|
|
Loading…
Reference in a new issue