From ac49846fa63f4cd6fcc8183a7a42ed92e9eed886 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sat, 10 Aug 2024 01:48:46 -0700 Subject: [PATCH] feat: add brightness and volume controls --- users/youwen/linux/hyprland/common.nix | 7 +++++++ users/youwen/linux/packages/common-packages.nix | 2 ++ 2 files changed, 9 insertions(+) diff --git a/users/youwen/linux/hyprland/common.nix b/users/youwen/linux/hyprland/common.nix index bf9e84f..44f2a4b 100644 --- a/users/youwen/linux/hyprland/common.nix +++ b/users/youwen/linux/hyprland/common.nix @@ -68,6 +68,13 @@ "$mod, Backspace, exec, wlogout" # show logout menu "$mod, L, exec, hyprlock" + + # System control + ",XF86MonBrightnessDown, exec, brightnessctl set 5%-" + ",XF86MonBrightnessUp, exec, brightnessctl set 5%+" + ",XF86AudioRaiseVolume, exec, pamixer -i 5" + ",XF86AudioLowerVolume, exec, pamixer -d 5" + ",XF86AudioMute, exec, pamixer -t" ]; bindm = [ "$mod, mouse:272, movewindow" diff --git a/users/youwen/linux/packages/common-packages.nix b/users/youwen/linux/packages/common-packages.nix index 9a6a7ff..172f85b 100644 --- a/users/youwen/linux/packages/common-packages.nix +++ b/users/youwen/linux/packages/common-packages.nix @@ -29,6 +29,8 @@ with pkgs; [ pavucontrol waypaper swaybg + pamixer + brightnessctl # desktop apps dolphin