commit 155c935f811212a4f31865df9f8fcb6fcbdbba3f
parent 63882e8dd250e6126fbe4836e538b849ba9516b6
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 1 Jul 2025 19:37:58 +0200
parent 63882e8dd250e6126fbe4836e538b849ba9516b6
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 1 Jul 2025 19:37:58 +0200
config/home/zaphyra/services: add `playerctl`
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/config/home/zaphyra/services/playerctl.nix b/config/home/zaphyra/services/playerctl.nix @@ -0,0 +1,16 @@ +{ config, pkgs, lib, ... }: + +{ + + services = { + playerctld.enable = true; + mpris-proxy.enable = true; + }; + + programs.niri.settings.binds = with config.lib.niri.actions; { + "XF86AudioPlay".action = spawn (lib.getExe pkgs.playerctl) "play-pause"; + "XF86AudioNext".action = spawn (lib.getExe pkgs.playerctl) "next"; + "XF86AudioPrev".action = spawn (lib.getExe pkgs.playerctl) "previous"; + }; + +}