Skip to content

net_gateway

The host's default-route gateway. Text (default) shows the gateway address — kind = "interface" shows the interface it routes through instead; TextBlock / MarkdownTextBlock / Entries roll up gateway + interface; Badge is a has-default-route / no-route pill.

KindSafetyShapes
cachedSafetext, text_block, markdown_text_block, entries, badge
OptionTypeRequiredDefaultDescription
kind"gateway" | "interface"no"gateway"Which field the Text shape shows — the gateway address or the interface it routes through. Ignored by the other shapes. (Route metric isn't exposed by the underlying platform APIs, so it isn't a kind.)
ShapeRenderers
textanimated_boot, animated_figlet_morph, animated_postfx, animated_scanlines, animated_splitflap, animated_typewriter, animated_wave, text_ascii, text_plain
text_blockanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, list_plain
markdown_text_blocktext_markdown
entriesanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, grid_table
badgeanimated_boot, animated_postfx, animated_scanlines, animated_splitflap, animated_wave, status_badge
                                                            
                                                                 
                                                                
                                                      
                                                                                
[[widget]]
id = "net_gateway"
fetcher = "net_gateway"
render = "text_ascii"
192.168.1.1                             
                                        
[[widget]]
id = "net_gateway"
fetcher = "net_gateway"
render = "text_plain"
gateway  192.168.1.1                    
interface  eth0                         
                                        
                                        
[[widget]]
id = "net_gateway"
fetcher = "net_gateway"
render = "list_plain"
- gateway 192.168.1.1                   
- interface eth0                        
                                        
                                        
                                        
[[widget]]
id = "net_gateway"
fetcher = "net_gateway"
render = "text_markdown"
gateway                      192.168.1.1
interface                           eth0
                                        
                                        
                                        
[[widget]]
id = "net_gateway"
fetcher = "net_gateway"
render = "grid_table"
 192.168.1.1                           
[[widget]]
id = "net_gateway"
fetcher = "net_gateway"
render = "status_badge"