From c944602b341a68e262b476713e8b993a29f55911 Mon Sep 17 00:00:00 2001 From: ant Date: Sun, 2 Feb 2025 20:13:28 +0100 Subject: [PATCH] Add a control to turn the screen off (super+0 then d) --- bar.nix | 2 +- hyprland.nix | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bar.nix b/bar.nix index efb7c17..17b579d 100644 --- a/bar.nix +++ b/bar.nix @@ -285,7 +285,7 @@ }; "hyprland/submap" = { - format = "(l)ock, (e)xit, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown"; + format = "(l)ock, (d)pms, (e)xit, (s)uspend, (h)ibernate, (r)eboot, (S)hutdown"; }; "custom/nvidia-load" = { diff --git a/hyprland.nix b/hyprland.nix index 3c5e528..22ad438 100644 --- a/hyprland.nix +++ b/hyprland.nix @@ -420,6 +420,9 @@ bind = ,l, exec, swaylock bind = ,l, submap, reset + bind = ,d, exec, sleep .1 && hyprctl dispatch dpms + bind = ,d, submap, reset + bind = ,escape, submap, reset submap = reset '';