xinitrc (1450B)
1 #!/bin/sh 2 #eval $(dbus-launch --sh-syntax --exit-with-session) 3 4 if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -n "$XDG_RUNTIME_DIR" ] && \ 5 [ "$XDG_RUNTIME_DIR" = "/run/user/`id -u`" ] && \ 6 [ -S "$XDG_RUNTIME_DIR/bus" ]; then 7 # We are under systemd-logind or something remarkably similar, and 8 # a user-session socket has already been set up. 9 # 10 # Be nice to non-libdbus, non-sd-bus implementations by using 11 # that as the session bus address in the environment. The check for 12 # XDG_RUNTIME_DIR = "/run/user/`id -u`" is because we know that 13 # form of the address, from systemd-logind, doesn't need escaping, 14 # whereas arbitrary addresses might. 15 DBUS_SESSION_BUS_ADDRESS="unix:path=$XDG_RUNTIME_DIR/bus" 16 export DBUS_SESSION_BUS_ADDRESS 17 fi 18 19 if [ -x "/usr/bin/dbus-update-activation-environment" ]; then 20 # tell dbus-daemon --session (and systemd --user, if running) 21 # to put a minimal subset of the Xsession's environment in activated 22 # services' environments 23 dbus-update-activation-environment --verbose \ 24 DBUS_SESSION_BUS_ADDRESS DISPLAY XAUTHORITY 25 fi 26 27 export XDG_CURRENT_DESKTOP="XFCE" 28 #/usr/lib/xdg-desktop-portal & /usr/lib/xdg-desktop-portal-gtk & # autostarted somehow by dbus or something 29 xrandr --output DP-0 --mode 1920x1080 --rate 140 --right-of HDMI-0 --output HDMI-0 --mode 1920x1080 --rate 132 30 wallust run $HOME/.cache/wallpaper 31 feh --bg-fill $HOME/.cache/wallpaper 32 xrdb -load $HOME/.config/X11/Xresources