Fix indentation

This commit is contained in:
Candifloss 2026-09-08 10:45:30 +05:30
parent 79561e43d3
commit 3e782c57cf
8 changed files with 77 additions and 78 deletions

View File

@ -3,12 +3,12 @@
component DateTimeWidg (widgname, widgtextvar) {
widget_name = "${widgname}"
Label {
Label {
class = "textwidg datetimewidg " + widgname
text = global(widgtextvar)
halign = "end"
height = config.panel_height
}
}
}
#-

View File

@ -2,17 +2,17 @@ import "nbcl/components/datetime_widg.nbcl" as datetime_widg { * }
import "nbcl/panel/panel_section.nbcl" as panel_section { * }
component EwwiiPanel () {
Box {
orinetation = "horizontal"
halign = "center"
class = "ewwii_panel"
height = config.panel_height
width = config.panel_width
space_evenly = false
spacing = 0
Box {
orinetation = "horizontal"
halign = "center"
class = "ewwii_panel"
height = config.panel_height
width = config.panel_width
space_evenly = false
spacing = 0
panel_section.panel_section("left", "start")
panel_section.panel_section("center", "center")
panel_section.panel_section("right", "end")
}
panel_section.panel_section("left", "start")
panel_section.panel_section("center", "center")
panel_section.panel_section("right", "end")
}
}

View File

@ -2,16 +2,16 @@
import core.json
fn panel_center() {
Box {
space_evenly = false
spacing = 0
halign = "center"
Box {
space_evenly = false
spacing = 0
halign = "center"
Label {
height = config.panel_height
text = global("xdistate").mutate(|val|{
json.parse(val).window_title
})
}
}
Label {
height = config.panel_height
text = global("xdistate").mutate(|val|{
json.parse(val).window_title
})
}
}
}

View File

@ -1,14 +1,14 @@
# Left-hand side of the top bar
fn panel_left() {
Box {
space_evenly = false
spacing = 0
halign = "start"
height = config.panel_height
Box {
space_evenly = false
spacing = 0
halign = "start"
height = config.panel_height
Label {
text = "left_side"
}
}
Label {
text = "left_side"
}
}
}

View File

@ -1,20 +1,20 @@
# Right-hand side of the top bar
fn panel_right() {
Box {
space_evenly = false
spacing = 0
halign = "end"
Box {
space_evenly = false
spacing = 0
halign = "end"
# Display current date
DateTimeWidg "paneldatewidg" {
widgname = "paneldatewidg"
widgtextvar = "date_ddM"
}
# Display current time
DateTimeWidg "paneltimewidg" {
widgname = "paneltimewidg"
widgtextvar = "time_hhmm"
}
}
# Display current date
DateTimeWidg "paneldatewidg" {
widgname = "paneldatewidg"
widgtextvar = "date_ddM"
}
# Display current time
DateTimeWidg "paneltimewidg" {
widgname = "paneltimewidg"
widgtextvar = "time_hhmm"
}
}
}

View File

@ -1,21 +1,21 @@
import "nbcl/panel/panel_component.nbcl" as panel_component { * }
Window "ewwii_panel" {
monitor = 0
windowtype = "dock"
wm_ignore = true
stacking = "fg"
geometry = {
anchor = "top center"
x = "0px"
y = "0px"
height = config.panel_height.to_string() + "px"
width = config.panel_width.to_string() + "px"
}
reserve = {
distance = config.panel_height.to_string() +"px"
side = "top"
}
monitor = 0
windowtype = "dock"
wm_ignore = true
stacking = "fg"
geometry = {
anchor = "top center"
x = "0px"
y = "0px"
height = config.panel_height.to_string() + "px"
width = config.panel_width.to_string() + "px"
}
reserve = {
distance = config.panel_height.to_string() +"px"
side = "top"
}
EwwiiPanel {}
EwwiiPanel {}
}

View File

@ -1,13 +1,13 @@
import "nbcl/vars/xdi.nbcl" as xdi
Poll "time_hhmm" {
initial = "00:00"
interval = "450ms"
cmd = "date +%H:%M"
initial = "00:00"
interval = "450ms"
cmd = "date +%H:%M"
}
Poll "date_ddM" {
initial = "01 Jan"
interval = "5s"
cmd = "date +'%d %b'"
initial = "01 Jan"
interval = "5s"
cmd = "date +'%d %b'"
}

View File

@ -1,9 +1,8 @@
import core.json
Listen "xdistate" {
initial = "{}"
cmd = "leftwm-state"
initial = "{}"
cmd = "leftwm-state"
}