Adjust variable casing and defaults

This commit is contained in:
dabruh 2024-04-12 16:07:57 +02:00
parent 3671d21be5
commit 1e94ea2f71
1 changed files with 6 additions and 6 deletions

View File

@ -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.