-
|
I'm working to turn a preset on and off with the same keypress with Flirc remote. Is there a way to do this through the GUI? I think not, so I am working on a script, but am struggling with the 'if' line, to check if my preset is active, then start/stop the preset. This command works: input-remapper-control --command stop --device "flirc.tv flirc Keyboard" --preset "Mouse Arrows"; as does the same start command. What would be the 'if' line to check the preset status before triggering the above? Here is my current script (not working): #!/bin/bash DEVICE="flirc.tv flirc Keyboard" if input-remapper-control --list-devices | grep -q "$PRESET"; then |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
After working on this with some help (see (https://forums.linuxmint.com/viewtopic.php?p=2766379#p2766379)](url), I am missing a way to display whether the preset is running (via command line). If anyone knows if this is possible please let me know. I am working on a lock file in the meantime |
Beta Was this translation helpful? Give feedback.
I finished the lock file and it is working- can toggle the preset on/off with my remote using the same key. Leaving this open because it would be a much better solution to switch on/off with if/then/else.
Anyone else looking at this can find the code at the link above.