This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
## NOTE: I'm publishing this here on Pastebin, but that doesn't mean that I would recommend running it. Some aliases only exist on my computer, so the script would without changes not work on other computers. Some of the parsing is also pretty hacked together and might break at any point, especially with changes to the sources. Quite a few assumptions are made, only one part even has any error handling at all and for example getting the JSON out of a website to parse it properly is harder and probably not better than just using grep and my own limited parser. | |
# abort if not executed with aliases etc. working | |
if [[ $- != *i* ]]; then return; fi | |
insert_full(){ | |
xdotool key Down sleep 1 key Shift+KP_Insert sleep 60 key Alt+Down sleep 3 | |
} | |
insert_one(){ |