aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/sxhkd/keybindings/playerctl.nix
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-11-28 00:01:27 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-11-28 00:01:27 +0530
commit170461002890d55718618bec64feaa8856c3a6d4 (patch)
tree39828106660958fc9de2c8c8d1fc972c8e2320cb /modules/desktop/sxhkd/keybindings/playerctl.nix
parent547bf872cbf85f4718576e1ac3a0eab094ccd26a (diff)
downloadhome-manager-config-170461002890d55718618bec64feaa8856c3a6d4.tar.gz
home-manager-config-170461002890d55718618bec64feaa8856c3a6d4.zip
Organised the configuration to allow for different options for different users.
Diffstat (limited to 'modules/desktop/sxhkd/keybindings/playerctl.nix')
-rw-r--r--modules/desktop/sxhkd/keybindings/playerctl.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/desktop/sxhkd/keybindings/playerctl.nix b/modules/desktop/sxhkd/keybindings/playerctl.nix
new file mode 100644
index 0000000..3e5c4e0
--- /dev/null
+++ b/modules/desktop/sxhkd/keybindings/playerctl.nix
@@ -0,0 +1,10 @@
+{ createKeybindingBase, pkgs, lib }:
+
+let
+ playerctl = "${pkgs.playerctl}/bin/playerctl";
+in lib.mkMerge [
+ (createKeybindingBase
+ "XF86AudioPlay"
+ "Toggle video / audio player."
+ "${playerctl} play-pause")
+]