From 47d0d37673126e0d795a58b131acae7db6da6c2b Mon Sep 17 00:00:00 2001 From: Lalle <29478339+LalleSX@users.noreply.github.com> Date: Wed, 21 Jun 2023 17:54:42 +0200 Subject: [PATCH 1/2] Launch dwm in a dbus session --- .config/x11/xinitrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index 2debc017..93352d88 100755 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -14,4 +14,4 @@ else . "$HOME/.xprofile" fi -ssh-agent dwm +exec dbus-launch --exit-with-session dwm From b90c31bb54a05a1307b12f45540380477dcf78da Mon Sep 17 00:00:00 2001 From: Lalle <29478339+LalleSX@users.noreply.github.com> Date: Wed, 21 Jun 2023 18:09:52 +0200 Subject: [PATCH 2/2] Add ssh-agent --- .config/x11/xprofile | 1 + 1 file changed, 1 insertion(+) diff --git a/.config/x11/xprofile b/.config/x11/xprofile index d6b88c5e..b8ea4032 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -8,6 +8,7 @@ setbg & # set the background with the `setbg` script #xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup autostart="mpd xcompmgr dunst unclutter pipewire remapd" +eval $(ssh-agent) for program in $autostart; do pidof -sx "$program" || "$program" &