✨ eww: add new tiles to control-center, new notification popup, new styles for a lot of widgets
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
:onhoverlost "${EWW_CMD} update media_reveal_controls=false"
|
||||
:visible { json_media == "" || (json_media.title == "null" &&
|
||||
json_media.artist == "null") ||
|
||||
(active_window.class =~ json_media.player ||
|
||||
active_window.title =~ json_media.title) ?
|
||||
(json_active_window.class =~ json_media.player ||
|
||||
json_active_window.title =~ json_media.title) ?
|
||||
false : true
|
||||
}
|
||||
:onclick "sh scripts/eww-window.sh toggle floating-media"
|
||||
@@ -27,7 +27,9 @@
|
||||
:text "${json_media.title}"
|
||||
:limit-width 40)
|
||||
|
||||
(box :class "separator")
|
||||
(separator :orientation "horizontal"
|
||||
:alpha 0.8
|
||||
:style "border-radius: 2x;")
|
||||
|
||||
(label :class "media-artist"
|
||||
:text "${json_media.artist}"
|
||||
@@ -37,9 +39,13 @@
|
||||
(revealer :class "media-controls-revealer"
|
||||
:reveal { media_reveal_controls ? "${ window_state_floating-media == 'closed' ? true : false }" : false }
|
||||
:transition "slideright"
|
||||
:duration "180ms"
|
||||
:duration "220ms"
|
||||
|
||||
(box :class "media-controls"
|
||||
(button :class "url"
|
||||
:onclick "wl-copy '${json_media.url}'"
|
||||
:tooltip "Copy link to Clipboard"
|
||||
"")
|
||||
(button :class "previous"
|
||||
:onclick "playerctl previous --player=${json_media.player}"
|
||||
"")
|
||||
|
||||
Reference in New Issue
Block a user