[Newm] More multimedia keybinds
This commit is contained in:
parent
4258623f54
commit
1c15014511
@ -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),
|
||||
|
Loading…
Reference in New Issue
Block a user