feat(hyprland): add media keyboard keys

This commit is contained in:
Mohammad Rafiq 2025-03-17 10:48:05 +08:00
parent 5f862b595f
commit 289d8fd798

View file

@ -1,8 +1,4 @@
{ {
config,
lib,
...
}: {
home.sessionVariables.NIXOS_OZONE_WL = "1"; home.sessionVariables.NIXOS_OZONE_WL = "1";
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
@ -84,6 +80,13 @@
"$mainMod, V, togglefloating" "$mainMod, V, togglefloating"
]; ];
# Repeat when held
binde = [
# Keyboard Media Keys
", XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%+"
", XF86AudioLowerVolume, exec, wpctl set-volume -l 1.5 @DEFAULT_AUDIO_SINK@ 5%-"
];
bindm = [ bindm = [
"ALT, mouse:272, movewindow" "ALT, mouse:272, movewindow"
]; ];