mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-19 21:49:52 -07:00
feat: add colorscheme toggle and make bar shorter
This commit is contained in:
parent
473ddfbc8f
commit
0dcb37dab7
3 changed files with 91 additions and 22 deletions
|
@ -88,6 +88,23 @@
|
|||
};
|
||||
};
|
||||
|
||||
security.polkit.extraConfig = ''
|
||||
polkit.addRule(function(action, subject) {
|
||||
if (action.id == "org.freedesktop.systemd1.manage-units") {
|
||||
var unit = action.lookup("unit");
|
||||
|
||||
if (unit == "colorscheme-dawn.service" || unit == "colorscheme-dusk.service") {
|
||||
if (subject.active && subject.local) {
|
||||
return polkit.Result.YES;
|
||||
} else {
|
||||
return polkit.Result.AUTH_ADMIN_KEEP;
|
||||
}
|
||||
}
|
||||
}
|
||||
return polkit.Result.NOT_HANDLED;
|
||||
});
|
||||
'';
|
||||
|
||||
nix.extraOptions = ''
|
||||
!include ${config.age.secrets.nix_config_github_pat.path}
|
||||
'';
|
||||
|
@ -119,7 +136,7 @@
|
|||
polarity = lib.mkDefault "dark";
|
||||
};
|
||||
|
||||
environment.etc.polarity.text = "dusk";
|
||||
environment.etc.polarity.text = lib.mkDefault "dusk";
|
||||
|
||||
specialisation = {
|
||||
dawn.configuration = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue