polish clipboard stuff

This commit is contained in:
chrys
2016-08-24 00:41:16 +02:00
parent 3f869b65ed
commit eb323eeedf
10 changed files with 36 additions and 67 deletions

View File

@ -3,6 +3,7 @@ import importlib.util
import glob
import os
import time
from utils import debug
class commandManager():
def __init__(self):
@ -27,6 +28,7 @@ class commandManager():
environment['runtime']['debug'].writeDebugOut(environment,str(e),debug.debugLevel.ERROR)
continue
return environment
def executeTriggerCommands(self, environment, trigger):
for cmd in sorted(environment['commands'][trigger]):
try:

View File

@ -5,7 +5,7 @@ import time
# used as shared memory between commands
# use this in your own commands
commandBuffer = {
'clipboard':['chrys\n', 'test', 'ls\n'],
'clipboard':[],
'currClipboard': 0,
'Marks':{'1':None, '2':None}
}

View File

@ -4,6 +4,7 @@ import evdev
from evdev import InputDevice, UInput
from select import select
import time
from utils import debug
class inputManager():
def __init__(self):

View File

@ -1,5 +1,6 @@
#!/bin/python
from utils import debug
class outputManager():
def __init__(self):
pass