4 ms·
xdotool emulates user actions under the X Window System (e.g. typing, mouse around, click etc.). I'm using it to send keypresses to the browser, as you rightly
by adityaathalye 4y ago
xdotool emulates user actions under the X Window System (e.g. typing, mouse around, click etc.).
I'm using it to send keypresses to the browser, as you rightly observe.
So if I want to just reload a page, the browser gets F5.
To GOTO some page, it gets a stream of keystrokes for the URL characters and then Enter.
It's really that simple-minded, and it works!
This case statement covers my usage: https://github.com/adityaathalye/shite/blob/master/bin/hotreload.sh#L114 https://github.com/adityaathalye/shite/blob/master/bin/hotre...
- andrewflnr 4y agoThanks for the explanation!