From 59dbc84cb214ed3df6506e95d3bf59b89f9d3548 Mon Sep 17 00:00:00 2001 From: devhell Date: Mon, 1 Mar 2021 02:08:40 +0000 Subject: machines/herja: Add non-functioning mute btn event For some reason this doesn't work yet. It works fine when run manually as root or my own user, but when acpid runs it nothing happens. Dunno yet why. --- machines/devhell/herja.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'machines/devhell') diff --git a/machines/devhell/herja.nix b/machines/devhell/herja.nix index f24f5b7e..c086a7ec 100644 --- a/machines/devhell/herja.nix +++ b/machines/devhell/herja.nix @@ -127,6 +127,16 @@ services.tlp.enable = true; services.illum.enable = true; services.fwupd.enable = true; + services.acpid = { + enable = true; + handlers = { + mutebutton = { + action = "${pkgs.pulseaudioLight}/bin/pactl set-source-mute 1 toggle"; + event = "button/f20.*"; + }; + }; + logEvents = true; + }; services.xserver = { enable = true; -- cgit 1.4.1