Move glpaper to a user service
This commit is contained in:
parent
d96dda6f0a
commit
1c0382befa
|
@ -26,16 +26,32 @@
|
|||
};
|
||||
input = { "type:pointer" = { pointer_accel = "-0.3"; }; };
|
||||
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
|
||||
{ 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
|
||||
services.gammastep = {
|
||||
enable = true;
|
||||
|
|
Loading…
Reference in New Issue