Commit Graph
3 Commits
Author SHA1 Message Date
Peter KaplanandIsaac Freund 44aaee3a51 command/map: layout-pinned mappings
e.g. `riverctl map -layout 0 normal Super Y spawn foot`

When this mapping is checked against a pressed key, layout 0 will be used to translate the pressed key instead of the currently active layout.

The number denotes to an index of the layouts set with
`XKB_DEFAULT_LAYOUT`.
2022-04-27 18:31:08 +02:00
Peter KaplanandIsaac Freund a8491eb13e command/hide-cursor: fix crash on missing option 2022-04-14 20:39:35 +02:00
Peter KaplanandIsaac Freund 60fdefc3fd input: add map-switch/unmap-switch commands
This allows running a command on a laptop's lid being opened/closed
or a tablet's button/switch being pressed/toggled.
2022-04-14 12:49:47 +02:00