Use gammastep instead of redshift

This commit is contained in:
Simon Bruder 2021-05-24 22:12:57 +02:00
parent 7450828b63
commit ad0748ba1b
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -372,10 +372,10 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
};
"custom/redshift" = {
exec = watchUserUnitState
"redshift"
"gammastep"
{ class = "active"; }
{ class = "inactive"; };
on-click = toggleUserUnitState "redshift";
on-click = toggleUserUnitState "gammastep";
return-type = "json";
format = "";
tooltip = false;
@ -582,10 +582,8 @@ lib.mkIf nixosConfig.sbruder.gui.enable {
};
};
services.redshift = {
services.gammastep = {
enable = true;
package = pkgs.redshift-wlr;
extraOptions = [ "-v" "-m" "wayland" ];
latitude = "49.52";
longitude = "10.17";
temperature = {