diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 03c9615..054b69e 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -34,8 +34,8 @@ # Enable sound. services.pipewire = { - enable = true; - pulse.enable = true; + enable = true; + pulse.enable = true; }; hardware.opengl.driSupport32Bit = true; @@ -50,7 +50,7 @@ isNormalUser = true; home = "/home/daniel"; initialPassword = "password"; - extraGroups = [ "wheel" "networkmanager" "docker" ]; + extraGroups = [ "wheel" "networkmanager" "docker" "video" ]; shell = pkgs.zsh; }; diff --git a/hosts/pingbox/configuration.nix b/hosts/pingbox/configuration.nix index 9b14f3b..2f7d033 100644 --- a/hosts/pingbox/configuration.nix +++ b/hosts/pingbox/configuration.nix @@ -17,6 +17,8 @@ powertop.enable = true; }; + hardware.acpilight.enable = true; + networking = { hostName = "pingbox"; interfaces.wlp170s0.useDHCP = true; diff --git a/user/daniel/home.nix b/user/daniel/home.nix index 7b3e0fd..bbd1c86 100644 --- a/user/daniel/home.nix +++ b/user/daniel/home.nix @@ -75,6 +75,7 @@ mpv nerdfonts oh-my-zsh + pamixer pavucontrol playerctl ( diff --git a/user/progs/i3/default.nix b/user/progs/i3/default.nix index da8a8d8..d690124 100644 --- a/user/progs/i3/default.nix +++ b/user/progs/i3/default.nix @@ -155,6 +155,15 @@ in { "${mod}+p" = "scratchpad show"; "${mod}+Escape" = "exec i3lock -i /home/daniel/wallpapers/lock.png"; "${mod}+Shift+Escape" = "exec i3lock -i /home/daniel/wallpapers/lock.png && systemctl suspend"; + + "XF86MonBrightnessUp" = "exec xbacklight -inc 10"; + "XF86MonBrightnessDown" = "exec xbacklight -dec 10"; + "XF86AudioMute" = "exec pamixer -t"; + "XF86AudioLowerVolume" = "exec pamixer -d 10"; + "XF86AudioRaiseVolume" = "exec pamixer -i 10"; + "XF86AudioPrev" = "exec playerctl previous"; + "XF86AudioPlay" = "exec playerctl play-pause"; + "XF86AudioNext" = "exec playerctl next"; }; modifier = mod;