From abfd516025fa19f08213ad3e724a2e0d12f77d6a Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 18 May 2023 11:10:43 +0000 Subject: [PATCH] sxmo: configure volume and power keys --- hosts/modules/gui/sxmo.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/modules/gui/sxmo.nix b/hosts/modules/gui/sxmo.nix index 02e81e50..86593f0f 100644 --- a/hosts/modules/gui/sxmo.nix +++ b/hosts/modules/gui/sxmo.nix @@ -184,6 +184,9 @@ in ]; # XXX: make sure the user is part of the `input` group! SXMO_LISGD_INPUT_DEVICE = "/dev/input/by-id/usb-Wacom_Co._Ltd._Pen_and_multitouch_sensor-event-if00"; + # these identifiers are from `swaymsg -t get_inputs` + SXMO_VOLUME_BUTTON = "1:1:AT_Translated_Set_2_keyboard"; + SXMO_POWER_BUTTON = "0:1:Power_Button"; # sxmo tries to determine device type from /proc/device-tree/compatible, # but that doesn't seem to exist on NixOS? (or maybe it just doesn't exist # on non-aarch64 builds).