correct hyprctl calling

This commit is contained in:
2026-02-09 12:33:09 -05:00
parent 2126a0f899
commit 8c0ad59c3d

View File

@@ -15,6 +15,11 @@
systemd.services.heat-room = { systemd.services.heat-room = {
description = "Morning room heating"; description = "Morning room heating";
after = [ "graphical-session.target" ];
environment = {
WAYLAND_DISPLAY = "wayland-1";
XDG_RUNTIME_DIR = "/run/user/1000";
};
serviceConfig = { serviceConfig = {
Type = "oneshot"; Type = "oneshot";
User = "jeremy"; User = "jeremy";
@@ -22,7 +27,7 @@
script = '' script = ''
${pkgs.furmark}/bin/furmark --demo furmark-gl & ${pkgs.furmark}/bin/furmark --demo furmark-gl &
sleep 1s sleep 1s
hyprctl dispatch dpms off ${pkgs.hyprland}/bin/hyprctl dispatch dpms off
sleep 2h sleep 2h
pkill furmark pkill furmark
''; '';