Add function volume and brightness key controls
This commit is contained in:
parent
72d733ba7d
commit
3db6ad962e
|
|
@ -51,6 +51,23 @@ in
|
|||
"$mod SHIFT, 5, movetoworkspace, 5"
|
||||
];
|
||||
|
||||
# Repeatable binds (hold key to keep changing)
|
||||
bindel = [
|
||||
# Volume
|
||||
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+"
|
||||
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-"
|
||||
|
||||
# Brightness
|
||||
", XF86MonBrightnessUp, exec, brightnessctl set +5%"
|
||||
", XF86MonBrightnessDown, exec, brightnessctl set 5%-"
|
||||
];
|
||||
|
||||
# Binds that also work while screen is locked
|
||||
bindl = [
|
||||
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
|
||||
", XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
|
||||
];
|
||||
|
||||
bindm = [
|
||||
"$mod, mouse:272, movewindow"
|
||||
"$mod, mouse:273, resizewindow"
|
||||
|
|
|
|||
|
|
@ -10,6 +10,10 @@ let
|
|||
displayCfg = config.modules.display;
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
brightnessctl
|
||||
];
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = cfg.enable;
|
||||
package = pkgs.hyprland;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ in
|
|||
initialPassword = "changeme";
|
||||
extraGroups = [
|
||||
"networkmanager"
|
||||
"video"
|
||||
"wheel"
|
||||
];
|
||||
shell = pkgs.${shellCfg.defaultShell};
|
||||
|
|
|
|||
Loading…
Reference in New Issue