Fix .xsessionrc

This commit is contained in:
pgrondek 2020-07-31 09:08:07 +02:00
parent 7fe5f823fe
commit c704b8fed5

View File

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
if [[ "$DESKTOP_SESSION" = "dwm" ]]; then
export _JAVA_AWT_WM_NONREPARENTING=1
@ -15,8 +15,10 @@ if [[ "$DESKTOP_SESSION" = "dwm" ]]; then
if test -f /usr/share/backgrounds/gnome/Road.jpg ; then
feh --bg-scale /usr/share/backgrounds/gnome/Road.jpg &
else if test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then
feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg &
else
if test -f /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg ; then
feh --bg-scale /usr/share/backgrounds/brad-huchteman-stone-mountain.jpg &
fi
fi
fi