2024-09-07 12:28:41 -04:00
|
|
|
{
|
|
|
|
"name": "tablet",
|
|
|
|
"segments": {
|
2024-09-07 20:43:45 -04:00
|
|
|
"above": [{
|
|
|
|
"left": [{
|
|
|
|
"highlight_groups": ["internal_ip"],
|
|
|
|
"type": "string",
|
|
|
|
"contents": "bye",
|
|
|
|
"name": "bye"
|
|
|
|
}],
|
|
|
|
"right": [{
|
|
|
|
"name": "hi",
|
|
|
|
"highlight_groups": ["hostname"],
|
|
|
|
"type": "string",
|
|
|
|
"contents": "hello"
|
|
|
|
}]
|
|
|
|
}],
|
2024-09-07 12:28:41 -04:00
|
|
|
"left": [
|
|
|
|
{
|
|
|
|
"name": "iip",
|
|
|
|
"function": "powerline.segments.common.net.internal_ip",
|
|
|
|
"args": {
|
|
|
|
"interface": "eth8"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "hostname",
|
|
|
|
"function": "powerline.segments.common.net.hostname"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "cwd",
|
|
|
|
"function": "powerline.segments.shell.cwd",
|
|
|
|
"args": {
|
|
|
|
"dir_limit_depth": 1,
|
|
|
|
"shorten_home": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"right": [
|
|
|
|
{
|
|
|
|
"name": "date-time",
|
2024-09-07 20:43:45 -04:00
|
|
|
"function": "tablets_segments.fancy_date.fancy_date",
|
2024-09-07 12:28:41 -04:00
|
|
|
"args": {
|
2024-09-07 20:43:45 -04:00
|
|
|
"formats": [ {
|
|
|
|
"name": "weekday",
|
|
|
|
"format": "%a"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "date",
|
|
|
|
"format": "%Y-%m-%d"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "time",
|
|
|
|
"format": "%I:%M:%S"
|
|
|
|
}]
|
|
|
|
}
|
2024-09-07 12:28:41 -04:00
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"segment_data": {
|
|
|
|
"uptime": {
|
|
|
|
"before": "⇑ "
|
|
|
|
},
|
|
|
|
"external_ip": {
|
|
|
|
"before": "ⓦ "
|
|
|
|
},
|
|
|
|
"time": {
|
|
|
|
"before": " ",
|
|
|
|
"draw_soft_divider": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|