From 1c1501451196a533f240a31051656f9f3b0cfca2 Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Wed, 7 Dec 2022 16:04:20 +0100 Subject: [PATCH] [Newm] More multimedia keybinds --- .config/newm/config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.config/newm/config.py b/.config/newm/config.py index 951aeb8..e688bae 100644 --- a/.config/newm/config.py +++ b/.config/newm/config.py @@ -194,6 +194,13 @@ def key_bindings(layout: Layout) -> list[tuple[str, Callable[[], Any]]]: "XF86KbdBrightnessDown", lambda: kbdlight_manager.set(kbdlight_manager.get() - 0.1), ), + ("XF86AudioPlay", lambda: run_shell("playerctl play-pause")), + ("XF86AudioPause", lambda: run_shell("playerctl pause")), + ("XF86AudioStop", lambda: run_shell("playerctl stop")), + ("XF86AudioPrev", lambda: run_shell("playerctl previous")), + ("XF86AudioNext", lambda: run_shell("playerctl next")), + ("XF86AudioForward", lambda: run_shell("playerctl position +1")), + ("XF86AudioRewind", lambda: run_shell("playerctl position -1")), ("XF86AudioRaiseVolume", lambda: pactl.volume_adj(5)), ("XF86AudioLowerVolume", lambda: pactl.volume_adj(-5)), ("XF86AudioMute", pactl.mute),