2022-05-27 21:07:07 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# This file runs when a DM logs you into a graphical session.
|
|
|
|
# If you use startx/xinit like a Chad, this file will also be sourced.
|
|
|
|
|
|
|
|
xrandr --dpi "${DISPLAY_DPI:-96}"
|
|
|
|
xrdb "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources" &
|
|
|
|
xrdbpid=$!
|
|
|
|
|
2022-05-28 22:51:25 +02:00
|
|
|
DISPLAY_SCRIPT=~/.local/share/xrandr/$(hostname | cut -d. -f1)
|
2022-05-27 21:07:07 +02:00
|
|
|
([ -e "$DISPLAY_SCRIPT" ] && $DISPLAY_SCRIPT) || xrandr --auto
|
|
|
|
|
|
|
|
AUTOSTART="picom"
|
|
|
|
|
|
|
|
for PROGRAM in $AUTOSTART; do
|
|
|
|
which "$PROGRAM" || continue
|
|
|
|
pidof -s "$PROGRAM" || "$PROGRAM" &
|
|
|
|
done >/dev/null 2>&1
|
|
|
|
|
|
|
|
# Ensure that xrdb has finished running before moving on to start the WM/DE.
|
|
|
|
[ -n "$xrdbpid" ] && wait "$xrdbpid"
|