_launch(['xmodmap', os.path.expanduser('~/.xmodmaprc')]) # For debugging: # import subprocess, sys # print 'xmodmap returned: %i' % subprocess.call(['xmodmap', '-verbose', os.path.expanduser('~/.xmodmaprc')], stdout=sys.stdout, stderr=sys.stderr) @notify_exception def fixX11(): import threading notify("Applying X11 settings") _launch("setxkbmap -option terminate:ctrl_alt_bksp".split()) _launch("setxkbmap -option keypad:pointerkeys".split()) wacom.apply_profile('Wacom Intuos3 9x12 pad', 'gimp') subprocess.call('dispwin -I /home/dss/colorhug/results/samsung/samsung.icc'.split()) t = threading.Timer(xmodmap_delay, do_xmodmap) t.daemon = True t.start() if imported_from_wmiirc(): import wmiirc # xfontsel to find these types: wmiirc.wmii['font'] = '-*-helvetica-bold-r-*-*-34-*-*-*-*-*-*-*' lock.disableAutoLock() fixX11() keys.mode = keys.mode # Refresh current key bindings - only required when [re]loading plugin after event loop starts
def disableAutoLock(): try: import lock lock.disableAutoLock() except ImportError: pass