add location and do not disturb toggles

This commit is contained in:
Henry Hiles 2026-11-17 23:30:04 -05:00
commit 518ffa31b4
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -10,6 +10,9 @@ The bar shows the time, cellular, Wi-Fi, Bluetooth and battery. The sheet has:
- Wi-Fi, Bluetooth, cellular and mobile data toggles. The arrow on Wi-Fi opens `nmgui`, and on
Bluetooth it opens `adw-bluetooth`.
- Location, which decides whether apps get your location through GeoClue. The bar shows an icon
while one is using it.
- Do not disturb, which stops notifications popping up. They still go into the sheet.
- A flashlight
- Rotation, with a choice of orientations
- Screenshot and power (suspend, restart, power off) buttons
@ -50,6 +53,15 @@ It brings `nmcli`, `mmcli`, `nmgui` and `adw-bluetooth` with it. The system need
- The Papirus-Dark icon theme and the Inter font
- An on-screen keyboard that uses text-input-v3, like Stevia, to type the password
- No other notification daemon, like swaync or mako, as only one can run at a time
- GeoClue, with quadshell as its agent, for the location toggle:
```nix
services.geoclue2 = {
enable = true;
enableDemoAgent = false;
whitelistedAgents = [ "quadshell" ];
};
```
## Developing
@ -60,7 +72,8 @@ nix run .#phone [host]
This copies `src` to the phone over SSH (`host` defaults to `phone`) and runs it there, showing
its logs until you press Ctrl+C. It stops any other running Quickshell first, so when you quit
there's no bar until you run it again. The phone needs Quickshell from this flake's nixpkgs
already in its store, as it doesn't download anything.
already in its store. The location agent gets built on the phone, from things this machine copies
over, so the phone doesn't need to download anything.
### Editor support