...into your home dir. Something like /home/nemo/scripts/keymapper/ or whatever...
Install make, gcc, and libconfig
Code:
pkcon install gcc make libconfig
run
Code:
make
no errors should be returned.
in the terminal do...
Code:
./keymapper listen
start typing...you should get an output like
Code:
CODE --> 125
CODE --> 100
..etc
memorize the codes...yes, using your memory.
create a file called keymap.config
Code:
touch keymap.config
copy the following to it.
Code:
// Not recommended to run keymapper as root,
name = "Fxtec Pro 1 Keymap shortcuts";
keymap =
{
testing = { holder = 125;
trigger = 14;
cmd = "echo this works";
};
};
now run
Code:
./keymapper start
use fx key + backspace
the output should be
Code:
this works
...
This works kind of like the sym(I think it's called that) button on the n900, where you have an instigator and then a trigger. The holder is the instigator. Once you click it(press the physical button) it registers to a file called key.log, the next button you use is the command trigger, as in what actually runs whatever you give it.
the config format is as follows:
Code:
// Not recommended to run keymapper as root,
name = "Fxtec Pro 1 Keymap shortcuts";
keymap =
{
something_to_remeber = { holder = the first button you press;
trigger = the second button you press;
cmd = a command;
};
another_thing = { holder = the first button you press;
trigger = the second button you press;
cmd = a command; };
};
You can add as many as you like...just keep in mind the following
This is not the best approach to shortcuts
when you run ./keymapper start, it need to run indefinitely
The shortcuts will be active even if the device is locked.
If you're going to run it as root...even though I do not recommend it, yet still do so personally. Don't run any command you dont fully know its outcome.
To run applications, you'll need to export the runtime dir
Code:
export XDG_RUNTIME_DIR=/run/user/100000
you can then use
Code:
#under root
su nemo bash -c 'harbour-piepmatz &
or
Code:
#and under nemo
harbour-piepmatz &
Final thoughts
This is not the best way of doing shortcuts...it's hacky, sloppy, and buggy. It is however a way nonetheless. So it is what it is until someone else makes a better and safer alternative...
New instructions and code here https://github.com/Logic-gate/Keymapper
END UPDATE
DO NOT FOLLOW INSTRUCTIONS HEREIN
Just leaving this here because I forgot both my TJC and my TJC-linked email passwords.
Keyboard Shortcuts...the wrong way.
Download this (https://gist.github.com/Logic-gate/1...le-keymapper-c)
this (https://gist.github.com/Logic-gate/1...le-keymapper-h)
...into your home dir. Something like /home/nemo/scripts/keymapper/ or whatever...
Install make, gcc, and libconfig
in the terminal do...
create a file called keymap.config
the output should be
This works kind of like the sym(I think it's called that) button on the n900, where you have an instigator and then a trigger. The holder is the instigator. Once you click it(press the physical button) it registers to a file called key.log, the next button you use is the command trigger, as in what actually runs whatever you give it.
the config format is as follows:
If you're going to run it as root...even though I do not recommend it, yet still do so personally. Don't run any command you dont fully know its outcome.
To run applications, you'll need to export the runtime dir
This is not the best way of doing shortcuts...it's hacky, sloppy, and buggy. It is however a way nonetheless. So it is what it is until someone else makes a better and safer alternative...
demo(https://twitter.com/m4d_d3v/status/1...227333120?s=20)
here's the config from the demo--without screenshots. Also disregard the first entry orientationLock...iit's for something else.
Last edited by MadDev; 2020-05-30 at 07:50. Reason: New instructions - Plus bugs, a lot of them