mirror of
https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git
synced 2025-09-15 09:45:58 +03:00

- Replace wlsunset with hyprsunset for better Hyprland integration - Add temperature adjustment functions with scroll support in Waybar - Implement persistent temperature storage in `~/.cache/hyprsunset_temp` - Add temperature bounds (2000K-6500K) with 100K increment/decrement steps - Update NixOS configuration to include hyprsunset package Fixes temperature persistence and improves Hyprland compatibility
10 lines
358 B
Fish
10 lines
358 B
Fish
function check_night_mode
|
|
set target_process hyprsunset
|
|
|
|
if pgrep $target_process >/dev/null
|
|
echo "{ \"text\":\"\", \"tooltip\": \"night-mode <span color='#a6da95'>on</span>\", \"class\": \"on\" }"
|
|
else
|
|
echo "{ \"text\":\"\", \"tooltip\": \"night-mode <span color='#ee99a0'>off</span>\", \"class\": \"off\" }"
|
|
end
|
|
end
|