俺の.conkyrc 2022年5月31日2022年5月31日 俺様オープンとかフリーとか俺の超古いMacBookAirはLinuxMintを入れて使っている。超快適。デスクトップでconkyを表示するようにしているので、俺の今の.conkyrcをメモ。色々なところで拾ってきたものを合体させたものだ。 conky.config = { use_spacer = ‘left’, pad_percents = 3, background = false, double_buffer = true, font = ‘DejaVu Sans Mono:size=10’, use_xft = true, alignment = ‘top_right’, gap_x = 10, gap_y = 40, own_window_argb_visual = true, own_window_argb_value = 0, own_window_type = ‘normal’, own_window_hints = ‘undecorated,below,skip_taskbar,skip_pager,sticky’, own_window = true, update_interval = 5.0, }conky.text = [[ ${color orange}Hostname: ${color}${nodename} ${color orange}Kernel: ${color}${sysname} ${kernel} on ${machine} ${color orange}Uptime: ${color}${uptime} ${hr} ${color orange}CPU:${execi 1000 cat /proc/cpuinfo | grep ‘model name’ | sed -e ‘s/model name.*: //’| uniq} ${color orange}Use:${color} ${freq_g} GHz ${color orange}1:${color} ${cpu cpu1}% ${cpubar cpu1} ${color orange}2:${color} ${cpu cpu2}% ${cpubar cpu2} ${cpugraph} ${color orange}Name PID CPU% MEM% ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} ${color orange}Load average: ${color}${loadavg} ${color orange}Processes: ${color}${processes} ${color orange}Running:${color} ${running_processes} ${hr} ${color orange}RAM: ${color}${mem}/${memmax} ${memperc}% ${membar 4} ${color orange}Swap: ${color}${swap}/${swapmax} ${swapperc}% ${swapbar 4} ${memgraph} ${hr} ${color orange}Disk:/ ${color}${fs_used /}/${fs_size /} ${fs_bar 6 /} ${hr} ${color orange}IP: ${color}${addr wlp1s0b1} ${color orange}Up: ${color}${upspeed wlp1s0b1} ${color orange}Down: ${color}${downspeed $wlp1s0b1} ${hr} ${if_existing /sys/class/power_supply/BAT0/status}${color orange}Battery:${color} ${battery} ${battery_time} ${battery_bar} ${hr} ${endif} ]]
conky.config = {
use_spacer = ‘left’,
pad_percents = 3,
background = false,
double_buffer = true,
font = ‘DejaVu Sans Mono:size=10’,
use_xft = true,
alignment = ‘top_right’,
gap_x = 10,
gap_y = 40,
own_window_argb_visual = true,
own_window_argb_value = 0,
own_window_type = ‘normal’,
own_window_hints = ‘undecorated,below,skip_taskbar,skip_pager,sticky’,
own_window = true,
update_interval = 5.0,
}
conky.text = [[
${color orange}Hostname: ${color}${nodename}
${color orange}Kernel: ${color}${sysname} ${kernel} on ${machine}
${color orange}Uptime: ${color}${uptime}
${hr}
${color orange}CPU:${execi 1000 cat /proc/cpuinfo | grep ‘model name’ | sed -e ‘s/model name.*: //’| uniq}
${color orange}Use:${color} ${freq_g} GHz
${color orange}1:${color} ${cpu cpu1}% ${cpubar cpu1}
${color orange}2:${color} ${cpu cpu2}% ${cpubar cpu2}
${cpugraph}
${color orange}Name PID CPU% MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${color orange}Load average: ${color}${loadavg}
${color orange}Processes: ${color}${processes}
${color orange}Running:${color} ${running_processes}
${hr}
${color orange}RAM: ${color}${mem}/${memmax}
${memperc}% ${membar 4}
${color orange}Swap: ${color}${swap}/${swapmax}
${swapperc}% ${swapbar 4}
${memgraph}
${hr}
${color orange}Disk:/ ${color}${fs_used /}/${fs_size /} ${fs_bar 6 /}
${hr}
${color orange}IP: ${color}${addr wlp1s0b1}
${color orange}Up: ${color}${upspeed wlp1s0b1}
${color orange}Down: ${color}${downspeed $wlp1s0b1}
${hr}
${if_existing /sys/class/power_supply/BAT0/status}${color orange}Battery:${color}
${battery}
${battery_time} ${battery_bar}
${hr}
${endif}
]]