let me try this

This commit is contained in:
Sakooooo 2023-08-13 17:50:30 +03:00
parent a7ac332944
commit ef3acad0f1
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -586,4 +586,19 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n
beautiful.useless_gap = 10 beautiful.useless_gap = 10
-- autostart -- autostart
awful.util.spawn_with_shell("~/.config/awesome/autostart.sh") --awful.util.spawn_with_shell("~/.config/awesome/autostart.sh")
local run_on_start_up = {
'keepassxc',
'flameshot',
}
for _, app in ipairs(run_on_start_up) do
local findme = app
local firstspace = app:find(" ")
if firstspace then
findme = app:sub(0, firstspace - 1)
end
-- pipe commands to bash to allow command to be shell agnostic
awful.spawn.with_shell(string.format("echo 'pgrep -u $USER -x %s > /dev/null || (%s)' | bash -", findme, app), false)
end