hyprland-wiki
hyprland-wiki copied to clipboard
Update Uncommon-tips-&-tricks.md
Added a quick little hack for toggling touchpad on the fly
IMO not clear enough that
true|falseis not a valid thing and one should be picked
Honestly, the true|false thing was a hit or miss for me as I'm new to hyprland. Since most of other WMs make use of the pipe operator (|) in order to do perform one thing or the other (left hand or right hand) according to the number of times the key combination is encountered (ie. EXECUTE THIS FIRST TIME|EXECUTE THIS THE SECOND TIME).
However, I did stumble upon something I cannot say for sure if this is a bug or not because I tested this thing in a hurry but, Say for example you're using the exact same keybinding I provided and you disable your Touchpad with that keybind on the fly. Now, if you open up a terminal and manually try to enable the device with hyprctl keyword blabla it does output ok but does not actually enable your Touchpad.
Still learning about Hyprland though, do correct me wherever needed, I'm just happy to contribute to Hypr.
hyprland doesn't do that. This can be doable with a script. (or two binds to two keys)
Interesting, I wonder why it works then, perhaps a bug?
I don't think it does, unless your shell does this.