aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2025-10-09 14:48:50 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2025-10-09 14:48:50 +0530
commitcd2dd570d38bd7aa9483f07c9a4a4acb33078993 (patch)
tree15199caa7dd219b915400e1a7c0905f8b5e339fd
parentdd6ad7288af8b104b47a684e30678a5c1ff3f4d5 (diff)
hyprsunset because my eyes hurt
-rw-r--r--hypr/hyprland/exec_once.conf1
-rw-r--r--hypr/hyprland/keybinds.conf2
-rw-r--r--hypr/hyprsunset.conf12
-rwxr-xr-xhypr/hyprsunset/decrease_sunset.sh1
-rwxr-xr-xhypr/hyprsunset/increase_sunset.sh1
-rw-r--r--nixos/desktop-environment.nix1
6 files changed, 18 insertions, 0 deletions
diff --git a/hypr/hyprland/exec_once.conf b/hypr/hyprland/exec_once.conf
index 2305bf7..9043c15 100644
--- a/hypr/hyprland/exec_once.conf
+++ b/hypr/hyprland/exec_once.conf
@@ -3,3 +3,4 @@ exec-once = ~/.config/hypr/battery-notif.sh # low battery notification
exec-once = wl-paste --watch cliphist store # clipboard
exec-once = mako # notification
exec-once = waybar # top bar
+exec-once = hyprsunset
diff --git a/hypr/hyprland/keybinds.conf b/hypr/hyprland/keybinds.conf
index dc70d7c..9c2e6af 100644
--- a/hypr/hyprland/keybinds.conf
+++ b/hypr/hyprland/keybinds.conf
@@ -77,3 +77,5 @@ bindl = ,XF86AudioPrev, exec, playerctl previous
bindel = ,code:157, exec, $llm
bind = $mainMod, equal, exec, ~/.config/hypr/hypr-zoom/exec.sh
+bind = $mainMod, bracketleft, exec, ~/.config/hypr/hyprsunset/increase_sunset.sh
+bind = $mainMod, bracketright, exec, ~/.config/hypr/hyprsunset/decrease_sunset.sh
diff --git a/hypr/hyprsunset.conf b/hypr/hyprsunset.conf
new file mode 100644
index 0000000..7bd6a1b
--- /dev/null
+++ b/hypr/hyprsunset.conf
@@ -0,0 +1,12 @@
+max-gamma = 150
+
+profile {
+ time = 7:30
+ identity = true
+}
+
+profile {
+ time = 21:00
+ temperature = 5500
+ gamma = 0.8
+}
diff --git a/hypr/hyprsunset/decrease_sunset.sh b/hypr/hyprsunset/decrease_sunset.sh
new file mode 100755
index 0000000..7af5aa8
--- /dev/null
+++ b/hypr/hyprsunset/decrease_sunset.sh
@@ -0,0 +1 @@
+hyprctl hyprsunset temperature +1000
diff --git a/hypr/hyprsunset/increase_sunset.sh b/hypr/hyprsunset/increase_sunset.sh
new file mode 100755
index 0000000..99d1d9f
--- /dev/null
+++ b/hypr/hyprsunset/increase_sunset.sh
@@ -0,0 +1 @@
+hyprctl hyprsunset temperature -1000
diff --git a/nixos/desktop-environment.nix b/nixos/desktop-environment.nix
index 3bfa07e..5bbd4dd 100644
--- a/nixos/desktop-environment.nix
+++ b/nixos/desktop-environment.nix
@@ -19,5 +19,6 @@ in {
lm_sensors
grim
slurp
+ hyprsunset
];
}