#!/bin/sh setxkbmap -option caps:swapescape picom -b ~/.fehbg # relaunch DWM if the binary changes, otherwise bail csum=$(sha1sum $(which dwm.winkey)) new_csum="" while true do if [ "$csum" != "$new_csum" ] then csum=$new_csum dwm-statusbar & pid=$! pulseaudio -k dwm.winkey & pid="$pid $!" xbindkeys -f $HOME/Backups/configs/xbindkeysrc wait $pid else exit 0 fi new_csum=$(sha1sum $(which dwm.winkey)) sleep 0.5 done