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 python | |
# dynzoom.py - dynamic zooming for uzbl, based on dynzoom.js | |
# Usage: | |
# @on_event GEOMETRY_CHANGED spawn /path/to/dynzoom.py \@geometry 1024 768 | |
# Where 1024x768 is the resolution where we start to zoom out | |
import sys, re | |
" Parses WxH+X+Y into a 4-tuple of ints " |
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
# References ISO/IEC 9899:1990 "Information technology - Programming Language C" (C89 for short) | |
grammar C::StdC89Lexer; | |
#rule TOP { | |
# ^ <c-token>+ $ | |
#} | |
# SS 6.4 | |
proto token c-token {*} |