Add more media controls, Add toggle all boxes

This commit is contained in:
Roland Thomas Jr 2024-02-25 11:39:04 -05:00
parent a82ebced6a
commit ad3989ebc9
Signed by: roland
GPG Key ID: 7C3C2B085A4C2872
1 changed files with 14 additions and 0 deletions

View File

@ -183,6 +183,9 @@ keys = [
Key([], "XF86AudioLowerVolume", lazy.spawn("amixer -D pulse sset Master 5%-"), desc="Lower Volume by 5%"), Key([], "XF86AudioLowerVolume", lazy.spawn("amixer -D pulse sset Master 5%-"), desc="Lower Volume by 5%"),
Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer -D pulse sset Master 5%+"), desc="Raise Volume by 5%"), Key([], "XF86AudioRaiseVolume", lazy.spawn("amixer -D pulse sset Master 5%+"), desc="Raise Volume by 5%"),
Key([], "XF86AudioMute", lazy.spawn("amixer -D pulse sset Master toggle"), desc="Toggle Mute"), Key([], "XF86AudioMute", lazy.spawn("amixer -D pulse sset Master toggle"), desc="Toggle Mute"),
Key([], "XF86AudioPlay", lazy.spawn("playerctl play-pause"), desc="Play/Pause"),
Key([], "XF86AudioNext", lazy.spawn("playerctl next"), desc="Next"),
Key([], "XF86AudioPrev", lazy.spawn("playerctl previous"), desc="Previous"),
# LAUNCH chord # LAUNCH chord
KeyChord( KeyChord(
[mod], [mod],
@ -226,6 +229,17 @@ keys = [
lazy.widget["widget_box_3"].toggle(), lazy.widget["widget_box_3"].toggle(),
desc="Toggle Widget Boxes", desc="Toggle Widget Boxes",
), ),
Key(
[],
"d",
lazy.widget["media_box_1"].toggle(),
lazy.widget["media_box_2"].toggle(),
lazy.widget["media_box_3"].toggle(),
lazy.widget["widget_box_1"].toggle(),
lazy.widget["widget_box_2"].toggle(),
lazy.widget["widget_box_3"].toggle(),
desc="Toggle All Boxes",
),
Key([], "1", lazy.widget["widget_box_1"].toggle(), desc="Toggle Widget Box 1"), Key([], "1", lazy.widget["widget_box_1"].toggle(), desc="Toggle Widget Box 1"),
Key([], "2", lazy.widget["widget_box_2"].toggle(), desc="Toggle Widget Box 2"), Key([], "2", lazy.widget["widget_box_2"].toggle(), desc="Toggle Widget Box 2"),
Key([], "3", lazy.widget["widget_box_3"].toggle(), desc="Toggle Widget Box 3"), Key([], "3", lazy.widget["widget_box_3"].toggle(), desc="Toggle Widget Box 3"),