Fix indentation
This commit is contained in:
parent
79561e43d3
commit
3e782c57cf
@ -3,12 +3,12 @@
|
|||||||
component DateTimeWidg (widgname, widgtextvar) {
|
component DateTimeWidg (widgname, widgtextvar) {
|
||||||
widget_name = "${widgname}"
|
widget_name = "${widgname}"
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
class = "textwidg datetimewidg " + widgname
|
class = "textwidg datetimewidg " + widgname
|
||||||
text = global(widgtextvar)
|
text = global(widgtextvar)
|
||||||
halign = "end"
|
halign = "end"
|
||||||
height = config.panel_height
|
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 { * }
|
import "nbcl/panel/panel_section.nbcl" as panel_section { * }
|
||||||
|
|
||||||
component EwwiiPanel () {
|
component EwwiiPanel () {
|
||||||
Box {
|
Box {
|
||||||
orinetation = "horizontal"
|
orinetation = "horizontal"
|
||||||
halign = "center"
|
halign = "center"
|
||||||
class = "ewwii_panel"
|
class = "ewwii_panel"
|
||||||
height = config.panel_height
|
height = config.panel_height
|
||||||
width = config.panel_width
|
width = config.panel_width
|
||||||
space_evenly = false
|
space_evenly = false
|
||||||
spacing = 0
|
spacing = 0
|
||||||
|
|
||||||
panel_section.panel_section("left", "start")
|
panel_section.panel_section("left", "start")
|
||||||
panel_section.panel_section("center", "center")
|
panel_section.panel_section("center", "center")
|
||||||
panel_section.panel_section("right", "end")
|
panel_section.panel_section("right", "end")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -2,16 +2,16 @@
|
|||||||
import core.json
|
import core.json
|
||||||
|
|
||||||
fn panel_center() {
|
fn panel_center() {
|
||||||
Box {
|
Box {
|
||||||
space_evenly = false
|
space_evenly = false
|
||||||
spacing = 0
|
spacing = 0
|
||||||
halign = "center"
|
halign = "center"
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
height = config.panel_height
|
height = config.panel_height
|
||||||
text = global("xdistate").mutate(|val|{
|
text = global("xdistate").mutate(|val|{
|
||||||
json.parse(val).window_title
|
json.parse(val).window_title
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,14 +1,14 @@
|
|||||||
# Left-hand side of the top bar
|
# Left-hand side of the top bar
|
||||||
|
|
||||||
fn panel_left() {
|
fn panel_left() {
|
||||||
Box {
|
Box {
|
||||||
space_evenly = false
|
space_evenly = false
|
||||||
spacing = 0
|
spacing = 0
|
||||||
halign = "start"
|
halign = "start"
|
||||||
height = config.panel_height
|
height = config.panel_height
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
text = "left_side"
|
text = "left_side"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,20 +1,20 @@
|
|||||||
# Right-hand side of the top bar
|
# Right-hand side of the top bar
|
||||||
|
|
||||||
fn panel_right() {
|
fn panel_right() {
|
||||||
Box {
|
Box {
|
||||||
space_evenly = false
|
space_evenly = false
|
||||||
spacing = 0
|
spacing = 0
|
||||||
halign = "end"
|
halign = "end"
|
||||||
|
|
||||||
# Display current date
|
# Display current date
|
||||||
DateTimeWidg "paneldatewidg" {
|
DateTimeWidg "paneldatewidg" {
|
||||||
widgname = "paneldatewidg"
|
widgname = "paneldatewidg"
|
||||||
widgtextvar = "date_ddM"
|
widgtextvar = "date_ddM"
|
||||||
}
|
}
|
||||||
# Display current time
|
# Display current time
|
||||||
DateTimeWidg "paneltimewidg" {
|
DateTimeWidg "paneltimewidg" {
|
||||||
widgname = "paneltimewidg"
|
widgname = "paneltimewidg"
|
||||||
widgtextvar = "time_hhmm"
|
widgtextvar = "time_hhmm"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1,21 +1,21 @@
|
|||||||
import "nbcl/panel/panel_component.nbcl" as panel_component { * }
|
import "nbcl/panel/panel_component.nbcl" as panel_component { * }
|
||||||
|
|
||||||
Window "ewwii_panel" {
|
Window "ewwii_panel" {
|
||||||
monitor = 0
|
monitor = 0
|
||||||
windowtype = "dock"
|
windowtype = "dock"
|
||||||
wm_ignore = true
|
wm_ignore = true
|
||||||
stacking = "fg"
|
stacking = "fg"
|
||||||
geometry = {
|
geometry = {
|
||||||
anchor = "top center"
|
anchor = "top center"
|
||||||
x = "0px"
|
x = "0px"
|
||||||
y = "0px"
|
y = "0px"
|
||||||
height = config.panel_height.to_string() + "px"
|
height = config.panel_height.to_string() + "px"
|
||||||
width = config.panel_width.to_string() + "px"
|
width = config.panel_width.to_string() + "px"
|
||||||
}
|
}
|
||||||
reserve = {
|
reserve = {
|
||||||
distance = config.panel_height.to_string() +"px"
|
distance = config.panel_height.to_string() +"px"
|
||||||
side = "top"
|
side = "top"
|
||||||
}
|
}
|
||||||
|
|
||||||
EwwiiPanel {}
|
EwwiiPanel {}
|
||||||
}
|
}
|
||||||
@ -1,13 +1,13 @@
|
|||||||
import "nbcl/vars/xdi.nbcl" as xdi
|
import "nbcl/vars/xdi.nbcl" as xdi
|
||||||
|
|
||||||
Poll "time_hhmm" {
|
Poll "time_hhmm" {
|
||||||
initial = "00:00"
|
initial = "00:00"
|
||||||
interval = "450ms"
|
interval = "450ms"
|
||||||
cmd = "date +%H:%M"
|
cmd = "date +%H:%M"
|
||||||
}
|
}
|
||||||
|
|
||||||
Poll "date_ddM" {
|
Poll "date_ddM" {
|
||||||
initial = "01 Jan"
|
initial = "01 Jan"
|
||||||
interval = "5s"
|
interval = "5s"
|
||||||
cmd = "date +'%d %b'"
|
cmd = "date +'%d %b'"
|
||||||
}
|
}
|
||||||
@ -1,9 +1,8 @@
|
|||||||
import core.json
|
import core.json
|
||||||
|
|
||||||
|
|
||||||
Listen "xdistate" {
|
Listen "xdistate" {
|
||||||
initial = "{}"
|
initial = "{}"
|
||||||
cmd = "leftwm-state"
|
cmd = "leftwm-state"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user