| Author: | William ML Leslie <[email protected]> |
|---|---|
| Date: | |
| Copyright: | This document has been placed in the public domain. |
The current DOM keyboard API has a lot of flexibility, but is lacking in a few important ways. Some of those ways have been partially
| #!/bin/sh | |
| /usr/bin/firefox -app /home/wleslie/applications/conkeror/application.ini |
| (load-module "battery-portable") | |
| (setf *screen-mode-line-format* "%B [%n] %w") | |
| ;;(setf *screen-mode-line-format* | |
| ;; (list "[%n] %w | " | |
| ;; '(:eval (run-shell-command "date" t)))) | |
| (toggle-mode-line (current-screen) (current-head)) | |
| ;; Caps -> Ctrl on machines that don't do it by default | |
| ;;(run-shell-command "xmodmap -e 'clear Lock' -e 'add control = Caps_Lock'") |
| if data['supplemental_data'] | |
| sum = {} | |
| data['supplemental_data'].each_pair do |key, value| | |
| sum[key] = value.values | |
| end | |
| sum | |
| else | |
| {} | |
| end |
| #!/usr/bin/env python | |
| import sys, os, time | |
| from subprocess import Popen, call | |
| KEYBD = ("ephyr,,,xkbmodel=pc105,xkblayout=us," | |
| "xkbvariant=dvorak,xkboptions=ctrl:nocaps") | |
| USAGE = """ | |
| Usage: %s options [command [arg...]] |
| Author: | William ML Leslie <[email protected]> |
|---|---|
| Date: | |
| Copyright: | This document has been placed in the public domain. |
The current DOM keyboard API has a lot of flexibility, but is lacking in a few important ways. Some of those ways have been partially
| NO_RETURN = set(dis.opmap[name] for name in """ | |
| JUMP_ABSOLUTE JUMP_FORWARD RAISE_VARARGS STOP_CODE RETURN_VALUE | |
| BREAK_LOOP""".split()) | |
| def decode_code(offset, code): | |
| opcode = ord(code[offset]) | |
| if opcode >= dis.HAVE_ARGUMENT: | |
| oparg = ord(code[offset + 1]) + ord(code[offset + 2]) | |
| return opcode, oparg, offset + 3 | |
| return opcode, 0, offset + 1 |