Move mako to service

This commit is contained in:
Nathan McCarty 2023-04-19 18:45:52 -04:00
parent 1c0382befa
commit ee50baf6aa
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 14 additions and 5 deletions

View File

@ -171,11 +171,6 @@ in with lib; {
"${modifer}+m" =
"exec sh -c 'swaymsg [app_id=\"Alacritty\"] scratchpad show'";
};
# Startup applications
startup = [
# Mako, the notification daemon
{ command = "mako"; }
];
# Turn on numlock by default
input = {
"*" = { xkb_numlock = "enable"; };
@ -208,6 +203,20 @@ in with lib; {
defaultTimeout = 0;
ignoreTimeout = true;
};
systemd.user.services.mako = {
Unit = {
Description = "mako notification daemon";
After = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
${pkgs.mako}/bin/mako
'';
Restart = "always";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
#########################
## Swayidle
#########################