summaryrefslogtreecommitdiff
path: root/common/modules/mango
diff options
context:
space:
mode:
authorbrustybee <beebeeb5k@gmail.com>2026-04-05 23:32:45 +0530
committerbrustybee <beebeeb5k@gmail.com>2026-04-05 23:32:45 +0530
commitf5b78ff561eff75c803ed1ef6e736a6c991cd135 (patch)
tree96faf0aa617cd1736e9e5f79a870513045c00b7c /common/modules/mango
parentee5246d97d338b2b9b3562f7d483d498b78e19c8 (diff)
idk
- add miku cursor - nightlight support on xorg - bring back st and xorg tools back in this repo - add themed_cursor patch st ( kinda manully )
Diffstat (limited to 'common/modules/mango')
-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 ;;