mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 00:21:34 +01:00
Switch to brightnessctl
This commit is contained in:
parent
c90fd43df3
commit
3e57420b04
2 changed files with 5 additions and 5 deletions
|
|
@ -101,8 +101,8 @@
|
||||||
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-"
|
||||||
|
|
||||||
# Adjust brightness
|
# Adjust brightness
|
||||||
", XF86MonBrightnessUp, exec, brillo -q -u 20000 -A 4"
|
", XF86MonBrightnessUp, exec, ${lib.getExe pkgs.brightnessctl} -e set +2%"
|
||||||
", XF86MonBrightnessDown, exec, brillo -q -u 20000 -U 4"
|
", XF86MonBrightnessDown, exec, ${lib.getExe pkgs.brightnessctl} -e set 2%-"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Mouse
|
# Mouse
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
{pkgs, lib, ...}: {
|
||||||
imports = [./default.nix];
|
imports = [./default.nix];
|
||||||
|
|
||||||
home-manager.users.seb = {
|
home-manager.users.seb = {
|
||||||
|
|
@ -7,8 +7,8 @@
|
||||||
services.hypridle.listeners = [
|
services.hypridle.listeners = [
|
||||||
{
|
{
|
||||||
timeout = 300;
|
timeout = 300;
|
||||||
onTimeout = "brillo -q -O && brillo -q -S 10";
|
onTimeout = "${lib.getExe pkgs.brightnessctl} -s && ${lib.getExe pkgs.brightnessctl} -e set 10%";
|
||||||
onResume = "brillo -q -I";
|
onResume = "${lib.getExe pkgs.brightnessctl} -r";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
timeout = 1200;
|
timeout = 1200;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue