Switch to brightnessctl

This commit is contained in:
SebastianStork 2024-04-22 18:19:41 +02:00
parent c90fd43df3
commit 3e57420b04
2 changed files with 5 additions and 5 deletions

View file

@ -101,8 +101,8 @@
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
# Adjust brightness
", XF86MonBrightnessUp, exec, brillo -q -u 20000 -A 4"
", XF86MonBrightnessDown, exec, brillo -q -u 20000 -U 4"
", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -e set +2%"
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -e set 2%-"
];
# Mouse

View file

@ -1,4 +1,4 @@
{...}: {
{pkgs, lib, ...}: {
imports = [./default.nix];
home-manager.users.seb = {
@ -7,8 +7,8 @@
services.hypridle.listeners = [
{
timeout = 300;
onTimeout = "brillo -q -O && brillo -q -S 10";
onResume = "brillo -q -I";
onTimeout = "${lib.getExe pkgs.brightnessctl} -s && ${lib.getExe pkgs.brightnessctl} -e set 10%";
onResume = "${lib.getExe pkgs.brightnessctl} -r";
}
{
timeout = 1200;