Fix indentation
This commit is contained in:
parent
79561e43d3
commit
3e782c57cf
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#-
|
||||
|
||||
@ -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")
|
||||
}
|
||||
}
|
||||
@ -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
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -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 {}
|
||||
}
|
||||
@ -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'"
|
||||
}
|
||||
@ -1,9 +1,8 @@
|
||||
import core.json
|
||||
|
||||
|
||||
Listen "xdistate" {
|
||||
initial = "{}"
|
||||
cmd = "leftwm-state"
|
||||
initial = "{}"
|
||||
cmd = "leftwm-state"
|
||||
}
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user