mirror of https://gitlab.com/dabruh/dotfiles.git
Adjust variable casing and defaults
This commit is contained in:
parent
3671d21be5
commit
1e94ea2f71
|
@ -7,14 +7,14 @@ xrandr --dpi "${DISPLAY_DPI:-96}"
|
||||||
xrdb "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources" &
|
xrdb "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources" &
|
||||||
xrdbpid=$!
|
xrdbpid=$!
|
||||||
|
|
||||||
DISPLAY_SCRIPT=~/.local/share/xrandr/$(hostname | cut -d. -f1)
|
display_script="${XDG_DATA_HOME:-$HOME/.local/share}/xrandr/$(hostname | cut -d. -f1)"
|
||||||
([ -e "$DISPLAY_SCRIPT" ] && $DISPLAY_SCRIPT) || xrandr --auto
|
([ -e "$display_script" ] && $display_script) || xrandr --auto
|
||||||
|
|
||||||
AUTOSTART="picom"
|
autostart="picom"
|
||||||
|
|
||||||
for PROGRAM in $AUTOSTART; do
|
for program in $autostart; do
|
||||||
which "$PROGRAM" || continue
|
which "$program" || continue
|
||||||
pidof -s "$PROGRAM" || "$PROGRAM" &
|
pidof -s "$program" || "$program" &
|
||||||
done >/dev/null 2>&1
|
done >/dev/null 2>&1
|
||||||
|
|
||||||
# Ensure that xrdb has finished running before moving on to start the WM/DE.
|
# Ensure that xrdb has finished running before moving on to start the WM/DE.
|
||||||
|
|
Loading…
Reference in New Issue