diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2024-11-17 17:15:47 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2024-11-17 17:22:56 +1300 |
commit | 43007b8a9be7539689e8c560a6c4ef9f44b430a6 (patch) | |
tree | 398340c7962ff891038b74be80ae0b021cf9c625 | |
parent | Use better constant name for focus sleep time (diff) | |
download | vixf-43007b8a9be7539689e8c560a6c4ef9f44b430a6.tar.gz vixf-43007b8a9be7539689e8c560a6c4ef9f44b430a6.zip |
Put terminal emulator into a constant
-rw-r--r-- | vixf.py3 | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -23,6 +23,8 @@ FOCUS_DELAY = 0.2 EDITOR = 'vi' +TERM = 'x-terminal-emulator' + keyboard = Controller() time.sleep(FOCUS_DELAY) @@ -59,7 +61,7 @@ with tempfile.NamedTemporaryFile(mode='w', delete_on_close=False) as tf: editor = EDITOR command = [ - 'x-terminal-emulator', + TERM, '-name', SELF, '-e', |