35 lines
725 B
Plaintext
35 lines
725 B
Plaintext
let {
|
|
$workspaces = { type = "workspaces" name = "workspaces" hidden = [ "special:music" ] }
|
|
|
|
$focused = { type = "focused" icon_size = 10 }
|
|
|
|
$battery = { type = "battery" show_if = "ls /sys/class/power_supply/ | grep --quiet '^BAT'" }
|
|
$sys_info = { type = "sys_info" format = ["{cpu_percent}% " "{memory_percent}% "] interval.cpu = 1 }
|
|
$tray = { type = "tray" }
|
|
$clock = { type = "clock" format = "%T" name = "clock" }
|
|
|
|
$marginlr = 500
|
|
|
|
$margin = {
|
|
top = 2
|
|
left = $marginlr
|
|
right = $marginlr
|
|
}
|
|
|
|
$bar = {
|
|
position = "top"
|
|
height = 15
|
|
margin = $margin
|
|
|
|
start = [ $sys_info ]
|
|
center = [ $workspaces ]
|
|
end = [ $clock ]
|
|
}
|
|
} in {
|
|
monitors = {
|
|
DP-1 = $bar
|
|
DP-2 = $bar
|
|
HDMI-A-1 = $bar
|
|
}
|
|
}
|