From f0b32f45746c026d402651013b7e98315d6956a1 Mon Sep 17 00:00:00 2001 From: delta Date: Sat, 4 Mar 2023 22:04:55 +0100 Subject: restructure awesome config, add fresnel --- .config/awesome/misc/autostart/programs.sh | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .config/awesome/misc/autostart/programs.sh (limited to '.config/awesome/misc/autostart/programs.sh') diff --git a/.config/awesome/misc/autostart/programs.sh b/.config/awesome/misc/autostart/programs.sh new file mode 100644 index 0000000..dbafe44 --- /dev/null +++ b/.config/awesome/misc/autostart/programs.sh @@ -0,0 +1,22 @@ +function exe () { + local cmd=$@ + if ! pgrep -x $(echo $cmd | cut -d " " -f1); then + $cmd & + fi +} + +function exe_lax () { + local cmd=$@ + if ! pgrep $(echo $cmd | cut -d " " -f1); then + $cmd & + fi +} + +exe "picom -b" +exe sxhkd +exe clipcatd +exe_lax wezterm +exe_lax "wezterm start --class code_term" +exe firefox +exe spotify +exe discord -- cgit v1.2.3