diff --git a/.config/x11/xprofile b/.config/x11/xprofile index 7cb38fa..bf998d4 100755 --- a/.config/x11/xprofile +++ b/.config/x11/xprofile @@ -7,14 +7,14 @@ xrandr --dpi "${DISPLAY_DPI:-96}" xrdb "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources" & xrdbpid=$! -DISPLAY_SCRIPT=~/.local/share/xrandr/$(hostname | cut -d. -f1) -([ -e "$DISPLAY_SCRIPT" ] && $DISPLAY_SCRIPT) || xrandr --auto +display_script="${XDG_DATA_HOME:-$HOME/.local/share}/xrandr/$(hostname | cut -d. -f1)" +([ -e "$display_script" ] && $display_script) || xrandr --auto -AUTOSTART="picom" +autostart="picom" -for PROGRAM in $AUTOSTART; do - which "$PROGRAM" || continue - pidof -s "$PROGRAM" || "$PROGRAM" & +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.