aboutsummaryrefslogtreecommitdiff
path: root/tests/layout-navigate
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-21 17:48:47 -0400
committerCraig Jennings <c@cjennings.net>2026-05-21 17:48:47 -0400
commit539b5db3f7e86233ed493d735732d9f2fd26021f (patch)
tree61e66e49855bcefdb62b00068323f240bf037a5a /tests/layout-navigate
parentfd36ff045516d467abdbf6121894e1fbd14be3ee (diff)
downloadarchsetup-539b5db3f7e86233ed493d735732d9f2fd26021f.tar.gz
archsetup-539b5db3f7e86233ed493d735732d9f2fd26021f.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/layout-navigate')
0 files changed, 0 insertions, 0 deletions