Skip to content

Commit

Permalink
clight: don't auto-adjust brightness
Browse files Browse the repository at this point in the history
More often than not it'll use the wrong brightness, even after I've configured
the regression curves. I'm no longer bothering with this.
  • Loading branch information
fufexan committed Aug 3, 2023
1 parent 9d67a2e commit 6061b6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
7 changes: 0 additions & 7 deletions hosts/io/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,6 @@
};

services = {
clight.settings.sensor = let
regression = [0.000 0.104 0.299 0.472 0.621 0.749 0.853 0.935 0.995 1.000 1.000];
in {
ac_regression_points = regression;
bat_regression_points = regression;
};

# for SSD/NVME
fstrim.enable = true;

Expand Down
2 changes: 2 additions & 0 deletions modules/desktop.nix
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,10 @@
enable = true;
settings = {
verbose = true;
backlight.disabled = true;
dpms.timeouts = [900 300];
dimmer.timeouts = [870 270];
gamma.long_transition = false;
screen.disabled = true;
};
};
Expand Down
2 changes: 0 additions & 2 deletions modules/gamemode.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
export HYPRLAND_INSTANCE_SIGNATURE=$(ls -1 /tmp/hypr | tail -1)
hyprctl --batch 'keyword decoration:blur 0 ; keyword animations:enabled 0 ; keyword misc:vfr 0'
powerprofilesctl set performance
systemctl --user --machine=1000@ stop clight
'';

endscript = pkgs.writeShellScript "gamemode-end" ''
export PATH=$PATH:${programs}
export HYPRLAND_INSTANCE_SIGNATURE=$(ls -1 /tmp/hypr | tail -1)
hyprctl --batch 'keyword decoration:blur 1 ; keyword animations:enabled 1 ; keyword misc:vfr 1'
powerprofilesctl set power-saver
systemctl --user --machine=1000@ start clight
'';
in {
programs.gamemode = {
Expand Down

0 comments on commit 6061b6a

Please sign in to comment.