New backup 2025-07-24 15:45:02
This commit is contained in:
parent
311b067bbd
commit
a471268873
3 changed files with 21 additions and 19 deletions
|
@ -2,5 +2,5 @@
|
||||||
:interval "60s"
|
:interval "60s"
|
||||||
"scripts/bar/activewindow")
|
"scripts/bar/activewindow")
|
||||||
(defwidget windowtitle []
|
(defwidget windowtitle []
|
||||||
(box :class {active_window_name != "" ? "active_window" : ""}
|
(label :class {active_window_name != "" ? "active_window" : ""}
|
||||||
{active_window_name}))
|
:text {active_window_name}))
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
(deflisten activeWorkspace :initial '0'
|
(deflisten activeWorkspace 'scripts/bar/active-workspace')
|
||||||
'scripts/bar/active-workspace')
|
|
||||||
(deflisten workspacesArray :initial '[{"name": "placeholder","focused":true,"num":0}]'
|
(deflisten workspacesArray :initial '[{"name": "placeholder","focused":true,"num":0}]'
|
||||||
'scripts/bar/workspaces')
|
'scripts/bar/workspaces')
|
||||||
(defvar wsreveal true)
|
(defvar wsreveal true)
|
||||||
|
@ -17,8 +16,8 @@
|
||||||
(box
|
(box
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal
|
||||||
:visible {(entry.num < activeWorkspace) ? true : false}
|
:visible {((entry.num <= activeWorkspace) && !entry.focused) ? true : false}
|
||||||
:content {(entry.num < activeWorkspace) ? "(workspace :ws entry :side 'left')" : "(box :visible 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
|
||||||
|
@ -31,8 +30,8 @@
|
||||||
(box
|
(box
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal
|
||||||
:visible {(entry.num > activeWorkspace) ? true : false}
|
:visible {((entry.num >= activeWorkspace) && !entry.focused) ? true : false}
|
||||||
:content {(entry.num > activeWorkspace) ? "(workspace :ws entry :side 'right')" : "(box :visible 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) : ""})))
|
||||||
|
|
|
@ -8,15 +8,15 @@
|
||||||
.rightgroup {
|
.rightgroup {
|
||||||
background-color: $bar-bg-color;
|
background-color: $bar-bg-color;
|
||||||
border-radius: $bar-module-border-radius;
|
border-radius: $bar-module-border-radius;
|
||||||
&>box:not(.workspaces),
|
// &>box:not(.workspaces),
|
||||||
// &>box,
|
&>box.revealer-on-hover,
|
||||||
&>button,
|
&>button,
|
||||||
&>label {
|
&>label {
|
||||||
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;
|
||||||
margin: 0px 5px;
|
margin: 0px 5px;
|
||||||
padding: 0px 5px;
|
// padding: 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;
|
||||||
|
@ -26,30 +26,31 @@
|
||||||
.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 {
|
||||||
padding: 3px 4px;
|
min-width: 35px;
|
||||||
|
// padding: 3px 4px;
|
||||||
&.left {
|
&.left {
|
||||||
border-right: 2px solid $bar-module-fg-color;
|
border-right: 1px solid $bar-module-fg-color;
|
||||||
}
|
}
|
||||||
&.center {
|
&.center {
|
||||||
text-shadow: $bar-module-active-shadow;
|
text-shadow: $bar-module-active-shadow;
|
||||||
color: $bar-module-active-fg-color;
|
color: $bar-module-active-fg-color;
|
||||||
}
|
}
|
||||||
&.right {
|
&.right {
|
||||||
border-left: 2px solid $bar-module-fg-color;
|
border-left: 1px solid $bar-module-fg-color;
|
||||||
}
|
}
|
||||||
label {
|
label {
|
||||||
padding: 0px 5px;
|
padding: 4px 6px;
|
||||||
margin-right: -10px;
|
margin-right: -10px;
|
||||||
}
|
}
|
||||||
.workspace-number {
|
.workspace-number {
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
margin-left: 6px;
|
margin-left: 2px;
|
||||||
margin-top: -15px;
|
margin-top: -15px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
|
@ -77,9 +78,11 @@
|
||||||
color: $color9;
|
color: $color9;
|
||||||
background-color: $color2;
|
background-color: $color2;
|
||||||
}
|
}
|
||||||
|
&>box>button,
|
||||||
|
&>box>label,
|
||||||
.revealer-on-hover>widget>box>box>*,
|
.revealer-on-hover>widget>box>box>*,
|
||||||
.reveal_children>* {
|
.reveal_children>* {
|
||||||
padding: 3px 4px;
|
padding: 0px 4px;
|
||||||
min-width: $bar-module-width;
|
min-width: $bar-module-width;
|
||||||
transition: all 0.3s;
|
transition: all 0.3s;
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
Loading…
Add table
Reference in a new issue