mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-27 00:53:42 +02:00
feat: eww workspace animation
This commit is contained in:
parent
fc54b89b57
commit
09970d3479
2 changed files with 16 additions and 6 deletions
|
@ -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))
|
||||||
|
|
|
@ -154,7 +154,6 @@
|
||||||
|
|
||||||
.picon {
|
.picon {
|
||||||
@extend .icon;
|
@extend .icon;
|
||||||
font-size: 18px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.lightning {
|
.lightning {
|
||||||
|
|
Loading…
Add table
Reference in a new issue