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

@ -2,6 +2,7 @@
lib,
quickshell,
writeShellApplication,
gjs,
glib,
networkmanager,
modemmanager,
@ -17,6 +18,13 @@ let
root = ./src;
fileset = ./src;
};
locationAgent = writeShellApplication {
name = "quadshell-location-agent";
text = ''
exec ${lib.getExe' gjs "gjs"} -m ${./location-agent.js} "$@"
'';
};
in
writeShellApplication {
name = "quadshell";
@ -31,9 +39,13 @@ writeShellApplication {
gnugrep
glib # gdbus, for logind's lock signal
procps # pgrep, for the wallpaper swaybg is showing
locationAgent
];
text = ''
exec ${lib.getExe quickshell} --path ${config} "$@"
'';
# For nix run .#phone, which only copies src
passthru = { inherit locationAgent; };
}