mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-08-27 22:23:59 +02:00
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:
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user