My Qtile window manager configuration
git clone https://github.com/m-col/qtile-config
Files | Refs | Readme

Commit a96f482ec2bac0e0f53dac5b335a7010b744f10e
Parent: c3b82bacf695b1bb981c0868fbbd08b8925f7266
Author: mcol <mcol@posteo.net>
Date: 2021-07-29 18:51:04 +0100
Committer: mcol <mcol@posteo.net>
Committed: 2021-07-29 18:51:04 +0100

startup script: only spawn processes if they dont exist

startup.sh Modified

@@ -7,7 +7,7 @@
 
 {
     foot --server &
-    swaybg -c '#1B2021' &
+    #swaybg -c '#1B2021' &
 } &> /dev/null
 
 
@@ -22,11 +22,15 @@
 
 
 # TTY session only
+
+run_if_new() { ps aux | grep -v grep | grep -q $1 || $@; }
+
 [[ -z "$QTILE_XEPHYR" ]] && {
-    keepassxc &
-    firefox &
-    kanshi &
     wlsunset -t 3100 -T 5700 -l 55.7 -L -3.1 &
+    kanshi &
+    run_if_new keepassxc &
+    run_if_new firefox &
+    run_if_new irc &
 
     sleep 3
     check_systemd