aboutsummaryrefslogtreecommitdiff
path: root/.config/awesome/misc/autostart
diff options
context:
space:
mode:
authordelta <darkussdelta@gmail.com>2023-03-04 22:04:55 +0100
committerdelta <darkussdelta@gmail.com>2023-03-04 22:18:21 +0100
commitf0b32f45746c026d402651013b7e98315d6956a1 (patch)
treef42609e98522da081cebdd21a674a702d1054bbc /.config/awesome/misc/autostart
parenta0f8b5fa6acdd1c2477fb1881dd9067956bf0ae6 (diff)
restructure awesome config, add fresnel
Diffstat (limited to '.config/awesome/misc/autostart')
-rw-r--r--.config/awesome/misc/autostart/init.lua4
-rw-r--r--.config/awesome/misc/autostart/programs.sh22
2 files changed, 26 insertions, 0 deletions
diff --git a/.config/awesome/misc/autostart/init.lua b/.config/awesome/misc/autostart/init.lua
new file mode 100644
index 0000000..e0d4efb
--- /dev/null
+++ b/.config/awesome/misc/autostart/init.lua
@@ -0,0 +1,4 @@
+local awful = require "awful"
+local gfs = require "gears.filesystem"
+
+awful.spawn.once("bash " .. gfs.get_configuration_dir() .. "/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