Fix brightness and enable natural scrolling (touchpad)

This commit is contained in:
Dmitriy Holkin 2019-09-15 15:29:17 +04:00
parent 6db6e2aed7
commit f8a4c51300
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ with deviceSpecific; {
script =
''
${pkgs.linuxPackages_latest.cpupower}/bin/cpupower frequency-set -g powersave
echo "500" > /sys/class/backlight/*/brightness
${pkgs.light}/bin/light -S 40
'' + (if !isSSD then ''
${pkgs.hdparm}/bin/hdparm -B 1 /dev/sda
'' else "");
@ -32,7 +32,7 @@ with deviceSpecific; {
script =
''
${pkgs.linuxPackages_latest.cpupower}/bin/cpupower frequency-set -g performance
echo "900" > /sys/class/backlight/*/brightness
${pkgs.light}/bin/light -S 90
'' + (if !isSSD then ''
${pkgs.hdparm}/bin/hdparm -B 255 /dev/sda
'' else "");

View File

@ -11,7 +11,7 @@ with deviceSpecific; {
enable = isLaptop;
sendEventsMode = "disabled-on-external-mouse";
middleEmulation = false;
# naturalScrolling = true;
naturalScrolling = true;
};
# TODO: make settings for laptops with dGPU