From 25f12159c408f82ef5ece729eb8df3c166622c32 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 19 Dec 2023 09:57:25 -0600 Subject: [PATCH] making hyprland work with dpms and turning screens off This is super necessary because actually turning the screens fully off seems to disconnect it and leaves swaylock broken sometimes. Other times I kill swayidle and thus swaylock isn't working and leaves the computer open to be tampered with. --- home/modules/hyprland.nix | 4 +++- qmk/qmk_firmware | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/home/modules/hyprland.nix b/home/modules/hyprland.nix index aa5ae09..44eb175 100644 --- a/home/modules/hyprland.nix +++ b/home/modules/hyprland.nix @@ -118,6 +118,8 @@ in # misc:disable_autoreload = true misc { focus_on_activate = true + mouse_move_enables_dpms = true + key_press_enables_dpms = true } # example window rules @@ -241,7 +243,7 @@ in exec-once = dbus-update-activation-environment --systemd --all exec-once = jellyfin-mpv-shim exec-once = hyprctl setcursor phinger-cursors-light 24 - exec-once = swayidle -w timeout 300 'swaylock -S --effect-blur 20x3 --fade-in 1 --effect-vignette 0.5:1 --grace 60' timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' before-sleep 'swaylock -S --effect-blur 20x3 --effect-vignette 0.5:1' + exec-once = swayidle -w timeout 300 'swaylock -S --effect-blur 20x3 --fade-in 1 --effect-vignette 0.5:1 --grace 60' timeout 600 'hyprctl dispatch dpms off' resume 'hyprctl dispatch dpms on' before-sleep 'swaylock -S --effect-blur 20x3 --effect-vignette 0.5:1' exec-once = eww open ${if laptop then "bar0" else "bar1"} exec-once = sleep 3 && swww img /home/chris/pics/wallpapers/nixorange.webp -t grow --transition-bezier .14,0,.14,.99 ''; diff --git a/qmk/qmk_firmware b/qmk/qmk_firmware index 127dcdd..cf36df2 160000 --- a/qmk/qmk_firmware +++ b/qmk/qmk_firmware @@ -1 +1 @@ -Subproject commit 127dcdd2277e0c73493f416fedc537391ab2444b +Subproject commit cf36df26fcfed1b4e5a4f2e738dee6a6fa4c78f2