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,16 +78,26 @@
:class "workspaces" :class "workspaces"
:space-evenly false :space-evenly false
:orientation "v" :orientation "v"
(for workspace in {workspacesjson} (for workspace in {workspacesjson}
(button (button
:onclick "hyprctl dispatch workspace ${workspace.id}" :onclick "hyprctl dispatch workspace ${workspace.id}"
(box (box
:hexpand false :height 30
:height { workspace.id == current_workspace ? 50 : 30 }
:class "workspace ${workspace.id == current_workspace ? "workspacethingactive" : "workspacething"}" :class "workspace ${workspace.id == current_workspace ? "workspacethingactive" : "workspacething"}"
(revealer
:reveal { workspace.id == current_workspace }
:transition "slidedown"
(box
:height 55
) )
) )
) )
)
)
) )
) )
) )
@ -194,7 +204,8 @@
:class "playerctl widget" :class "playerctl widget"
:orientation "v" :orientation "v"
:space-evenly true :space-evenly true
:spacing 5 :spacing 6
(eventbox (eventbox
:onclick "${EWW_CMD} open music --toggle" :onclick "${EWW_CMD} open music --toggle"
(image :path { pcover == "" ? "./assets/image/emptympd.png" : pcover } :image-width 20 :image-height 20)) (image :path { pcover == "" ? "./assets/image/emptympd.png" : pcover } :image-width 20 :image-height 20))

View file

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