- UL above details
- Second LI
Summary in outer details
Details below summary
| # copy and paste to /sbin/remove-desktop | |
| #!/bin/sh | |
| PREFIX= | |
| : ${LIBDIR=$PREFIX/lib} | |
| . "$LIBDIR/libalpine.sh" | |
| usage() { | |
| cat <<-__EOF__ |
| /* | |
| Density histogram with a vertical rule and some other formatting. | |
| */ | |
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
| "datasets": { | |
| "linedata": [ | |
| {"b": 5}, | |
| {"b": 20}, | |
| {"b": 20}, |
| /* Vertical rule using datasets */ | |
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
| "datasets": { | |
| "linedata": [ | |
| {"a": 1, "b": 30}, | |
| {"a": 2, "b": 45}, | |
| {"a": 3, "b": 50}, | |
| {"a": 4, "b": 60}, | |
| {"a": 5, "b": 70}, |
| /* Layering a verticle rule over existing data (with a control to boot) */ | |
| { | |
| "$schema": "https://vega.github.io/schema/vega-lite/v5.json", | |
| "params": [ | |
| { | |
| "name": "x1", | |
| "value": 5, | |
| "bind": {"input": "range", "min": 0, "max": 10, "step": 1} | |
| } | |
| ], |
| # Add to .bashrc for Python binaries: | |
| # Python and pip3 | |
| export PATH="${PATH}:/home/{username}/.local/bin" |
Install ffmpeg (on a Mac):
brew install ffmpeg --with-libvorbis --with-sdl2 --with-theora
Use ffmpeg for the conversion:
| (* | |
| Use AppleScript to repeatedly click some part of the screen on a Mac 50 times with a 2 second pause between clicks (use on poorly designed applications that don't let you repeat a certain action). | |
| https://apple.stackexchange.com/questions/266784/how-do-i-make-the-mouse-click-at-current-location-using-applescript | |
| Comment: To supplement @jksoegaard's answer: one can also find cursor positions using "Screenshot" tool, which may be activated by Cmd+Shift+4 shortcut. Then just point the cursor to any area and remember the numbers that is shown near the pointer. | |
| *) | |
| repeat 50 times | |
| tell application "System Events" | |
| click at {1073, 373} |