add service for polkit-gnome

This commit is contained in:
lucy 2026-10-16 12:51:49 +02:00
commit 2cab445aad
2 changed files with 19 additions and 2 deletions

View file

@ -8,7 +8,10 @@ hook = "cp %f ~/.config/qt6ct/colors/tinted.conf"
path = "https://git.lucy.rip/lucy/tinted-gtk"
name = "tinted-gtk"
themes-dir = "build"
hook = "cp %f ~/.config/gtk-3.0/gtk.css; cp %f ~/.config/gtk-4.0/gtk.css"
hook = """
cp %f ~/.config/gtk-3.0/gtk.css; cp %f ~/.config/gtk-4.0/gtk.css
systemctl --user restart polkit-gnome.service
"""
[[items]]
path = "https://github.com/tinted-theming/tinted-terminal"

View file

@ -31,11 +31,25 @@
wantedBy = [ config.maid.systemdGraphicalTarget ];
reloadIfChanged = true;
serviceConfig = {
Type = "notify";
Type = "notify";
ExecReload = "${pkgs.coreutils}/bin/kill -USR2 $MAINPID";
BusName = "com.mitchellh.ghostty";
ExecStart = "${pkgs.ghostty}/bin/ghostty --gtk-single-instance=true --initial-window=false";
};
};
systemd.services.polkit-gnome = {
wantedBy = [ config.maid.systemdGraphicalTarget ];
unitConfig = {
Description = "polkit-gnome authentication agent";
PartOf = [ config.maid.systemdGraphicalTarget ];
After = [ config.maid.systemdGraphicalTarget ];
};
serviceConfig = {
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
};
};
};
}