Skip to content

Instantly share code, notes, and snippets.

View bhepple's full-sized avatar

Bob Hepple bhepple

View GitHub Profile
@bhepple
bhepple / weather
Last active March 13, 2017 04:26
i3blocks weather script
#!/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
@bhepple
bhepple / i3-move-resize.py
Last active November 17, 2018 09:15
i3-move-resize.py
#!/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