From 9791e7fb668219d330ee6f9c509b17c2691596b6 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 29 Oct 2020 08:38:19 +0000 Subject: modules/pixelbook: map power button to suspend This makes much more sense for a tablet-like device. --- modules/workstation/hardware/pixelbook/default.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/workstation/hardware/pixelbook') diff --git a/modules/workstation/hardware/pixelbook/default.nix b/modules/workstation/hardware/pixelbook/default.nix index 926558bd91b0..6a247fcb9460 100644 --- a/modules/workstation/hardware/pixelbook/default.nix +++ b/modules/workstation/hardware/pixelbook/default.nix @@ -7,4 +7,8 @@ # Remap Google Assistant to left super. /run/current-system/sw/bin/setkeycodes e058 125 ''; + + services.logind.extraConfig = '' + HandlePowerKey=suspend + ''; } -- cgit 1.4.1