feat(bar): add default interface options to display friendly name or local IP

Adds a new configuration to the Network widget from komorebi-bar, which
allows you to toggle between viewing your Default Interface's friendly
name, IPv4 or IPv6.

Motivation: I find it very useful to check your local IP at a glance,
and missed the feature heavily from other wms in Linux.
This commit is contained in:
Ransomwave
2026-08-22 13:52:01 -07:00
committed by LGUG2Z
parent 3f3fac8b65
commit 4ca2ff84dc
2 changed files with 73 additions and 4 deletions
+26
View File
@@ -4800,6 +4800,17 @@
"null"
]
},
"default_interface_options": {
"description": "Options related to showing the default interface",
"anyOf": [
{
"$ref": "#/$defs/DefaultInterfaceOptions"
},
{
"type": "null"
}
]
},
"show_total_activity": {
"description": "Show total received and transmitted activity",
"type": "boolean"
@@ -4853,6 +4864,21 @@
}
}
},
"DefaultInterfaceOptions": {
"description": "Options related to showing the default network interface",
"type": "object",
"properties": {
"display_type": {
"description": "What to display from the default interface",
"type": "string",
"enum": [
"FriendlyName",
"Ipv4",
"Ipv6"
]
}
}
},
"OperationBehaviour": {
"description": "Operation behaviour for temporarily unmanaged and floating windows",
"oneOf": [