Skip to content

[Feature Request] Add a symbol to exclusively press virtual keys #309

@WagnerGFX

Description

@WagnerGFX

As stated in the Virtual Keys section, the keymapper script allows to toggle virtual keys with VirtualKey and release them with !VirtualKey, but there is no option to only press the key.

keymapperctl has --press, --release and --toggle. It's even possible to emulate this behavior with VPress = $(keymapperctl --press $0) but it doesn't feel right to rely on shell commands for such a basic operation and it gets harder to read the script as seemly related operations look quite different.

Could it be possible to use +VirtualKey or another available symbol to represent a behavior similar to !VirtualKey?

Why?

  • Creates the possibility to write a script where multiple keys need to enable or disable a virtual key, but they shouldn't toggle the key.
  • Not rely on a shell command for that operation.
  • Make scripts easier and more readable when writing complex code that is using virtual keys as booleans and state switches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions