1 2 3 4
if [ "$1" = "purge" ] && command -v register-window-manager >/dev/null 2>&1 then register-window-manager --remove #WM# fi