From ef3acad0f13de64cc8930219d214e662b6e24186 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 13 Aug 2023 17:50:30 +0300 Subject: [PATCH] let me try this --- config/awesome/rc.lua | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/config/awesome/rc.lua b/config/awesome/rc.lua index fdb8b6af..2a4146d6 100644 --- a/config/awesome/rc.lua +++ b/config/awesome/rc.lua @@ -586,4 +586,19 @@ client.connect_signal("unfocus", function(c) c.border_color = beautiful.border_n beautiful.useless_gap = 10 -- 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