From d5fbab541f3f553c07884953969025f1e99182a0 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 6 Jul 2025 17:04:31 -0700 Subject: [PATCH 1/4] Fix the grep target --- install/nvidia.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/nvidia.sh b/install/nvidia.sh index 6666562..3b310b8 100644 --- a/install/nvidia.sh +++ b/install/nvidia.sh @@ -12,7 +12,7 @@ if [ -n "$(lspci | grep -i 'nvidia')" ]; then # --- Driver Selection --- # Turing (16xx, 20xx), Ampere (30xx), Ada (40xx), and newer recommend the open-source kernel modules - if echo "$gpu_info" | grep -q -E "RTX [2-9][0-9]|GTX 16"; then + if echo "$(lspci | grep -i 'nvidia')" | grep -q -E "RTX [2-9][0-9]|GTX 16"; then NVIDIA_DRIVER_PACKAGE="nvidia-open-dkms" else NVIDIA_DRIVER_PACKAGE="nvidia-dkms" From ab1fca0ce991e8b94059cbb02509ec218236df03 Mon Sep 17 00:00:00 2001 From: Dmitry Knyazev Date: Sun, 6 Jul 2025 17:10:01 -0700 Subject: [PATCH 2/4] add hyprsunset --- default/hypr/bindings.conf | 4 ++++ install/hyprlandia.sh | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/default/hypr/bindings.conf b/default/hypr/bindings.conf index bd96759..6419210 100644 --- a/default/hypr/bindings.conf +++ b/default/hypr/bindings.conf @@ -88,6 +88,10 @@ bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+ bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%- +# Hyprsunset color temperature control +bindel = CTRL, XF86MonBrightnessUp, exec, hyprctl hyprsunset temperature +500 +bindel = CTRL, XF86MonBrightnessDown, exec, hyprctl hyprsunset temperature -500 + # Control Apple Display brightness bind = CTRL, F1, exec, ~/.local/share/omarchy/bin/apple-display-brightness -5000 bind = CTRL, F2, exec, ~/.local/share/omarchy/bin/apple-display-brightness +5000 diff --git a/install/hyprlandia.sh b/install/hyprlandia.sh index 4e9b9af..d340ee7 100644 --- a/install/hyprlandia.sh +++ b/install/hyprlandia.sh @@ -1,5 +1,5 @@ yay -S --noconfirm --needed \ - hyprland hyprshot hyprpicker hyprlock hypridle hyprpolkitagent hyprland-qtutils \ + hyprland hyprshot hyprpicker hyprlock hypridle hyprpolkitagent hyprland-qtutils hyprsunset \ wofi waybar mako swaybg \ xdg-desktop-portal-hyprland xdg-desktop-portal-gtk From 8fb744868f2518706bfededc327fc99e00a7f979 Mon Sep 17 00:00:00 2001 From: Dmitry Knyazev Date: Sun, 6 Jul 2025 17:18:51 -0700 Subject: [PATCH 3/4] Add hyprsunset to autostart Ensures hyprsunset daemon starts automatically with Hyprland session --- default/hypr/autostart.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/default/hypr/autostart.conf b/default/hypr/autostart.conf index 2009e14..9435bfe 100644 --- a/default/hypr/autostart.conf +++ b/default/hypr/autostart.conf @@ -1,4 +1,4 @@ -exec-once = hypridle & mako & waybar & fcitx5 +exec-once = hypridle & mako & waybar & fcitx5 & hyprsunset exec-once = swaybg -i ~/.config/omarchy/current/background -m fill exec-once = systemctl --user start hyprpolkitagent exec-once = wl-clip-persist --clipboard regular & clipse -listen From 1d93459af526457afbb73524fb58513e2f04206e Mon Sep 17 00:00:00 2001 From: Dmitry Knyazev Date: Sun, 6 Jul 2025 17:28:30 -0700 Subject: [PATCH 4/4] Add migration to install hyprsunset for existing users --- migrations/1751848081.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 migrations/1751848081.sh diff --git a/migrations/1751848081.sh b/migrations/1751848081.sh new file mode 100644 index 0000000..1322149 --- /dev/null +++ b/migrations/1751848081.sh @@ -0,0 +1,2 @@ +echo "Add hyprsunset for blue light filtering" +yay -S --noconfirm --needed hyprsunset \ No newline at end of file