mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
fix: safeeyes not triggering
This commit is contained in:
parent
5fc2637159
commit
5c7193200e
4 changed files with 21 additions and 19 deletions
|
|
@ -4908,6 +4908,7 @@ Also, the system state version is set here. No need to touch it.
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./xdg-portal.nix
|
./xdg-portal.nix
|
||||||
# ./yubikey-touch-detector.nix
|
# ./yubikey-touch-detector.nix
|
||||||
|
./safeeyes.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix =
|
nix =
|
||||||
|
|
@ -6240,6 +6241,20 @@ This allows me to use screen sharing on Wayland. The implementation is a bit cru
|
||||||
}
|
}
|
||||||
#+end_src
|
#+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
|
*** Optional
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
|
|
@ -6424,7 +6439,7 @@ This section sets up all the imports that are used in the home-manager section.
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./gpg-agent.nix
|
./gpg-agent.nix
|
||||||
./gammastep.nix
|
./gammastep.nix
|
||||||
./safeeyes.nix
|
# ./safeeyes.nix
|
||||||
./yubikey-touch-detector.nix
|
./yubikey-touch-detector.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
@ -8052,20 +8067,6 @@ The `extraConfig` section here CANNOT be reindented. This has something to do wi
|
||||||
}
|
}
|
||||||
#+end_src
|
#+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
|
***** yubikey-touch-detector
|
||||||
|
|
||||||
#+begin_src nix :tangle profiles/common/home/yubikey-touch-detector.nix
|
#+begin_src nix :tangle profiles/common/home/yubikey-touch-detector.nix
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./gpg-agent.nix
|
./gpg-agent.nix
|
||||||
./gammastep.nix
|
./gammastep.nix
|
||||||
./safeeyes.nix
|
# ./safeeyes.nix
|
||||||
./yubikey-touch-detector.nix
|
./yubikey-touch-detector.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@
|
||||||
./sway.nix
|
./sway.nix
|
||||||
./xdg-portal.nix
|
./xdg-portal.nix
|
||||||
# ./yubikey-touch-detector.nix
|
# ./yubikey-touch-detector.nix
|
||||||
|
./safeeyes.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
nix =
|
nix =
|
||||||
|
|
|
||||||
|
|
@ -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"'
|
timeout 600 'swaymsg "output * dpms off"'
|
||||||
after-resume 'swaymsg "output * dpms on"'
|
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 -'
|
before-sleep 'swaylock -f --screenshots --clock --effect-blur 7x5 --effect-vignette 0.5:0.5 --fade-in 0.2'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue