From 8c1e44e4ca55edbb28264f9da894fdc8efab2da1 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 6 Jul 2022 22:50:23 +0800 Subject: [PATCH] feat: export dbus env var to ~/.cron.env --- gui/awesome/rc.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/awesome/rc.lua b/gui/awesome/rc.lua index 6ea33fd..b117bcf 100644 --- a/gui/awesome/rc.lua +++ b/gui/awesome/rc.lua @@ -864,6 +864,7 @@ awful.spawn.with_shell("flameshot") awful.spawn.with_shell("nm-applet") awful.spawn.with_shell("copyq") awful.spawn.with_shell("bluetoothctl power on") -awful.spawn.with_shell("env > ~/.env") +awful.spawn.with_shell("echo DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS > ~/.cron.env") +awful.spawn.with_shell("echo DISPLAY=$DISPLAY >> ~/.cron.env") -- }}}