-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8822c0c
commit 5fd6722
Showing
11 changed files
with
218 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# mappings | ||
|
||
input-modifier is also capable of having multiple "mappings" for a profile, with the ability to switch them on the fly. | ||
|
||
## listing mappings | ||
|
||
to see mappings for a device, type, e.g.: | ||
|
||
``` | ||
> listmaps <device> | ||
``` | ||
|
||
at first the only mapping available is called "Default". | ||
|
||
## creating a mapping | ||
|
||
to create a new mapping, type something like: | ||
|
||
``` | ||
> newmap <device> map2 | ||
``` | ||
|
||
(`map2` being the mapping's name) | ||
|
||
(note that mapping names can't have spaces) | ||
|
||
## copying a mapping | ||
|
||
if you want to copy a mapping, type something like: | ||
|
||
``` | ||
> copymap <device> oldMap newMap | ||
``` | ||
|
||
## deleting a mapping | ||
|
||
if you want to get rid of a mapping, you can do so: | ||
|
||
``` | ||
> delmap <device> map2 | ||
``` | ||
|
||
but first make sure that's not the current mapping. | ||
|
||
## switching between mappings (using the command line) | ||
|
||
``` | ||
> switchmap <device> map2 | ||
``` | ||
|
||
## binding a mapping to a key | ||
|
||
``` | ||
> addaction <device> KEY_RIGHTMETA switchmap map2 | ||
``` | ||
|
||
## mapping shifting | ||
|
||
mapping shifting is an ability of input-modifier in where you hold a key to temporarily activate a mapping. | ||
|
||
``` | ||
> addaction <device> KEY_RIGHTMETA shiftmap map2 | ||
``` | ||
|
||
## adding actions to a mapping without changing mappings | ||
|
||
yes, you can. as an example: | ||
|
||
``` | ||
> addaction <device> @mapName KEY_LSHIFT macro macro1 | ||
``` | ||
|
||
(replace `@mapName` with the mapping's name preceded by an at symbol (`@`), for example, `@map2`) | ||
|
||
the commands `listactions`, `clearactions`, `delaction` and `listbinds` also have this feature: | ||
|
||
``` | ||
> listbinds <device> @map2 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# devices | ||
|
||
after you've started the input-modifier daemon, you might be wondering how to control the program. | ||
|
||
this is done by using a little utility called `imod-cli`, which is a command-line interface to input-modifier. | ||
|
||
(don't worry, a GUI will come at some point) | ||
|
||
to open up the utility, type the following in a new terminal (because the terminal you used to start up input-modifier is now occupied): | ||
|
||
``` | ||
imod-cli | ||
``` | ||
|
||
if you've done this correctly, you should be at the input-modifier prompt: | ||
|
||
``` | ||
> | ||
``` | ||
|
||
now you can begin typing commands. | ||
|
||
## but what is better for me to do first? | ||
|
||
to list your devices. to do so, type the following at the prompt: | ||
|
||
``` | ||
> listdevices | ||
``` | ||
|
||
this will return something like: | ||
|
||
``` | ||
0: Keyboard | ||
1: Mouse | ||
Ready. | ||
``` | ||
|
||
the numbers at the left side are device indexes, which may change at any time (and as such discouraged to use in furthercoming commands). | ||
|
||
the names at the right side are your device's names, which you can use in the next commands. | ||
|
||
## enabling devices | ||
|
||
these devices are in the "disabled" state when they are first detected by input-modifier. | ||
this means keybindings, macros, or the like won't work. | ||
|
||
to enable a device, type the following: | ||
|
||
``` | ||
> enable <device> | ||
``` | ||
|
||
where `<device>` is your device's name. note that you don't have to type the full name, for convenience. | ||
|
||
as an example: | ||
|
||
``` | ||
> enable Keyboard | ||
``` | ||
|
||
enables the device "Keyboard". you may also type: | ||
|
||
``` | ||
> enable key | ||
``` | ||
|
||
and it will have an equivalent effect. | ||
|
||
to disable a device, in case you don't want it to do keybindings anymore, do: | ||
|
||
``` | ||
> disable <device> | ||
``` | ||
|
||
for example: | ||
|
||
``` | ||
> disable keyboard | ||
``` | ||
|
||
following is [keybinds](4-keybinds.md). the moment you've been waiting for. | ||
|
||
## device name notes | ||
|
||
if your device's name contains spaces, then typing the device's name with spaces won't work. | ||
|
||
however, you may still type only a portion of its name. as an example, if your device's called "Razer Ornata Chroma", you only have to type "ornata" or similar. | ||
|
||
``` | ||
> enable ornata | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.