pguedes / gesticle

a libinput gesture daemon
GNU General Public License v3.0
3 stars 1 forks source link

support disabling a mapping #6

Closed pguedes closed 3 years ago

pguedes commented 3 years ago

currently the only way to disable a gesture mapping would be to remove all mappings (for all possible applications) of that gesture as if it is not found for a specific app it would fallback to executing the default mapping

we should have a special mapping to signify do nothing! so that we could disable a gesture action for a specific app without impacting that gesture on other apps

Alsan commented 3 years ago

why not just modify the config toml for that gesture? somethings like:

[swipe.left]
3-disabled = "key1"
4 = "key2"

[code.swipe.left]
3 = "key3"
4 = "key4"
pguedes commented 3 years ago

why not just modify the config toml for that gesture? somethings like:


[swipe.left]

3-disabled = "key1"

4 = "key2"

[code.swipe.left]

3 = "key3"

4 = "key4"

"key1" would be an actual action? I prefer to leave the mapping name as is (no processing) and have some action that signifies "do nothing"

Alsan commented 3 years ago

Yes, key1 should be the actual action. I was thinking droping the usage of xdo, and re-throw the mapped key through libinput (cause I'm using bspwm) for my personal environment :).