Skip to content

Instantly share code, notes, and snippets.

View achadwick's full-sized avatar
🍃
Let's get this thing working again

Andrew Chadwick achadwick

🍃
Let's get this thing working again
View GitHub Profile
@achadwick
achadwick / pygi-grep
Last active February 27, 2017 19:19
Python-GI name search tool
#!/usr/bin/env python
# Search for names known to Python GObject-Introspection.
# All rights waived: https://creativecommons.org/publicdomain/zero/1.0/
from __future__ import print_function
import importlib
import os.path
import sys
import re
from optparse import OptionParser
#!/usr/bin/env python
# All rights waived: https://creativecommons.org/publicdomain/zero/1.0/
# Andrew Chadwick, 29 Jan 2016.
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
from gi.repository import Gio
import os
@achadwick
achadwick / xfce4-tablet-inserted.sh
Created December 14, 2017 11:31
Xfce4 "tablet inserted" script with support for a Wacom Cintiq 13HD
#!/bin/sh
# Configure Wacom tablets for XFCE4's "Removable Media" scripting.
DEV_13HD="Wacom Cintiq 13HD"
LOCKFILE="/tmp/.xfce4-tablet-inserted-$USER.lock"
set -e
# set -x