Skip to content

Commit

Permalink
workstation: add Systemd timers to automate OpenRGB profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwell-lt committed Feb 26, 2025
1 parent 8780133 commit 0927d76
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions machines/workstation/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -322,18 +322,39 @@ in
systemd.user.services = {
openrgb-off = {
Service = {
ExecStart = "openrgb -p /home/maxwell/.config/OpenRGB/Off.orp";
ExecStart = "${pkgs.openrgb-with-all-plugins}/bin/openrgb -p /home/maxwell/.config/OpenRGB/Off.orp";
Type = "oneshot";
};
};
openrgb-on = {
Service = {
ExecStart = "openrgb -p /home/maxwell/.config/OpenRGB/Red.orp";
ExecStart = "${pkgs.openrgb-with-all-plugins}/bin/openrgb -p /home/maxwell/.config/OpenRGB/Red.orp";
Type = "oneshot";
};
};
};

systemd.user.timers = {
openrgb-off = {
Timer = {
OnCalendar = "22:00:00";
Unit = "openrgb-off.service";
};
Install = {
WantedBy = [ "timers.target" ];
};
};
openrgb-on = {
Timer = {
OnCalendar = "07:00:00";
Unit = "openrgb-on.service";
};
Install = {
WantedBy = [ "timers.target" ];
};
};
};

# Home Manager needs a bit of information about you and the
# paths it should manage.
home.username = "maxwell";
Expand Down

0 comments on commit 0927d76

Please sign in to comment.