dotfiles/scripts/focus_window.sh
2022-03-24 13:55:34 -05:00

15 lines
278 B
Bash
Executable file

#!/bin/bash
eval $(xdotool getmouselocation --shell)
if [ "$1" -eq "1" ]; then
xdotool mousemove 900 $Y
elif [ "$1" -eq "2" ]; then
xdotool mousemove 2560 $Y
elif [ "$1" -eq "3" ]; then
if [ $Y -gt 700 ]; then
Y=700
fi
xdotool mousemove 4000 $Y
fi