mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-08-17 14:51:04 +02:00
This completely reworks the sysinfo module to add support for aggregate functions, better support for working with individual devices, the ability to specify units, and some string formatting support. Several new tokens have also been added, and performance should be marginally improved. BREAKING CHANGE: Use of the `sys_info` module in your config will need to be updated to use the new token format. See the wiki page for more info.
157 lines
3.6 KiB
JSON
157 lines
3.6 KiB
JSON
{
|
|
"anchor_to_edges": true,
|
|
"position": "bottom",
|
|
"icon_theme": "Paper",
|
|
"start": [
|
|
{
|
|
"type": "workspaces",
|
|
"all_monitors": false,
|
|
"name_map": {
|
|
"1": "",
|
|
"2": "icon:firefox",
|
|
"3": "",
|
|
"Games": "icon:steam",
|
|
"Code": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "launcher",
|
|
"favorites": [
|
|
"firefox",
|
|
"discord",
|
|
"steam"
|
|
],
|
|
"show_names": false,
|
|
"show_icons": true
|
|
},
|
|
{
|
|
"type": "label",
|
|
"label": "random num: {{500:echo FIXME}}"
|
|
}
|
|
],
|
|
"end": [
|
|
{
|
|
"type": "music",
|
|
"player_type": "mpd",
|
|
"music_dir": "/home/jake/Music",
|
|
"truncate": {
|
|
"mode": "end",
|
|
"max_length": 100
|
|
}
|
|
},
|
|
{
|
|
"type": "music",
|
|
"player_type": "mpd",
|
|
"host": "chloe:6600",
|
|
"truncate": "end"
|
|
},
|
|
{
|
|
"type": "script",
|
|
"cmd": "/home/jake/bin/phone-battery",
|
|
"show_if": {
|
|
"cmd": "/home/jake/bin/phone-connected",
|
|
"interval": 500
|
|
}
|
|
},
|
|
{
|
|
"type": "sys_info",
|
|
"interval": {
|
|
"memory": 30,
|
|
"cpu": 1,
|
|
"temps": 5,
|
|
"disks": 300,
|
|
"networks": 3
|
|
},
|
|
"format": [
|
|
" {cpu_percent}% | {cpu_frequency} GHz | {temp_c@CPUTIN}°C",
|
|
" {memory_used} / {memory_total} GB ({memory_available} | {memory_percent2}%) | {swap_used} / {swap_total} GB ({swap_free} | {swap_percent}%)",
|
|
" {disk_used#T@/:.1} / {disk_total#T@/:.1} TB ({disk_percent@/}%) | {disk_read} / {disk_write} MB/s",
|
|
" {net_down@enp39s0} / {net_up@enp39s0} Mbps",
|
|
" {load_average1} | {load_average5} | {load_average15}",
|
|
" {uptime}"
|
|
]
|
|
},
|
|
{
|
|
"type": "volume",
|
|
"format": "{icon} {percentage}%",
|
|
"max_volume": 100,
|
|
"icons": {
|
|
"volume_high": "",
|
|
"volume_medium": "",
|
|
"volume_low": "",
|
|
"muted": ""
|
|
}
|
|
},
|
|
{
|
|
"type": "clipboard",
|
|
"max_items": 3,
|
|
"truncate": {
|
|
"mode": "end",
|
|
"length": 50
|
|
}
|
|
},
|
|
{
|
|
"type": "custom",
|
|
"class": "power-menu",
|
|
"bar": [
|
|
{
|
|
"type": "button",
|
|
"name": "power-btn",
|
|
"label": "",
|
|
"on_click": "popup:toggle"
|
|
}
|
|
],
|
|
"popup": [
|
|
{
|
|
"type": "box",
|
|
"orientation": "vertical",
|
|
"widgets": [
|
|
{
|
|
"type": "label",
|
|
"name": "header",
|
|
"label": "Power menu"
|
|
},
|
|
{
|
|
"type": "box",
|
|
"widgets": [
|
|
{
|
|
"type": "button",
|
|
"class": "power-btn",
|
|
"label": "<span font-size='40pt'></span>",
|
|
"on_click": "!shutdown now"
|
|
},
|
|
{
|
|
"type": "button",
|
|
"class": "power-btn",
|
|
"label": "<span font-size='40pt'></span>",
|
|
"on_click": "!reboot"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "label",
|
|
"name": "uptime",
|
|
"label": "Uptime: {{30000:uptime -p | cut -d ' ' -f2-}}"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"tooltip": "Up: {{30000:uptime -p | cut -d ' ' -f2-}}"
|
|
},
|
|
{
|
|
"type": "clock"
|
|
},
|
|
{
|
|
"type": "notifications",
|
|
"show_count": true,
|
|
"icons": {
|
|
"closed_none": "",
|
|
"closed_some": "",
|
|
"closed_dnd": "",
|
|
"open_none": "",
|
|
"open_some": "",
|
|
"open_dnd": ""
|
|
}
|
|
}
|
|
]
|
|
}
|