[remEYEnder] Add icon

This commit is contained in:
Tibo De Peuter 2024-09-19 15:56:13 +02:00
parent dc8fa78220
commit 5fdf52e0dc
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
4 changed files with 9940 additions and 2 deletions

View file

@ -2,8 +2,10 @@
let let
cfg = config.sisyphus.services.remEYEnder; cfg = config.sisyphus.services.remEYEnder;
icon = ./vecteezy_eyes-line-icon-vector-isolated_13932670.jpg;
in { in {
option.sisyphus.services.remEYEnder.enable = lib.mkEnableOption "Eye reminder"; options.sisyphus.services.remEYEnder.enable = lib.mkEnableOption "Eye reminder";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
systemd.user = { systemd.user = {
@ -13,7 +15,7 @@ in {
serviceConfig.Type = "oneshot"; serviceConfig.Type = "oneshot";
script = '' script = ''
# Display reminder for 20 seconds. # Display reminder for 20 seconds.
${pkgs.libnotify}/bin/notify-send -t 20000 "RemEYEnder" "Look away from your screen :)" ${pkgs.libnotify}/bin/notify-send -t 20000 --icon=${icon} "RemEYEnder" "Look away from your screen :)"
''; '';
}; };
timers.remEYEnder = { timers.remEYEnder = {

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 KiB