replace hyprshade with hyprsunset
This commit is contained in:
@@ -6,5 +6,6 @@
|
||||
./waybar.nix
|
||||
./hyprlock.nix
|
||||
./hyprshade.nix
|
||||
./hyprsunset.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
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
51
home-manager/hyprland/hyprsunset.nix
Normal file
51
home-manager/hyprland/hyprsunset.nix
Normal 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;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -71,7 +71,7 @@ in
|
||||
wl-clipboard
|
||||
cava
|
||||
dex # starts applications according to .desktop files
|
||||
hyprshade
|
||||
#hyprshade
|
||||
#waybar
|
||||
#qt5.qtwayland
|
||||
#qt6.qmake
|
||||
|
||||
Reference in New Issue
Block a user