feat: eww workspace animation

This commit is contained in:
hesam-init 2024-06-28 23:00:01 +03:30
parent fc54b89b57
commit 09970d3479
2 changed files with 16 additions and 6 deletions

View file

@ -78,15 +78,25 @@
:class "workspaces"
:space-evenly false
:orientation "v"
(for workspace in {workspacesjson}
(button
:onclick "hyprctl dispatch workspace ${workspace.id}"
(box
:hexpand false
:height { workspace.id == current_workspace ? 50 : 30 }
:height 30
:class "workspace ${workspace.id == current_workspace ? "workspacethingactive" : "workspacething"}"
(revealer
:reveal { workspace.id == current_workspace }
:transition "slidedown"
(box
:height 55
)
)
)
)
)
)
)
@ -190,12 +200,13 @@
(defwidget playerctl []
(eventbox
:cursor "pointer"
(box
(box
:class "playerctl widget"
:orientation "v"
:space-evenly true
:spacing 5
(eventbox
:spacing 6
(eventbox
:onclick "${EWW_CMD} open music --toggle"
(image :path { pcover == "" ? "./assets/image/emptympd.png" : pcover } :image-width 20 :image-height 20))
(button :onclick "playerctl previous"

View file

@ -154,7 +154,6 @@
.picon {
@extend .icon;
font-size: 18px;
}
.lightning {