More cleaning

This commit is contained in:
soraefir
2026-06-14 11:30:36 +02:00
parent abce77a6a6
commit 65b88e8c55
4 changed files with 7 additions and 4 deletions

View File

@@ -0,0 +1,2 @@
#!/usr/bin/env bash
playerctl "$@"

View File

@@ -40,13 +40,13 @@
:orientation "v" :space-evenly false :class "radio-controls"
(box :orientation "h" :space-evenly true :halign "center"
(button :visible {radio.is_paused == 1 && radio.media.status != "Stopped"}
:class "radio-ctrl-btn" :timeout "2s" :onclick "playerctl previous"
:class "radio-ctrl-btn" :timeout "2s" :onclick "scripts/media previous"
(label :text "󰒮"))
(button :class "radio-ctrl-btn" :timeout "2s"
:onclick {radio.is_paused == 1 && radio.media.status != "Stopped" ? "playerctl play-pause" : "scripts/radio toggle"}
:onclick {radio.is_paused == 1 && radio.media.status != "Stopped" ? "scripts/media play-pause" : "scripts/radio toggle"}
(label :text {radio.is_paused == 0 ? "󰏥" : (radio.media.status == "Playing" ? "󰏥" : "󰐌")}))
(button :visible {radio.is_paused == 1 && radio.media.status != "Stopped"}
:class "radio-ctrl-btn" :timeout "2s" :onclick "playerctl next"
:class "radio-ctrl-btn" :timeout "2s" :onclick "scripts/media next"
(label :text "󰒭")))
(vol-row
:icon "󰕾"