[https://raw.githubusercontent.com/ericjrich/emx/main/e-monitormover.eb]
#!/usr/bin/env bash
#20221221 2008 est EJR
#xfce monitor mover
#= CUSTOM SHORTCUT COMMANDS==
# MONITOR 1
# bash -ic 'e-monitormover.eb 1'
# MONITOR 2
# bash -ic 'e-monitormover.eb 2'
opt=$1
case $opt in
1) xdotool getactivewindow windowmove %@ 0 0;;
2) wx=$(echo $(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/') | sed -r 's/x.*//')
xd=$(( wx / 2 ))
xdotool getactivewindow windowmove %@ "$xd" 0
;;
*);; esac