add location and do not disturb toggles
This commit is contained in:
parent
b5e5ecf2f3
commit
518ffa31b4
1 changed files with 263 additions and 3 deletions
12
package.nix
12
package.nix
|
|
@ -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; };
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue