diff --git a/modules/common.nix b/modules/common.nix index 21877c3..953cd78 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -38,6 +38,7 @@ ./home/nextcloud.nix # Nextcloud autostart ./home/code-cursor.nix # Cursor config ./home/vim.nix # Vim config + ./home/hyprsunset.nix # Hyprsunset night mode ]; }; diff --git a/modules/desktops/hyprland-desktop.nix b/modules/desktops/hyprland-desktop.nix index 8a663a4..71c4373 100644 --- a/modules/desktops/hyprland-desktop.nix +++ b/modules/desktops/hyprland-desktop.nix @@ -101,6 +101,7 @@ hyprpaper # Wallpaper daemon hyprlock # Screen lock utility hyprpicker # Color picker + hyprsunset # Night mode # ---- CLIPBOARD & INPUT ---- wl-clipboard # Clipboard utilities for Wayland diff --git a/modules/home/hyprland.nix b/modules/home/hyprland.nix index 97dfd48..f8a22f3 100644 --- a/modules/home/hyprland.nix +++ b/modules/home/hyprland.nix @@ -8,6 +8,7 @@ in { exec-once = [ "hyprpaper" "hypridle" + "hyprsunset" "hyprctl setcursor capitaine-cursors-white 28" # Set mouse cursor "wl-paste --type text --watch cliphist store" # Stores only text data "wl-paste --type image --watch cliphist store" # Stores only image data diff --git a/modules/home/hyprsunset.nix b/modules/home/hyprsunset.nix new file mode 100644 index 0000000..70ce2ac --- /dev/null +++ b/modules/home/hyprsunset.nix @@ -0,0 +1,19 @@ +{ + services.hyprsunset = { + enable = true; + transitions = { + sunrise = { + calendar = "*-*-* 06:00:00"; + requests = [ + ["identity"] + ]; + }; + sunset = { + calendar = "*-*-* 20:00:00"; + requests = [ + ["temperature" "3000"] + ]; + }; + }; + }; +}