From ce6acc0ea5b715804d5e97b379804dcbc36ad581 Mon Sep 17 00:00:00 2001 From: Jerry Starke <42114389+JerrySm64@users.no-reply.github.com> Date: Wed, 14 Feb 2024 06:15:38 +0100 Subject: [PATCH] Add binds for media controls --- config/home/hyprland.nix | 4 ++++ config/system/packages.nix | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config/home/hyprland.nix b/config/home/hyprland.nix index 1ee10c9..115b14f 100644 --- a/config/home/hyprland.nix +++ b/config/home/hyprland.nix @@ -197,6 +197,10 @@ in with lib; { bind = ,XF86AudioRaiseVolume,exec,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ bind = ,XF86AudioLowerVolume,exec,wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- binde = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle + bind = ,XF86AudioPlay, exec, playerctl play-pause + bind = ,XF86AudioPause, exec, playerctl play-pause + bind = ,XF86AudioNext, exec, playerctl next + bind = ,XF86AudioPrev, exec, playerctl previous bind = ,XF86MonBrightnessDown,exec,brightnessctl set 5%- bind = ,XF86MonBrightnessUp,exec,brightnessctl set +5% '' ]; diff --git a/config/system/packages.nix b/config/system/packages.nix index 58a8df0..65b54d8 100644 --- a/config/system/packages.nix +++ b/config/system/packages.nix @@ -12,7 +12,7 @@ pkg-config meson hugo gnumake ninja go nodejs symbola noto-fonts-color-emoji material-icons brightnessctl toybox virt-viewer swappy ripgrep appimage-run - networkmanagerapplet yad + networkmanagerapplet yad playerctl ]; programs.steam.gamescopeSession.enable = true;