📊 A fully-customizable Conky script entirely built in Lua https://blog.samuel.domains/blog/tutorials/a-laide-du-lua-mon-script-conky-revu-en-beaute
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

297 lines
5.3 KiB

{
"settings": {
"conky": {
"background": false,
"alignment": "top_left",
"gap_x": 15,
"gap_y": 15,
"use_xft": true,
"double_buffer": true,
"own_window": true,
"own_window_type": "desktop",
"own_window_transparent": true,
"own_window_argb_visual": true,
"update_interval": 2,
"update_interval_on_battery": 4,
"format_human_readable": false,
"cpu_avg_samples": 2,
"net_avg_samples": 2,
"diskio_avg_samples": 2,
"if_up_strictness": "link"
},
"timers": {
"startup_threshold": 3,
"config_autoreload": null,
"resolution_autodetect": null
},
"display": {
"columns_width": 460,
"entity_padding": 7,
"resolution_exec": "xdpyinfo | grep dimensions | tr -s ' ' | cut -d ' ' -f 3"
},
"font": {
"size": 15,
"family": "Consolas"
},
"colors": {
"default": [1, 1, 1, 1],
"clock_second_hand": [1, 0, 0, 1],
"bar_background": [0.4, 0.4, 0.4, 1],
"graph_in": [0, 0.5, 0.66, 1],
"graph_out": [1, 0.5, 0, 1]
},
"temperature": {
"unit": "C",
"degree": "°",
"warning": "/!\\"
}
},
"content": {
"left": [
{
"type": "clock"
},
{
"type": "date_time",
"format": "%H:%M:%S, %A %d/%m/%Y",
"align_center": true
},
{
"type": "separator",
"width": 1
},
{
"type": "text",
"var": "nodename",
"name": "Hostname"
},
{
"type": "text",
"var": "sysname",
"name": "System"
},
{
"type": "text",
"var": "machine",
"name": "Architecture"
},
{
"type": "text",
"var": "kernel",
"name": "Kernel"
},
{
"type": "command",
"exec": "lsb_release -sirc",
"name": "Distribution",
"interval": 3600,
"on_error": "Not detected"
},
{
"type": "command",
"exec": "apt list --upgradable -qq 2> /dev/null | wc -l",
"name": "Updates",
"interval": 3600,
"pre_text": "",
"post_text": " available",
"align_center": false,
"on_error": "Not detected"
},
{
"type": "text",
"var": "uptime",
"name": "Uptime"
},
{
"type": "separator"
},
{
"type": "bar",
"var": "battery_percent",
"name": "Battery",
"show_percent": true
},
{
"type": "brightness",
"name": "Brightness",
"cur_file": "/sys/class/backlight/intel_backlight/actual_brightness",
"max_file": "/sys/class/backlight/intel_backlight/max_brightness",
"interval": 10,
"show_percent": false
},
{
"type": "bar",
"var": "entropy_perc",
"name": "Entropy",
"show_percent": false
},
{
"type": "separator"
},
{
"type": "text",
"var": "threads",
"name": "Total threads"
},
{
"type": "text",
"var": "running_threads",
"name": "Running threads"
},
{
"type": "text",
"var": "processes",
"name": "Total processes"
},
{
"type": "text",
"var": "running_processes",
"name": "Running processes"
},
{
"type": "separator"
},
{
"type": "top_processes",
"max_processes": 5
}
],
"middle": [],
"right": [
{
"type": "graph",
"name": "CPU activity",
"var": "cpu",
"arg": "cpu0"
},
{
"type": "bar",
"var": "cpu",
"arg": "cpu1",
"name": "CPU1",
"show_percent": true
},
{
"type": "bar",
"var": "cpu",
"arg": "cpu2",
"name": "CPU2",
"show_percent": true
},
{
"type": "bar",
"var": "cpu",
"arg": "cpu3",
"name": "CPU3",
"show_percent": true
},
{
"type": "bar",
"var": "cpu",
"arg": "cpu4",
"name": "CPU4",
"show_percent": true
},
{
"type": "sensor",
"name": "CPU",
"chip": "coretemp-isa-0000",
"interval": 5,
"threshold": 70,
"on_error": "Not detected"
},
{
"type": "separator"
},
{
"type": "bar",
"var": "memperc",
"name": "RAM",
"show_percent": false
},
{
"type": "bar",
"var": "swapperc",
"name": "SWAP",
"show_percent": false
},
{
"type": "separator"
},
{
"type": "partition_usage",
"mount_point": "/"
},
{
"type": "partition_usage",
"mount_point": "/boot/"
},
{
"type": "partition_usage",
"mount_point": "/home/"
},
{
"type": "separator"
},
{
"type": "drive_io",
"drive": "/dev/sda"
},
{
"type": "drive_temperature",
"drive": "/dev/sda",
"wake_up": false,
"interval": 5,
"threshold": 60,
"on_error": "Not detected"
},
{
"type": "separator"
},
{
"type": "command",
"exec": "wget -qO- https://ident.me/",
"name": "Public IP",
"interval": 300,
"on_error": "No address"
},
{
"type": "command",
"exec": "cat /etc/resolv.conf | grep nameserver | awk '{ print $2 }'",
"name": "DNS server",
"interval": 300,
"on_error": "Not detected"
},
{
"type": "separator"
},
{
"type": "network_interface_io",
"interface": "enp0s25"
},
{
"type": "network_interface_addr",
"interface": "enp0s25",
"hide_v6": false
},
{
"type": "network_interface_io",
"interface": "wlo1"
},
{
"type": "network_interface_addr",
"interface": "wlo1",
"hide_v6": false
},
{
"type": "separator"
},
{
"type": "version",
"pre_text": "Horloge's script on ",
"post_text": "",
"align_center": true
}
]
}
}