dotfiles/.config/X11/dwm-xinit

27 lines
711 B
Plaintext

exec xrandr --auto --output HDMI1 --mode 1024x768 --right-of eDP1 &
no-hdmi-port.sh && with-hdmi-port.sh &
exec rm -r ~/.cache/wal/ &
exec wal -n -i ~/pix/wallpapers/wallpaper &
exec feh --no-fehbg --bg-fill ~/pix/wallpapers/wallpaper &
exec xrdb ~/.cache/wal/colors.Xresources &
exec xrdb -merge ~/.config/Xresources &
exec slstatus &
exec picom -CG --config ~/.config/picom.conf &
sh ~/.config/X11/common.sh
exec dstartup &
# relaunch DWM if the binary changes, otherwise bail
csum=""
new_csum=$(sha1sum $(which dwm))
while true
do
if [ "$csum" != "$new_csum" ]
then
csum=$new_csum
dbus-launch dwm
else
exit 0
fi
new_csum=$(sha1sum $(which dwm))
sleep 0.5
done