1
0
Fork 0
dotfiles/.config/X11/xinitrc

23 lines
411 B
Plaintext
Raw Normal View History

2023-05-24 16:53:44 +02:00
#!/bin/sh
2023-12-15 10:16:45 +01:00
# shellcheck disable=SC2016
2023-12-14 17:14:43 +01:00
2023-12-15 10:16:45 +01:00
exec dbus-run-session -- sh -c '
X11_CONFIG="$XDG_CONFIG_HOME/X11"
2023-12-14 17:14:43 +01:00
SESSIONFILES=$(run-parts --list "$X11_CONFIG/xsession.d")
2023-12-15 10:16:45 +01:00
if [ -n "$SESSIONFILES" ]; then
2023-12-14 17:14:43 +01:00
set +e
for SESSIONFILE in $SESSIONFILES; do
2023-12-15 10:16:45 +01:00
echo "Executing $SESSIONFILE"
2023-12-14 17:14:43 +01:00
$SESSIONFILE
done
set -e
fi
2023-12-15 10:16:45 +01:00
. "$X11_CONFIG/xprofile"
2023-12-14 17:14:43 +01:00
echo $DBUS_SESSION_BUS_ADDRESS > $XDG_STATE_HOME/dbus_session_address
dwm
2023-12-15 10:16:45 +01:00
'