Skip to content

Instantly share code, notes, and snippets.

View gbrown128's full-sized avatar

George Brown gbrown128

View GitHub Profile
@gbrown128
gbrown128 / my_i3status.py
Created January 12, 2017 23:00 — forked from projectgus/my_i3status.py
i3status/i3bar custom status fields using JSON formatting
#!/usr/bin/env python3
import os, json, sys, subprocess, re
"""
i3_status/i3bar output munger using JSON formatted status lines,
allows you to add custom fields to the i3 status line.
In this example I add a "Backup Running" warning message at the
beginning if a duplicity backup is running, and also put 2.4GHz or
5GHz in the existing wlan0 status line.
thickness=2; //Object setup.
resolution=40;
outer_rad=3.5; //Outline Dimentions
max_width=50;
min_width=30;
total_length=65;
cutout_rad=3.5; //Cutout Dimentions
cutout_width=28;