This commit is contained in:
coolnsx
2024-05-03 16:06:38 +05:30
parent 7183d3becd
commit 7f905cc49f
19 changed files with 127 additions and 72 deletions

View File

@@ -43,7 +43,7 @@
:y "50"
:width "30%"
:height "40px"
:anchor "bottom left")
:anchor "top left")
:stacking "bg"
:reserve (struts :distance "10px" :side "bottom")
:windowtype "dock"
@@ -56,14 +56,14 @@
:y "50"
:width "30%"
:height "40px"
:anchor "bottomleft")
:anchor "bottom left")
:stacking "bg"
:reserve (struts :distance "10px" :side "bottom")
:windowtype "dock"
:wm-ignore true
(music))
(defpoll song :interval "2s" "./script songdata")
(defpoll song :interval "1s" "./script songdata")
(defpoll STATUS :interval "0.3s" "./script status")
(defpoll CURRENT :interval "0.3s" "./script time")
(defpoll LYRICS :interval "0.4s" "./script lyrics")
@@ -78,9 +78,9 @@
(label :halign "center" :class "artist" :wrap "false" :limit-width 20 :text "${song.artist}")
(box :orientation "h" :spacing 80 :halign "center" :space-evenly "true" :vexpand "false" :hexpand "false"
(button :class "btn_controls" :tooltip "History : ${song.prev}" :onclick "./script prev" "󰒮")
(button :class "btn_controls" :tooltip "Seek -1%" :onclick "./script seek '-1'" "")
(button :class "btn_controls_seek" :tooltip "Seek -1%" :onclick "./script seek '-1'" "")
(button :class "btn_play" :onclick "./script play_toggle" STATUS)
(button :class "btn_controls" :tooltip "Seek +1%" :onclick "./script seek '1'" "")
(button :class "btn_controls_seek" :tooltip "Seek +1%" :onclick "./script seek '1'" "")
(button :class "btn_controls" :tooltip "Upcoming : ${song.next}" :onclick "./script next" "󰒭"))
(label :wrap "true" :class "lyrics" :text LYRICS))))