From d9a8fee795a57c03b01c5a4951777e3a483c92ef Mon Sep 17 00:00:00 2001 From: KaitoTLex Date: Tue, 5 Nov 2024 17:00:32 -0800 Subject: [PATCH] i need help --- hosts/shiroko/configuration.nix | 17 +---------------- users/kaitotlex/de/sway/default.nix | 8 ++++++++ 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/hosts/shiroko/configuration.nix b/hosts/shiroko/configuration.nix index 64e3bdb..e23aeb9 100644 --- a/hosts/shiroko/configuration.nix +++ b/hosts/shiroko/configuration.nix @@ -13,7 +13,7 @@ ]; boot.initrd.luks.fido2Support = true; - + boot.kernelParams = [ "mem_sleep_default=deep" ]; # Bootloader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; @@ -22,21 +22,6 @@ services.fprintd.enable = true; services.desktopManager.plasma6.enable = false; - services.actkbd = { - enable = true; - bindings = [ - { - keys = [ 232 ]; - events = [ "key" ]; - command = "${pkgs.brightnessctl}/bin/brightnessctl set 1000"; - } - { - keys = [ 233 ]; - events = [ "key" ]; - command = "${pkgs.brightnessctl}/bin/brightnessctl set 1000-"; - } - ]; - }; # Configure network proxy if necessary # networking.proxy.default = "http://user:password@proxy:port/"; diff --git a/users/kaitotlex/de/sway/default.nix b/users/kaitotlex/de/sway/default.nix index b6074a4..93cbfe6 100644 --- a/users/kaitotlex/de/sway/default.nix +++ b/users/kaitotlex/de/sway/default.nix @@ -62,5 +62,13 @@ ]; }; xwayland = true; + extraConfig = '' + bindsym XF86AudioRaiseVolume exec pamixer -i 5 + bindsym XF86AudioLowerVolume exec pamixer -d 5 + bindsym XF86AudioMute exec pamixer -t + bindsym XF86MonBrightnessUp exec brightnessctl s 5%+ + bindsym XF86MonBrightnessDown exec brightnessctl s 5%- + ''; }; + }