commit 562c39e08ad06015c934a3db26d59024695db3c8
parent c11972e0ed883cc95c3f313724351edcdd700e60
Author: mrgrouse <bdmfegys@duck.com>
Date: Wed, 6 Nov 2024 18:35:28 -0500
add X11 .config folder including xinitrc
Diffstat:
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/X11/xinitrc b/X11/xinitrc
@@ -0,0 +1,28 @@
+#!/bin/sh
+#eval $(dbus-launch --sh-syntax --exit-with-session)
+
+if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -n "$XDG_RUNTIME_DIR" ] && \
+ [ "$XDG_RUNTIME_DIR" = "/run/user/`id -u`" ] && \
+ [ -S "$XDG_RUNTIME_DIR/bus" ]; then
+ # We are under systemd-logind or something remarkably similar, and
+ # a user-session socket has already been set up.
+ #
+ # Be nice to non-libdbus, non-sd-bus implementations by using
+ # that as the session bus address in the environment. The check for
+ # XDG_RUNTIME_DIR = "/run/user/`id -u`" is because we know that
+ # form of the address, from systemd-logind, doesn't need escaping,
+ # whereas arbitrary addresses might.
+ DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus"
+ export DBUS_SESSION_BUS_ADDRESS
+fi
+
+if [ -x "/usr/bin/dbus-update-activation-environment" ]; then
+ # tell dbus-daemon --session (and systemd --user, if running)
+ # to put a minimal subset of the Xsession's environment in activated
+ # services' environments
+ dbus-update-activation-environment --verbose \
+ DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY
+fi
+
+/usr/lib/xdg-desktop-portal & #/usr/lib/xdg-desktop-portal-gtk &
+pipewire & pipewire-pulse & wireplumber &