diff --git a/home-manager/hyprland/default.nix b/home-manager/hyprland/default.nix index 25eb411..82b8f72 100644 --- a/home-manager/hyprland/default.nix +++ b/home-manager/hyprland/default.nix @@ -6,5 +6,6 @@ ./waybar.nix ./hyprlock.nix ./hyprshade.nix + ./hyprsunset.nix ]; } diff --git a/home-manager/hyprland/hyprland-settings.nix b/home-manager/hyprland/hyprland-settings.nix index f0beb14..8dad8ae 100644 --- a/home-manager/hyprland/hyprland-settings.nix +++ b/home-manager/hyprland/hyprland-settings.nix @@ -257,11 +257,11 @@ in "$mainMod, T, togglegroup" "$mainMod, I, exec, ${rofi} -show drun -show-icons" "$mainMod, period, exec, ${rofimoji}" - "$mainMod, Z, exec, hyprshade off && (${woomer} &) && hyprshade auto" + "$mainMod, Z, exec, ${woomer}" ''$mainMod, S, exec, echo "skip" | nc kopatz.dev 8888'' ''$mainMod, R, exec, hyprctl hyprpaper reload ,"$(ls -d ~/synced/default/dinge/Bg/* | shuf -n 1)"'' "$mainMod, W, exec, hyprctl hyprpaper reload ,${config.stylix.image}" - " , Print, exec, hyprshade off && ${grimblast} --freeze copy area && hyprshade auto" + " , Print, exec, ${grimblast} --freeze copy area" ''$mainMod, Print, exec, export OUT=/tmp/$(date +'%s_grim.png') && ${saved-screenshot-cmd}'' ''Shift_L, Print, exec, export OUT=~/Pictures/$(date +'%s_grim.png') && ${saved-screenshot-cmd}'' #"$mainMod, G, exec, ${peek}" # record gif diff --git a/home-manager/hyprland/hyprshade.nix b/home-manager/hyprland/hyprshade.nix index 30e77bb..e423a75 100644 --- a/home-manager/hyprland/hyprshade.nix +++ b/home-manager/hyprland/hyprshade.nix @@ -9,7 +9,8 @@ let cfg = osConfig.custom.graphical.hyprland; in { - config = lib.mkIf cfg.enable { + config = lib.mkIf false { + # cfg.enable { home.file.".config/hypr/hyprshade.toml".source = ../../.config/hypr/hyprshade.toml; wayland.windowManager.hyprland.settings.exec-once = [ "${pkgs.hyprshade}/bin/hyprshade auto" ]; systemd.user = { diff --git a/home-manager/hyprland/hyprsunset.nix b/home-manager/hyprland/hyprsunset.nix new file mode 100644 index 0000000..207041f --- /dev/null +++ b/home-manager/hyprland/hyprsunset.nix @@ -0,0 +1,51 @@ +{ + osConfig, + pkgs, + lib, + ... +}: + +let + cfg = osConfig.custom.graphical.hyprland; +in +{ + config = lib.mkIf cfg.enable { + ## Enable blue-light filter + #hyprctl hyprsunset temperature 2500 + ## Disable blue-light filter + #hyprctl hyprsunset identity + # + ## Set gamma to 50% + #hyprctl hyprsunset gamma 50 + ## Increase gamma by 10% + #hyprctl hyprsunset gamma +10 + # + ## Reset config to current profile + #hyprctl hyprsunset reset + ## Reset value to current profile + #hyprctl hyprsunset reset temperature + #hyprctl hyprsunset reset gamma + #hyprctl hyprsunset reset identity + # + ## Print current profile + #hyprctl hyprsunset profile + services.hyprsunset = { + enable = true; + settings = { + max-gamma = 150; + + profile = [ + { + time = "7:30"; + identity = true; + } + { + time = "19:00"; + temperature = 3000; + gamma = 0.8; + } + ]; + }; + }; + }; +} diff --git a/modules/graphical/hyprland.nix b/modules/graphical/hyprland.nix index 35b1e7b..3d24e41 100644 --- a/modules/graphical/hyprland.nix +++ b/modules/graphical/hyprland.nix @@ -71,7 +71,7 @@ in wl-clipboard cava dex # starts applications according to .desktop files - hyprshade + #hyprshade #waybar #qt5.qtwayland #qt6.qmake