From 6b583f961e0288ae8989a53917f731c4cb37296b Mon Sep 17 00:00:00 2001 From: Lilou <quentinduchemin@tuta.io> Date: Fri, 28 Mar 2025 16:17:47 +0100 Subject: [PATCH] [pb] better player layout + solaar rules --- .config/polybar/config_common | 2 +- .config/solaar/rules.yaml | 46 +++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 .config/solaar/rules.yaml diff --git a/.config/polybar/config_common b/.config/polybar/config_common index f1c2fd9..2ba47b3 100644 --- a/.config/polybar/config_common +++ b/.config/polybar/config_common @@ -68,7 +68,7 @@ modules-right = ${variables.bottom_right} [module/player-mpris] type = custom/script -exec = python ~/.config/polybar/scripts/player-mpris.py -f '🎝 {artist} - {title} %{A1:python ~/.config/polybar/scripts/player-mpris.py previous:} ⏮ %{A} %{A1:python ~/.config/polybar/scripts/player-mpris.py play-pause:} {icon-reversed} %{A} %{A1:python ~/.config/polybar/scripts/player-mpris.py next:} ⏭ %{A}' +exec = python -u ~/.config/polybar/scripts/player-mpris.py status tail = true [module/xwindow] diff --git a/.config/solaar/rules.yaml b/.config/solaar/rules.yaml new file mode 100644 index 0000000..e5ba52e --- /dev/null +++ b/.config/solaar/rules.yaml @@ -0,0 +1,46 @@ +%YAML 1.3 +--- +- Rule: + - MouseGesture: Mouse Up + - Execute: [/home/.config/i3/scripts/organize.sh, web] +- Rule: + - MouseGesture: Mouse Down + - Execute: [/home/.config/i3/scripts/organize.sh, code] +- Rule: + - MouseGesture: Mouse Up-left + - Execute: [/home/.config/i3/scripts/organize.sh, termweb] +- Rule: + - MouseGesture: Mouse Down-left + - Execute: [/home/.config/i3/scripts/organize.sh, termcode] +... +--- +- Rule: + - And: + - Key: [Mouse Gesture Button, released] + - MouseGesture: [] + - KeyPress: + - XF86_AudioPlay + - click +- Rule: + - MouseGesture: Mouse Right + - KeyPress: + - XF86_AudioNext + - click +- Rule: + - MouseGesture: Mouse Left + - KeyPress: + - XF86_AudioPrev + - click +... +--- +- Rule: + - Test: [thumb_wheel_up, 5] + - KeyPress: + - XF86_AudioRaiseVolume + - click +- Rule: + - Test: [thumb_wheel_down, 5] + - KeyPress: + - XF86_AudioLowerVolume + - click +...