diff --git a/home/ludwig.nix b/home/ludwig.nix index deaf984..2f3d8a7 100644 --- a/home/ludwig.nix +++ b/home/ludwig.nix @@ -1,18 +1,14 @@ -{ - pkgs, - inputs, - outputs, - ... -}: let -in { +{ pkgs, ... }: { imports = [ ./global ./features/desktop/awesome + ./features/desktop/common/alacritty.nix + ./features/desktop/hyprland ./features/desktop/gnome ./features/coding ]; - home.packages = with pkgs; [nextcloud-client]; + home.packages = with pkgs; [ nextcloud-client ]; nixpkgs = { config = { @@ -22,4 +18,16 @@ in { ]; }; }; + + wayland.windowManager.hyprland = { + settings = { + bind = [ + ", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+" + ", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-" + ", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle" + ", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set +10%" + ", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 10%-" + ]; + }; + }; } diff --git a/hosts/ludwig/default.nix b/hosts/ludwig/default.nix index 2b8aa3e..6f5ef49 100644 --- a/hosts/ludwig/default.nix +++ b/hosts/ludwig/default.nix @@ -25,6 +25,7 @@ ../common/global ../common/optional/desktop/awesome.nix + ../common/optional/desktop/hyprland.nix ../common/optional/desktop/gnome.nix ../common/optional/systemd-boot.nix