replace hyprshade with hyprsunset

This commit is contained in:
Kopatz
2025-11-06 21:09:02 +01:00
parent b53bd83006
commit 299c2a91d0
5 changed files with 57 additions and 4 deletions

View File

@@ -6,5 +6,6 @@
./waybar.nix
./hyprlock.nix
./hyprshade.nix
./hyprsunset.nix
];
}

View File

@@ -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

View File

@@ -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 = {

View File

@@ -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;
}
];
};
};
};
}

View File

@@ -71,7 +71,7 @@ in
wl-clipboard
cava
dex # starts applications according to .desktop files
hyprshade
#hyprshade
#waybar
#qt5.qtwayland
#qt6.qmake