diff --git a/.config/X11/realinit b/.config/X11/realinit index 0223cc24..7c26c5dc 100755 --- a/.config/X11/realinit +++ b/.config/X11/realinit @@ -1,5 +1,3 @@ -#!/bin/sh - X11_CONFIG="$XDG_CONFIG_HOME/X11" SESSIONFILES=$(run-parts --list "$X11_CONFIG/xsession.d") diff --git a/.config/X11/xinitrc b/.config/X11/xinitrc index 0c3d5dc8..252b9dcb 100755 --- a/.config/X11/xinitrc +++ b/.config/X11/xinitrc @@ -1,2 +1,21 @@ #!/bin/sh -exec dbus-run-session -- $XDG_CONFIG_HOME/X11/realinit + +exec dbus-run-session -- sh -c " +X11_CONFIG=\"$XDG_CONFIG_HOME/X11\" +SESSIONFILES=$(run-parts --list "$X11_CONFIG/xsession.d") + +if [ -n \"$SESSIONFILES\" ]; then + set +e + for SESSIONFILE in $SESSIONFILES; do + echo \"Executing $SESSIONFILE\" + $SESSIONFILE + done + set -e +fi + +. \"$X11_CONFIG/xprofile\" + +echo $DBUS_SESSION_BUS_ADDRESS > $XDG_STATE_HOME/dbus_session_address + +dwm +" diff --git a/.config/X11/xsession.d/80autostart b/.config/X11/xsession.d/80autostart index abb30862..20d676f9 100755 --- a/.config/X11/xsession.d/80autostart +++ b/.config/X11/xsession.d/80autostart @@ -4,8 +4,7 @@ start() { pidof -sx $1 || $@ & } -xwallpaper --zoom "${XDG_DATA_HOME:-$HOME/.local/share}/bg" & - +start xwallpaper --zoom "${XDG_DATA_HOME:-$HOME/.local/share}/bg" start pipewire start pipewire -c pipewire-pulse.conf start wireplumber diff --git a/.local/share/applications/file.desktop b/.local/share/applications/file.desktop index c4b8eef7..ab546ffb 100644 --- a/.local/share/applications/file.desktop +++ b/.local/share/applications/file.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=File Manager -Exec=st -e lfcd %u +Exec=/usr/bin/st -e lfcd %u diff --git a/.local/share/applications/text.desktop b/.local/share/applications/text.desktop index f34b8f04..8c047901 100644 --- a/.local/share/applications/text.desktop +++ b/.local/share/applications/text.desktop @@ -1,4 +1,4 @@ [Desktop Entry] Type=Application Name=Text editor -Exec=st -e nvim %u +Exec=/usr/bin/st -e nvim %u