dotfiles/home/private_dot_config/autorandr/executable_postswitch

11 lines
256 B
Bash

#!/usr/bin/env bash
if [[ -n $SKIP_WM_RESET ]]; then
notify-send 'autorandr' '\nmonitor change detected\nskipping WM reset'
exit 0
fi
# WM Agnostic
notify-send 'autorandr' '\nmonitor change detected\nresetting WM'
sleep 3
xdotool key Shift_L+Super_L+R