diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-20 21:55:13 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-20 21:55:13 -0400 |
| commit | 62e45197bb4d440e002b731715343e565cf50ff3 (patch) | |
| tree | 4e1200983cfb953763c39154c5c8731dd2a66648 /scripts | |
| parent | cb209a2d01f5c17024738b490c8fa109959b5303 (diff) | |
| download | archsetup-62e45197bb4d440e002b731715343e565cf50ff3.tar.gz archsetup-62e45197bb4d440e002b731715343e565cf50ff3.zip | |
feat(hyprland): add touchpad state indicator to waybar
The $mod+F9 toggle and the toggle-touchpad / touchpad-auto scripts already worked, but the scripts lived only in ~/.local/bin and were never committed, and there was no way to see the touchpad's state at a glance.
I committed both scripts into the repo so stow installs them, and added a waybar indicator: a waybar-touchpad status script and a custom/touchpad module that shows a mouse glyph when the touchpad is on and a mouse-off glyph (in the dupre orange) when it's off. The scripts signal the module with pkill -RTMIN+9 waybar after each state change, so the icon updates the moment the touchpad toggles. touchpad-auto now runs at login via exec-once.
The waybar-touchpad script has unit tests under tests/waybar-touchpad/ covering the enabled, disabled, and missing-state-file cases.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
