Writes basic configs for impulse, hold, and toggle
parent
a3980e9aab
commit
4953d787d7
19
tfscript.py
19
tfscript.py
|
@ -41,13 +41,24 @@ def impulse(key, instruction):
|
|||
return f'bind {key} {instruction}\n'
|
||||
|
||||
def simpleHold(key, instruction):
|
||||
return f'placeholder for {key} (single instruction hold)\n'
|
||||
# This isn't quite right, fix later!
|
||||
return f'bind {key} +{instruction}\n'
|
||||
# return f'placeholder for {key} (single instruction hold)\n'
|
||||
|
||||
def listHold(key, options):
|
||||
return f'placeholder for {key} (press and release hold)\n'
|
||||
ret = f'alias +{key}_bind {options["press"]}\n'
|
||||
ret += f'alias -{key}_bind {options["release"]}\n'
|
||||
ret += f'bind {key} +{key}_bind\n'
|
||||
return ret
|
||||
# return f'placeholder for {key} (press-and-release hold)\n'
|
||||
|
||||
def toggle(key, options):
|
||||
return f'placeholder for {key} (toggle)\n'
|
||||
def toggle(key, instruction):
|
||||
ret = f'alias turn_{key}_on "+{instruction}; alias toggle_{key} turn_key_off"\n'
|
||||
ret += f'alias turn_{key}_off "-{instruction}; alias toggle_{key} turn_ley_on"\n'
|
||||
ret += f'alias toggle_{key} turn_{key}_on\n'
|
||||
ret += f'bind {key} toggle_{key}\n'
|
||||
return ret
|
||||
# return f'placeholder for {key} (toggle)\n'
|
||||
|
||||
def double(key, options):
|
||||
return f'placeholder for {key} (double)\n'
|
||||
|
|
Loading…
Reference in New Issue