add autostart script isntead

This commit is contained in:
Sakooooo 2023-08-13 16:57:18 +03:00
parent 861fb05ebd
commit 2db310a772
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 12 additions and 6 deletions

10
config/awesome/autostart.sh Executable file
View 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

View file

@ -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")