diff options
author | Alyssa Ross <hi@alyssa.is> | 2020-10-29 08:38:19 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2020-11-22 14:15:58 +0000 |
commit | 9791e7fb668219d330ee6f9c509b17c2691596b6 (patch) | |
tree | 98112b43d365bb41475e07c69690ee03d7fd3492 /modules/workstation/hardware/pixelbook | |
parent | d814d07a5779f3b88c273a6f899a82095396337f (diff) | |
download | nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.gz nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.bz2 nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.lz nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.xz nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.tar.zst nixlib-9791e7fb668219d330ee6f9c509b17c2691596b6.zip |
modules/pixelbook: map power button to suspend
This makes much more sense for a tablet-like device.
Diffstat (limited to 'modules/workstation/hardware/pixelbook')
-rw-r--r-- | modules/workstation/hardware/pixelbook/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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 + ''; } |