From 1e94ea2f71b8c94997af9520cc55bebea76eb6ab Mon Sep 17 00:00:00 2001 From: dabruh <11458706-dabruh@users.noreply.gitlab.com> Date: Fri, 12 Apr 2024 16:07:57 +0200 Subject: [PATCH] Adjust variable casing and defaults --- .config/x11/xprofile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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.