blob: ef6389d4f08297aea7377c279003a7feb0f67841 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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
|