Placeholder workspacelist() function
This commit is contained in:
parent
62a705ee41
commit
a13881afef
@ -7,8 +7,6 @@ fn panel_left() {
|
||||
halign = "start"
|
||||
height = config.panel_height
|
||||
|
||||
Label {
|
||||
text = "left_side"
|
||||
}
|
||||
xdi.workspacelist()
|
||||
}
|
||||
}
|
||||
@ -11,3 +11,15 @@ fn windowname() {
|
||||
json.parse(val).active_window.name
|
||||
})
|
||||
}
|
||||
|
||||
# Usage: xdi.workspacelist()
|
||||
fn workspacelist() {
|
||||
Box {
|
||||
for i in 0..9 {
|
||||
Button {
|
||||
onclick = f"leftwm-command \"SendWorkspaceToTag 0 ${i}\""
|
||||
label = f" ${i} "
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user