dotfiles/home/private_dot_config/autorandr/executable_postswitch

12 lines
256 B
Text
Raw Normal View History

2022-04-06 13:56:29 -05:00
#!/usr/bin/env bash
2022-07-05 09:42:30 -05:00
2022-08-05 12:13:22 -05:00
if [[ -n $SKIP_WM_RESET ]]; then
notify-send 'autorandr' '\nmonitor change detected\nskipping WM reset'
exit 0
fi
2022-07-05 09:42:30 -05:00
# WM Agnostic
notify-send 'autorandr' '\nmonitor change detected\nresetting WM'
sleep 3
xdotool key Shift_L+Super_L+R