New backup 2025-07-25 15:00:06

This commit is contained in:
Penelope Gwen 2025-07-25 15:00:06 -07:00
parent 6567f9f4a9
commit f48c19734b
3 changed files with 49 additions and 37 deletions

View file

@ -2,5 +2,9 @@
:interval "60s"
"scripts/bar/activewindow")
(defwidget windowtitle []
(label :class {active_window_name != "" ? "active_window" : ""}
:text {active_window_name}))
(box :class "bar-module"
:space-evenly false
(button :onclick 'sp-profiles next'
(label :text '${active_profile}'))
(label :class {active_window_name != "" ? "active_window" : ""}
:text {active_window_name})))

View file

@ -5,37 +5,41 @@
(defvar wsreveal false)
(defwidget workspaces [array]
(eventbox
:onhover "${EWW_CMD} update wsreveal=true"
:onhoverlost "${EWW_CMD} update wsreveal=false"
(box :class "workspaces"
:orientation "h"
:space-evenly false
:halign "start"
(box :class "bar-module"
:space-evenly false
(button :onclick 'sp-profiles next'
(label :text '${active_profile}'))
(eventbox
:onhover "${EWW_CMD} update wsreveal=true"
:onhoverlost "${EWW_CMD} update wsreveal=false"
(box :class "workspaces"
:orientation "h"
:space-evenly false
:halign "start"
(revealer
:reveal wsreveal
:transition "slideleft"
:duration "500ms"
(revealer
:reveal wsreveal
:transition "slideleft"
:duration "500ms"
(box
(for entry in array
(literal
:visible {((entry.num <= activeWorkspace) && !entry.focused) ? true : false}
:content {((entry.num <= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"}))))
(box
(for entry in array
(literal
:visible {((entry.num <= activeWorkspace) && !entry.focused) ? true : false}
:content {((entry.num <= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"}))))
(box
(for entry in array
(literal
:visible {entry.focused ? true : false}
:content {entry.focused ? "(workspace :ws entry :side 'center')" : "(box :visible false)"})))
(revealer
:reveal wsreveal
:transition "slideright"
:duration "500ms"
(box
(for entry in array
(literal
:visible {((entry.num >= activeWorkspace) && !entry.focused) ? true : false}
:content {((entry.num >= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"})))))))
:visible {entry.focused ? true : false}
:content {entry.focused ? "(workspace :ws entry :side 'center')" : "(box :visible false)"})))
(revealer
:reveal wsreveal
:transition "slideright"
:duration "500ms"
(box
(for entry in array
(literal
:visible {((entry.num >= activeWorkspace) && !entry.focused) ? true : false}
:content {((entry.num >= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'right')" : "(box :visible false)"}))))))))
; (for entry in array
; {entry.focused ? (workspace :ws entry) : ""})))

View file

@ -11,7 +11,8 @@
// &>box:not(.workspaces),
&>box.revealer-on-hover,
&>button,
&>label {
&>label,
.bar-module {
color: $bar-module-fg-color;
background-color: $bar-bg-color;
border-radius: $bar-module-border-radius;
@ -25,11 +26,11 @@
.workspaces {
color: $bar-module-fg-color;
border-radius: $bar-module-border-radius;
margin: 0px 5px;
// border-radius: $bar-module-border-radius;
// margin: 0px 5px;
// min-width: $bar-module-width;
border: 2px solid $bar-module-fg-color;
background-color: $bar-module-bg-color;
// border: 2px solid $bar-module-fg-color;
// background-color: $bar-module-bg-color;
button {
min-width: 35px;
@ -44,13 +45,14 @@
// text-shadow: $bar-module-active-shadow;
color: $bar-module-fg-color;
// background-color: $bar-module-active-fg-color;
border-radius: $bar-module-border-radius - 2;
border-radius: $bar-module-border-radius;
box-shadow: 0 0 2px 1px $bar-module-fg-color;
}
&.right {
// border-left: 1px solid $bar-module-fg-color;
border-right: 1px solid $bar-module-fg-color;
border-radius: $bar-module-border-radius - 2;
// border-right: 1px solid $bar-module-fg-color;
border-radius: $bar-module-border-radius - 1;
box-shadow: 0 0 2px 1px $bar-module-fg-color;
}
label {
padding: 4px 6px;
@ -92,6 +94,8 @@
}
&>box>button,
&>box>label,
.bar-module>button,
.bar-module>label,
.revealer-on-hover>widget>box>box>*,
.reveal_children>* {
padding: 0px 5px;