mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-06-07 22:13:42 +02:00
refactor: eww workspace active
This commit is contained in:
parent
b1b23e5257
commit
4fcdb25eec
4 changed files with 7 additions and 14 deletions
|
@ -27,18 +27,12 @@
|
||||||
transition: cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
|
transition: cubic-bezier(0.165, 0.84, 0.44, 1) 600ms;
|
||||||
border-radius: get-token(border-radius);
|
border-radius: get-token(border-radius);
|
||||||
min-height: 16px;
|
min-height: 16px;
|
||||||
|
background-color: $surface2;
|
||||||
|
|
||||||
&.current {
|
&.current {
|
||||||
min-height: 48px;
|
min-height: 48px;
|
||||||
|
|
||||||
background-color: $accent;
|
background-color: $accent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.workspacething {
|
|
||||||
background-color: $surface2;
|
|
||||||
}
|
|
||||||
|
|
||||||
.workspacethingactive {
|
|
||||||
background-color: $accent;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ $design-tokens: (
|
||||||
large: 12px,
|
large: 12px,
|
||||||
),
|
),
|
||||||
margin: (
|
margin: (
|
||||||
small: 2px,
|
small: 4px 2px,
|
||||||
default: 4px,
|
default: 4px,
|
||||||
large: 6px,
|
large: 6px,
|
||||||
),
|
),
|
||||||
|
|
|
@ -17,4 +17,4 @@
|
||||||
:onclick "hyprctl dispatch workspace ${workspace.id}"
|
:onclick "hyprctl dispatch workspace ${workspace.id}"
|
||||||
|
|
||||||
(box
|
(box
|
||||||
:class "workspace ${workspace.id == currentWorkspace ? "current" : "workspacething"}"))))))
|
:class `workspace ${workspace.id == currentWorkspace ? "current" : ""}`))))))
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
(Logo)
|
(Logo)
|
||||||
(Workspaces)
|
(Workspaces)
|
||||||
;; (Shortcuts)
|
(Shortcuts)
|
||||||
))
|
))
|
||||||
|
|
||||||
(defwidget Middle []
|
(defwidget Middle []
|
||||||
|
@ -38,9 +38,8 @@
|
||||||
:orientation "v"
|
:orientation "v"
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
:valign "center"
|
:valign "center"
|
||||||
:height 200
|
|
||||||
|
|
||||||
;; (PlayerCtl)
|
(PlayerCtl)
|
||||||
))
|
))
|
||||||
|
|
||||||
(defwidget Bottom []
|
(defwidget Bottom []
|
||||||
|
@ -50,7 +49,7 @@
|
||||||
:valign "end"
|
:valign "end"
|
||||||
|
|
||||||
;; (systemtray)
|
;; (systemtray)
|
||||||
(Language)
|
;; (Language)
|
||||||
(Sliders)
|
(Sliders)
|
||||||
(Clock)
|
(Clock)
|
||||||
;; (battery)
|
;; (battery)
|
||||||
|
|
Loading…
Add table
Reference in a new issue