summaryrefslogtreecommitdiff
path: root/common/modules/mango/scripts.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/modules/mango/scripts.nix')
-rw-r--r--common/modules/mango/scripts.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/common/modules/mango/scripts.nix b/common/modules/mango/scripts.nix
index 4379313..d330211 100644
--- a/common/modules/mango/scripts.nix
+++ b/common/modules/mango/scripts.nix
@@ -216,9 +216,21 @@ let
;;
"Night Light: "*)
if [[ "$nl" == "on" ]]; then
- set_val "nightlight" "off"; pkill wlsunset
+ set_val "nightlight" "off"
+
+ if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
+ pkill wlsunset
+ else
+ redshift -x
+ fi
else
- set_val "nightlight" "on"; wlsunset -T 4500 &
+ set_val "nightlight" "on"
+
+ if [[ "$XDG_SESSION_TYPE" == "wayland" ]]; then
+ wlsunset -T 4500 &
+ else
+ redshift -O 4500
+ fi
fi
;;
"Wallpaper") cmd_wall ;;