Move glpaper to a user service

This commit is contained in:
Nathan McCarty 2023-04-19 18:32:01 -04:00
parent d96dda6f0a
commit 1c0382befa
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 21 additions and 5 deletions

View File

@ -26,16 +26,32 @@
}; };
input = { "type:pointer" = { pointer_accel = "-0.3"; }; }; input = { "type:pointer" = { pointer_accel = "-0.3"; }; };
startup = [ startup = [
# GLPaper
# { command = "glpaper DP-1 ${../../custom-files/sway/selen.frag} --fork"; }
{
command = "glpaper DP-1 ${../../custom-files/sway/selen.frag} --fork";
}
# Up the mouse dpi # Up the mouse dpi
{ command = "solaar config 1 dpi 4000"; } { command = "solaar config 1 dpi 4000"; }
]; ];
}; };
# Sway background
# Spin up glpaper as a user service so we can have it restart on failure (liable due to kvm switch
# disconnecting input)
systemd.user.services.glpaper-dp1 = {
Unit = {
Description = "glpaper (DP-1)";
After = [ "graphical-session.target" ];
};
Service = {
Type = "simple";
ExecStart = ''
/etc/profiles/per-user/nathan/bin/glpaper DP-1 ${
../../custom-files/sway/selen.frag
}
'';
Restart = "always";
};
Install = { WantedBy = [ "graphical-session.target" ]; };
};
# Gammastep # Gammastep
services.gammastep = { services.gammastep = {
enable = true; enable = true;