New backup 2025-07-24 13:15:03
This commit is contained in:
parent
b1916c1a22
commit
15e4fc1449
2 changed files with 14 additions and 7 deletions
|
@ -18,12 +18,12 @@
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal
|
||||||
:visible {(entry.num < activeWorkspace) ? true : false}
|
:visible {(entry.num < activeWorkspace) ? true : false}
|
||||||
:content {(entry.num < activeWorkspace) ? "(workspace :ws entry)" : "(box :visible false)"}))))
|
:content {(entry.num < activeWorkspace) ? "(workspace :ws entry :side 'left')" : "(box :visible false)"}))))
|
||||||
(box
|
(box
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal
|
||||||
:visible {entry.focused ? true : false}
|
:visible {entry.focused ? true : false}
|
||||||
:content {entry.focused ? "(workspace :ws entry)" : "(box :visible false)"})))
|
:content {entry.focused ? "(workspace :ws entry :side 'center')" : "(box :visible false)"})))
|
||||||
(revealer
|
(revealer
|
||||||
:reveal wsreveal
|
:reveal wsreveal
|
||||||
:transition "slideright"
|
:transition "slideright"
|
||||||
|
@ -32,7 +32,7 @@
|
||||||
(for entry in array
|
(for entry in array
|
||||||
(literal
|
(literal
|
||||||
:visible {(entry.num > activeWorkspace) ? true : false}
|
:visible {(entry.num > activeWorkspace) ? true : false}
|
||||||
:content {(entry.num > activeWorkspace) ? "(workspace :ws entry)" : "(box :visible false)"}))))))
|
:content {(entry.num > activeWorkspace) ? "(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) : ""})))
|
||||||
|
@ -57,9 +57,10 @@
|
||||||
; :class "workspace-number"
|
; :class "workspace-number"
|
||||||
; :text {jq(captures(entry.num, '[0-9]$'),'.[].[]','r')}))))))
|
; :text {jq(captures(entry.num, '[0-9]$'),'.[].[]','r')}))))))
|
||||||
|
|
||||||
(defwidget workspace [ws]
|
(defwidget workspace [ws side]
|
||||||
(button :onclick `swaymsg workspace "${ws.name}"`
|
(button :onclick `swaymsg workspace "${ws.name}"`
|
||||||
:class {ws.focused ? "focused" : ""}
|
; :class {ws.focused ? "focused" : ""}
|
||||||
|
:class side
|
||||||
(box
|
(box
|
||||||
'${replace(ws.name,".*:","")}'
|
'${replace(ws.name,".*:","")}'
|
||||||
(label
|
(label
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
.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,
|
&>box:not(.workspaces),
|
||||||
&>button,
|
&>button,
|
||||||
&>label {
|
&>label {
|
||||||
background-color: $bar-bg-color;
|
background-color: $bar-bg-color;
|
||||||
|
@ -26,8 +26,14 @@
|
||||||
}*/
|
}*/
|
||||||
|
|
||||||
.workspaces {
|
.workspaces {
|
||||||
|
border-radius: $bar-module-border-radius;
|
||||||
|
margin: 0px 5px;
|
||||||
|
min-width: $bar-module-width;
|
||||||
|
border: 1px solid $bar-module-fg-color;
|
||||||
|
background-color: $bar-module-bg-color;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
border-left: 2px solid blue;
|
// border-left: 2px solid blue;
|
||||||
// background-color: blue;
|
// background-color: blue;
|
||||||
label {
|
label {
|
||||||
padding: 0px 5px;
|
padding: 0px 5px;
|
||||||
|
|
Loading…
Add table
Reference in a new issue