[Newm] More multimedia keybinds

This commit is contained in:
Lucien Cartier-Tilet 2022-12-07 16:04:20 +01:00
parent 4258623f54
commit 1c15014511
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -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),