Skip to content

Instantly share code, notes, and snippets.

View bhepple's full-sized avatar

Bob Hepple bhepple

View GitHub Profile
@bhepple
bhepple / sway.log
Created November 29, 2024 22:58
Running sway -c /etc/sway/config -d
00:00:00.000 [INFO] [sway/main.c:295] Sway version 1.10
00:00:00.000 [INFO] [sway/main.c:296] wlroots version 0.18.1
00:00:00.004 [INFO] [sway/main.c:81] Linux achar-void 6.6.62_1 #1 SMP PREEMPT_DYNAMIC Wed Nov 20 01:02:07 UTC 2024 x86_64 GNU/Linux
00:00:00.004 [INFO] [sway/main.c:97] Contents of /etc/os-release:
00:00:00.004 [INFO] [sway/main.c:81] NAME="Void"
00:00:00.004 [INFO] [sway/main.c:81] ID="void"
00:00:00.004 [INFO] [sway/main.c:81] PRETTY_NAME="Void Linux"
00:00:00.004 [INFO] [sway/main.c:81] HOME_URL="https://voidlinux.org/"
00:00:00.004 [INFO] [sway/main.c:81] DOCUMENTATION_URL="https://docs.voidlinux.org/"
00:00:00.004 [INFO] [sway/main.c:81] LOGO="void-logo"
@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