commit e2bb83501300b24be7b86e4aa5a28d003ce0efc0
parent 4508ef831c626623f455be79c1525d0322dbb24f
Author: Jake Koroman <jakekoroman@gmail.com>
Date: Sun, 28 Apr 2024 20:44:35 -0400
even more fun stuff
Diffstat:
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/.zprofile b/.zprofile
@@ -30,6 +30,4 @@ export PATH=$HOME/.local/bin:$HOME/scripts:$PATH
export XDG_CURRENT_DESKTOP=wlroots
-env | grep -i "DBUS_SESSION_BUS_ADDRESS" | sed 's/^.*ADDRESS=//g' > $XDG_CACHE_HOME/dbus-session-addr
-
[ $(tty) = "/dev/tty1" ] && [ -z $DISPLAY ] && dbus-run-session dwl -s dwlb
diff --git a/device-specific/laptop/dwl-hardware.h b/device-specific/laptop/dwl-hardware.h
@@ -19,6 +19,8 @@ static const MonitorRule monrules[] = {
static const char *const autostart[] = {
"artix-pipewire-launcher.sh", NULL,
"swayidle.sh", NULL,
+ "preserve_dbus.sh", NULL,
+ "davmail_launch", NULL,
NULL /* terminate */
};
diff --git a/scripts/preserve_dbus.sh b/scripts/preserve_dbus.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# used for cronjobs that use notify-send
+env | grep -i "DBUS_SESSION_BUS_ADDRESS" | sed 's/^.*ADDRESS=//g' > $XDG_CACHE_HOME/dbus-session-addr