More cleaning
This commit is contained in:
2
modules/home/wayland/apps/eww/bar/scripts/media
Normal file
2
modules/home/wayland/apps/eww/bar/scripts/media
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
playerctl "$@"
|
||||
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user