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
#!/usr/bin/python3 | |
# lives at: https://gist.github.com/bhepple/5c43e83e945a42297ba6433ee8ba88ce | |
# derived from: https://github.com/benkaiser/i3-wm-config | |
# $0 x y width height (-1 for unchanged) | |
import subprocess | |
import sys | |
import json |
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
#!/usr/bin/env bash | |
command -v jq >/dev/null 2>&1 || { echo >&2 "Program 'jq' required but it is not installed. Aborting."; exit 1; } | |
command -v wget >/dev/null 2>&1 || { echo >&2 "Program 'wget' required but is not installed. Aborting."; exit 1; } | |
# customisation: | |
BOM_PRODUCT="IDQ60901/IDQ60901.94576.json" # Brisbane | |
APIKEY="b0aa21c8ed417b979ce80f63faf0ad69" | |
CITY_ID="2174003" # Brisbane, Aus |