From 5c7193200ee9db7c63e5519f25709f996c3cdf4c Mon Sep 17 00:00:00 2001 From: Swarsel Date: Mon, 12 Aug 2024 20:24:13 +0200 Subject: [PATCH] fix: safeeyes not triggering --- SwarselSystems.org | 31 ++++++++++++++++--------------- profiles/common/home/default.nix | 2 +- profiles/common/nixos/default.nix | 1 + programs/swayidle/config | 6 +++--- 4 files changed, 21 insertions(+), 19 deletions(-) diff --git a/SwarselSystems.org b/SwarselSystems.org index f40e733..51a1e66 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -4908,6 +4908,7 @@ Also, the system state version is set here. No need to touch it. ./sway.nix ./xdg-portal.nix # ./yubikey-touch-detector.nix + ./safeeyes.nix ]; nix = @@ -6240,6 +6241,20 @@ This allows me to use screen sharing on Wayland. The implementation is a bit cru } #+end_src +**** safeeyes +:PROPERTIES: +:CUSTOM_ID: h:d33c93f5-0ac8-44e5-8756-02dc0e6975e4 +:END: + +A friend of mine used this service and I used to make fun of him. But I have to admit this is actually a nice program. It forces you to look away from the screen from time to time, reducing eye strain. + +#+begin_src nix :tangle profiles/common/nixos/safeeyes.nix + _: + { + services.safeeyes.enable = true; + } +#+end_src + *** Optional :PROPERTIES: @@ -6424,7 +6439,7 @@ This section sets up all the imports that are used in the home-manager section. ./sway.nix ./gpg-agent.nix ./gammastep.nix - ./safeeyes.nix + # ./safeeyes.nix ./yubikey-touch-detector.nix ]; @@ -8052,20 +8067,6 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi } #+end_src -***** safeeyes -:PROPERTIES: -:CUSTOM_ID: h:d33c93f5-0ac8-44e5-8756-02dc0e6975e4 -:END: - -A friend of mine used this service and I used to make fun of him. But I have to admit this is actually a nice program. It forces you to look away from the screen from time to time, reducing eye strain. - -#+begin_src nix :tangle profiles/common/home/safeeyes.nix - _: - { - services.safeeyes.enable = true; - } -#+end_src - ***** yubikey-touch-detector #+begin_src nix :tangle profiles/common/home/yubikey-touch-detector.nix diff --git a/profiles/common/home/default.nix b/profiles/common/home/default.nix index 02eb188..bf28d6b 100644 --- a/profiles/common/home/default.nix +++ b/profiles/common/home/default.nix @@ -29,7 +29,7 @@ ./sway.nix ./gpg-agent.nix ./gammastep.nix - ./safeeyes.nix + # ./safeeyes.nix ./yubikey-touch-detector.nix ]; diff --git a/profiles/common/nixos/default.nix b/profiles/common/nixos/default.nix index 1e2c311..2026242 100644 --- a/profiles/common/nixos/default.nix +++ b/profiles/common/nixos/default.nix @@ -33,6 +33,7 @@ ./sway.nix ./xdg-portal.nix # ./yubikey-touch-detector.nix + ./safeeyes.nix ]; nix = diff --git a/programs/swayidle/config b/programs/swayidle/config index 2c3e194..d56ef16 100644 --- a/programs/swayidle/config +++ b/programs/swayidle/config @@ -1,4 +1,4 @@ -timeout 300 'swaylock -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize ' +timeout 300 'swaylock -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2' timeout 600 'swaymsg "output * dpms off"' -after-resume 'swaymsg "output * dpms on"' -before-sleep 'swaylock -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2 --daemonize -' +resume 'swaymsg "output * dpms on"' +before-sleep 'swaylock -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2'