#!/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 & #xbindkeys -f "$XDG_CONFIG_HOME"/xbindkeys/config dwm.winkey else exit 0 fi new_csum=$(sha1sum $(which dwm.winkey)) sleep 0.5 done