diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-21 17:48:47 -0400 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-21 17:48:47 -0400 |
| commit | e2d3ca987b83a63aa39f7288c3fb7116c3fb0a00 (patch) | |
| tree | 61e66e49855bcefdb62b00068323f240bf037a5a /tests/notify | |
| parent | 9208de9645ad8a5aae16ee0a3e90b4f0dd949e1d (diff) | |
| download | archsetup-e2d3ca987b83a63aa39f7288c3fb7116c3fb0a00.tar.gz archsetup-e2d3ca987b83a63aa39f7288c3fb7116c3fb0a00.zip | |
feat(hyprland): add airplane-mode waybar toggle
I added a laptop-only waybar button that drops the machine into a low-power state and restores it on a second click. Engaging turns wifi off, sets the CPU energy-performance preference to power, dims the backlight to 35%, and stops network-only services (tailscale, proton-vpn, avahi, cups, wsdd, geoclue, sshd, fail2ban, syncthing). Bluetooth is left alone so earbuds keep working.
Disengaging replays the state recorded when airplane mode was engaged rather than writing hardcoded defaults. A lever already in its low-power position is left untouched: wifi that was already off stays off, and a service that was already stopped isn't restarted.
The indicator hides itself on machines with no battery, so desktops never show the button. State lives in $XDG_RUNTIME_DIR/airplane-state, and the bar refreshes the moment the toggle fires via a realtime signal.
Diffstat (limited to 'tests/notify')
0 files changed, 0 insertions, 0 deletions
