New backup 2025-07-25 15:00:06
This commit is contained in:
parent
6567f9f4a9
commit
f48c19734b
3 changed files with 49 additions and 37 deletions
|
@ -2,5 +2,9 @@
|
||||||
:interval "60s"
|
:interval "60s"
|
||||||
"scripts/bar/activewindow")
|
"scripts/bar/activewindow")
|
||||||
(defwidget windowtitle []
|
(defwidget windowtitle []
|
||||||
(label :class {active_window_name != "" ? "active_window" : ""}
|
(box :class "bar-module"
|
||||||
:text {active_window_name}))
|
:space-evenly false
|
||||||
|
(button :onclick 'sp-profiles next'
|
||||||
|
(label :text '${active_profile}'))
|
||||||
|
(label :class {active_window_name != "" ? "active_window" : ""}
|
||||||
|
:text {active_window_name})))
|
||||||
|
|
|
@ -5,37 +5,41 @@
|
||||||
(defvar wsreveal false)
|
(defvar wsreveal false)
|
||||||
|
|
||||||
(defwidget workspaces [array]
|
(defwidget workspaces [array]
|
||||||
(eventbox
|
(box :class "bar-module"
|
||||||
:onhover "${EWW_CMD} update wsreveal=true"
|
:space-evenly false
|
||||||
:onhoverlost "${EWW_CMD} update wsreveal=false"
|
(button :onclick 'sp-profiles next'
|
||||||
(box :class "workspaces"
|
(label :text '${active_profile}'))
|
||||||
:orientation "h"
|
(eventbox
|
||||||
:space-evenly false
|
:onhover "${EWW_CMD} update wsreveal=true"
|
||||||
:halign "start"
|
:onhoverlost "${EWW_CMD} update wsreveal=false"
|
||||||
|
(box :class "workspaces"
|
||||||
|
:orientation "h"
|
||||||
|
:space-evenly false
|
||||||
|
:halign "start"
|
||||||
|
|
||||||
(revealer
|
(revealer
|
||||||
:reveal wsreveal
|
:reveal wsreveal
|
||||||
:transition "slideleft"
|
:transition "slideleft"
|
||||||
:duration "500ms"
|
: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
|
(box
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal
|
||||||
:visible {((entry.num <= activeWorkspace) && !entry.focused) ? true : false}
|
:visible {entry.focused ? true : false}
|
||||||
:content {((entry.num <= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"}))))
|
:content {entry.focused ? "(workspace :ws entry :side 'center')" : "(box :visible false)"})))
|
||||||
(box
|
(revealer
|
||||||
(for entry in array
|
:reveal wsreveal
|
||||||
(literal
|
:transition "slideright"
|
||||||
:visible {entry.focused ? true : false}
|
:duration "500ms"
|
||||||
:content {entry.focused ? "(workspace :ws entry :side 'center')" : "(box :visible false)"})))
|
(box
|
||||||
(revealer
|
(for entry in array
|
||||||
:reveal wsreveal
|
(literal
|
||||||
:transition "slideright"
|
:visible {((entry.num >= activeWorkspace) && !entry.focused) ? true : false}
|
||||||
:duration "500ms"
|
:content {((entry.num >= activeWorkspace) && !entry.focused) ? "(workspace :ws entry :side 'right')" : "(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 'right')" : "(box :visible false)"})))))))
|
|
||||||
|
|
||||||
; (for entry in array
|
; (for entry in array
|
||||||
; {entry.focused ? (workspace :ws entry) : ""})))
|
; {entry.focused ? (workspace :ws entry) : ""})))
|
||||||
|
|
|
@ -11,7 +11,8 @@
|
||||||
// &>box:not(.workspaces),
|
// &>box:not(.workspaces),
|
||||||
&>box.revealer-on-hover,
|
&>box.revealer-on-hover,
|
||||||
&>button,
|
&>button,
|
||||||
&>label {
|
&>label,
|
||||||
|
.bar-module {
|
||||||
color: $bar-module-fg-color;
|
color: $bar-module-fg-color;
|
||||||
background-color: $bar-bg-color;
|
background-color: $bar-bg-color;
|
||||||
border-radius: $bar-module-border-radius;
|
border-radius: $bar-module-border-radius;
|
||||||
|
@ -25,11 +26,11 @@
|
||||||
|
|
||||||
.workspaces {
|
.workspaces {
|
||||||
color: $bar-module-fg-color;
|
color: $bar-module-fg-color;
|
||||||
border-radius: $bar-module-border-radius;
|
// border-radius: $bar-module-border-radius;
|
||||||
margin: 0px 5px;
|
// margin: 0px 5px;
|
||||||
// min-width: $bar-module-width;
|
// min-width: $bar-module-width;
|
||||||
border: 2px solid $bar-module-fg-color;
|
// border: 2px solid $bar-module-fg-color;
|
||||||
background-color: $bar-module-bg-color;
|
// background-color: $bar-module-bg-color;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
min-width: 35px;
|
min-width: 35px;
|
||||||
|
@ -44,13 +45,14 @@
|
||||||
// text-shadow: $bar-module-active-shadow;
|
// text-shadow: $bar-module-active-shadow;
|
||||||
color: $bar-module-fg-color;
|
color: $bar-module-fg-color;
|
||||||
// background-color: $bar-module-active-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;
|
box-shadow: 0 0 2px 1px $bar-module-fg-color;
|
||||||
}
|
}
|
||||||
&.right {
|
&.right {
|
||||||
// border-left: 1px solid $bar-module-fg-color;
|
// border-left: 1px solid $bar-module-fg-color;
|
||||||
border-right: 1px solid $bar-module-fg-color;
|
// border-right: 1px solid $bar-module-fg-color;
|
||||||
border-radius: $bar-module-border-radius - 2;
|
border-radius: $bar-module-border-radius - 1;
|
||||||
|
box-shadow: 0 0 2px 1px $bar-module-fg-color;
|
||||||
}
|
}
|
||||||
label {
|
label {
|
||||||
padding: 4px 6px;
|
padding: 4px 6px;
|
||||||
|
@ -92,6 +94,8 @@
|
||||||
}
|
}
|
||||||
&>box>button,
|
&>box>button,
|
||||||
&>box>label,
|
&>box>label,
|
||||||
|
.bar-module>button,
|
||||||
|
.bar-module>label,
|
||||||
.revealer-on-hover>widget>box>box>*,
|
.revealer-on-hover>widget>box>box>*,
|
||||||
.reveal_children>* {
|
.reveal_children>* {
|
||||||
padding: 0px 5px;
|
padding: 0px 5px;
|
||||||
|
|
Loading…
Add table
Reference in a new issue