renamed command line arg to print key names

xkb
sezanzeb 4 years ago committed by sezanzeb
parent 2e0b8095a3
commit 7c88692c86

@ -37,7 +37,7 @@ delay of 10ms that can be configured in `~/.config/key-mapper/config`.
##### Key Names ##### Key Names
Run `key-mapper-service --names` for a list of supported keys for Run `key-mapper-service --key-names` for a list of supported keys for
the middle column. Examples: the middle column. Examples:
- Alphanumeric `a` to `z` and `0` to `9` - Alphanumeric `a` to `z` and `0` to `9`

@ -66,7 +66,7 @@ if __name__ == '__main__':
default=False default=False
) )
parser.add_argument( parser.add_argument(
'-n', '--names', action='store_true', dest='names', '-n', '--key-names', action='store_true', dest='key_names',
help='Print all available names for the mapping', help='Print all available names for the mapping',
default=False default=False
) )
@ -85,7 +85,7 @@ if __name__ == '__main__':
add_filehandler() add_filehandler()
log_info() log_info()
if options.names: if options.key_names:
# TODO test # TODO test
print('\n'.join(system_mapping.list_names())) print('\n'.join(system_mapping.list_names()))
sys.exit(0) sys.exit(0)

@ -690,7 +690,7 @@
"r(3, k(a).w(500))", "h(a).k(b)" "r(3, k(a).w(500))", "h(a).k(b)"
"m(Control_L, k(a).k(x))" "m(Control_L, k(a).k(x))"
Run `key-mapper-service --names` for more Run `key-mapper-service --key-names` for more
Macros: Macros:
- r: repeats the execution of the second parameter - r: repeats the execution of the second parameter

Loading…
Cancel
Save