diff options
| author | Caroline Larimore <caroline@larimo.re> | 2024-09-17 21:37:33 -0700 |
|---|---|---|
| committer | Caroline Larimore <caroline@larimo.re> | 2024-09-17 21:37:33 -0700 |
| commit | 6bc6e37af5b21b0356d0e008f83eee5378fc8b43 (patch) | |
| tree | 0fd4e2fdf9ddd1937b3a02de57d11e4ff1ade6fc /roles/home/desktop/eww/windows/music.yuck | |
| parent | 485dc4b641f6b07def1bfa28c7c3ab83e764f29e (diff) | |
home: desktop: update eww widgets
Diffstat (limited to 'roles/home/desktop/eww/windows/music.yuck')
| -rw-r--r-- | roles/home/desktop/eww/windows/music.yuck | 71 |
1 files changed, 2 insertions, 69 deletions
diff --git a/roles/home/desktop/eww/windows/music.yuck b/roles/home/desktop/eww/windows/music.yuck index 91ee05f..f6cf02b 100644 --- a/roles/home/desktop/eww/windows/music.yuck +++ b/roles/home/desktop/eww/windows/music.yuck @@ -8,79 +8,12 @@ : "0px" } :y { gaps == "true" ? "-8px" : "2px" } - :height {128 + 16} + :width 512 :anchor { pos == "right" ? "bottom right" : "bottom center" } ) :stacking "fg" :windowtype "dock" :wm-ignore true - (box :class "main" - :orientation "h" - :spacing 8 - :space-evenly false - :height {128 + 16} - - (image - :path song-cover - :image-width 128 - :image-height 128 - ) - - (box :class "left" - :orientation "v" - :spacing 0 - :space-evenly true - :hexpand true - - (box :class "info" - :orientation "v" - :space-evenly false - :valign "center" - - (label :class "song-title" - :text {song.title} - :halign "start" - ) - (label :class "song-album" - :text {song.album} - :halign "start" - ) - (label :class "song-artist" - :text {song.artist} - :halign "start" - ) - ) - - (box :class "control" - :space-evenly false - :halign "center" - :valign "end" - - (button - :onclick `playerctl --player=cmus,firefox,%any previous` - "" - ) - (button - :onclick `playerctl --player=cmus,firefox,%any play-pause` - { song.status == "Playing" ? "" : "" } - ) - (button - :onclick `playerctl --player=cmus,firefox,%any next` - "" - ) - - ; Offset controls to center of screen - (box :width {128 + 8}) - ) - ) - ) -) - -(deflisten song-cover - `playerctl --player=cmus,firefox,%any -F metadata title | get-album-art` -) - -(deflisten song - `playerctl --player=cmus,firefox,%any -F metadata --format='{"title": "{{title}}", "album": "{{album}}", "artist": "{{artist}}", "status": "{{status}}"}'` + (music) )
\ No newline at end of file |