hyprland-wiki icon indicating copy to clipboard operation
hyprland-wiki copied to clipboard

Update Uncommon-tips-&-tricks.md

Open 2hexed opened this issue 1 year ago • 4 comments

Added a quick little hack for toggling touchpad on the fly

2hexed avatar Feb 09 '24 17:02 2hexed

IMO not clear enough that true|false is 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.

2hexed avatar Feb 09 '24 19:02 2hexed

hyprland doesn't do that. This can be doable with a script. (or two binds to two keys)

vaxerski avatar Feb 13 '24 18:02 vaxerski

Interesting, I wonder why it works then, perhaps a bug?

2hexed avatar Feb 14 '24 12:02 2hexed

I don't think it does, unless your shell does this.

vaxerski avatar Feb 14 '24 14:02 vaxerski