#!/bin/sh # note this script may not work if triggered using a keybinding that # involves a modifier key, because the script will run before the # modifier key has been released (the first 'sleep' ought to mitigate # this problem at least somewhat) set -e wmctrl -R "*NEW notes*" sleep 0.5 xdotool key ctrl+x h ctrl+x ctrl+k # select this window ready for processing the next package wmctrl -R "ftp-master GNU mc session" sleep 0.2 wmctrl -R "ftp-master dak command session" sleep 0.2 xdotool mousemove --polar 0 0 click 2