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 | 09f4d205fe463faf676f95e798d08e8bf498be96 (patch) | |
| tree | ac60b2aa4d8350d5ab3c0e6f76361daf70d1d702 /scripts/wipedisk | |
| parent | eee30be993c6ff79a5e7fa5f37d6ba368dc0c3d9 (diff) | |
| download | archsetup-09f4d205fe463faf676f95e798d08e8bf498be96.tar.gz archsetup-09f4d205fe463faf676f95e798d08e8bf498be96.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 'scripts/wipedisk')
0 files changed, 0 insertions, 0 deletions
