From 1c25a32635a8c022cbd940d2520c356ec2b7e5f0 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 22 Jan 2023 17:36:13 +0530 Subject: handle keybinds --- hosts/myrtle/configuration.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'hosts') diff --git a/hosts/myrtle/configuration.nix b/hosts/myrtle/configuration.nix index 20855e2..7986e9c 100644 --- a/hosts/myrtle/configuration.nix +++ b/hosts/myrtle/configuration.nix @@ -88,7 +88,7 @@ pulseaudio = { enable = true; package = pkgs.pulseaudioFull; - extraConfig = "load-module module-bluetooth-policy auto_switch=2"; + # extraConfig = "load-module module-bluetooth-policy auto_switch=2"; }; # opengl.enable = true; bluetooth = { @@ -117,9 +117,14 @@ enable = true; enableUserService = true; }; - services.supergfxd.enable = false; + services.supergfxd.enable = true; - powerManagement.powertop.enable = true; + services.logind.extraConfig = '' + HandlePowerKey=suspend-then-hibernate + HandlePowerKeyLongPress=poweroff + ''; + + powerManagement.powertop.enable = false; users.users.np = { isNormalUser = true; -- cgit v1.2.3