As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.
- Install the required build-tools (some might already be installed on your system).
| #lang typed/racket/base | |
| (require (for-syntax racket/base | |
| racket/sequence | |
| racket/syntax | |
| syntax/parse | |
| syntax/stx) | |
| racket/match) | |
| (begin-for-syntax |
| #!/bin/bash | |
| i3-msg -t get_workspaces | jq -r 'map(select(.focused))[0].rect["width","height"]' | |
| i3-msg -t get_workspaces | jq -r 'map(select(.focused))[0].output' |
| function ltrim(s) { sub(/^[ \t\r\n]+/, "", s); return s } | |
| function rtrim(s) { sub(/[ \t\r\n]+$/, "", s); return s } | |
| function trim(s) { return rtrim(ltrim(s)); } | |
| BEGIN { | |
| # whatever | |
| } | |
| { | |
| # whatever | |
| } | |
| END { |