メモのページ - チラシの裏メモ 3枚目

通信技術や気になった事を黙々とメモし続ける

.conkyrcを晒してみる

"十数年ぶりにFreeBSD"シリーズの第6弾。
FreeBSDに戻るに伴い、Window Manager上に表示させるシステムモニタをGKrellmからConkyに変えてみた。
諸先輩方の.conkyファイルを参考にし、自分の好み且つ自分の環境に合うものに少しずつ変えていった。

下の画像内右側に細かに見えるのが、自分の環境でのConkyとなる。

設定ファイル.conkyrcは以下のとおり。hostnameはアスタリスクでぼかしてある。
2016年5月22日現在の内容。

#
# Configuration file for Conky 1.9.0
#  written by hechtia (2016/5/11)
#

# setting for buffer,upfdate interval...
double_buffer yes
update_interval 1.0
total_run_times 0

# setting for transparent
background no
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# setting for fonts
use_xft yes
override_utf8_locale yes
xftfont Kochi Gothic:style=Regular:size=8

# setting for position, decoration, shade...
alignment top_left
maximum_width 185
border_width 1
draw_outline no
draw_shades no
default_color white
gap_x 1080
gap_y 10
uppercase no

# setting for misc option
cpu_avg_samples 4
net_avg_samples 5
use_spacer right

# setting for monitoring
TEXT
${color green}System Info${color}
  ${color}Hostname: ${alignr} **********
  ${color}System: FreeBSD 9.3-RELEASE
  ${color}Kernel: ${alignr} 4.4.0 generic
  ${color}Server: ${alignr} HP2133
  ${color red}Uptime: ${alignr} ${uptime}

${color green}CPU Usage${color}
  ${color}CPU Type: ${alignr} VIA C7-M(i686 type)
  ${color}CPU Frequency: ${alignr}${freq_g} GHz
  ${color red}CPU0 Usage: ${alignr} ${cpu cpu0}%
  ${color green}${cpugraph 40}
  ${color}CPU Temp: ${alignr}${execi 10 /sbin/sysctl -n hw.acpi.thermal.tz0.temperature}

${color green}Disk Usage${color}
  ${color}/ ${alignr} ${fs_used /}/${fs_size /}
  ${color green}${fs_bar 3}${color}
  ${color}RAM: ${alignr} $mem/$memmax
  ${color green}${membar 3}${color}
  ${color}Swap: ${alignr} $swap/$swapmax
  ${color green}${swapbar 3}${color}

${color green}Disk I/O${color}
  ${color}/dev/ada0  Read:  ${alignr}${diskio_read /dev/ada0}/s
  ${color}/dev/ada0  Write: ${alignr}${diskio_write /dev/ada0}/s

${color green}Process:CPU Usage${color grey}${alignr} PID CPU%${color}
  ${color}${top name 1} ${alignr} ${top pid 1} ${top cpu 1}
  ${top name 2} ${alignr} ${top pid 2} ${top cpu 2}
  ${top name 3} ${alignr} ${top pid 3} ${top cpu 3}
  ${top name 4} ${alignr} ${top pid 4} ${top cpu 4}
  ${top name 5} ${alignr} ${top pid 5} ${top cpu 5}
  ${top name 6} ${alignr} ${top pid 6} ${top cpu 6}

${color green}Process:MEM Usage${color grey}${alignr} PID MEM%${color}
  ${color}${top_mem name 1} ${alignr} ${top_mem pid 1} ${top_mem mem 1}
  ${top_mem name 2} ${alignr} ${top_mem pid 2} ${top_mem mem 2}
  ${top_mem name 3} ${alignr} ${top_mem pid 3} ${top_mem mem 3}
  ${top_mem name 4} ${alignr} ${top_mem pid 4} ${top_mem mem 4}
  ${top_mem name 5} ${alignr} ${top_mem pid 5} ${top_mem mem 5}
  ${top_mem name 6} ${alignr} ${top_mem pid 6} ${top_mem mem 6}

${color green}Network I/O${color}
  ${color}bge0  Up:   ${alignr}${upspeed bge0}/s
  ${color}bge0  Down: ${alignr}${downspeed bge0}/s
  ${color}wlan0 Up:   ${alignr}${upspeed wlan0}/s
  ${color}wlan0 Down: ${alignr}${downspeed wlan0}/s

${color green}Power:Battery Usage${color}
  ${color red}Battery Avail: ${alignr}${battery_percent BAT0}%
  ${color green}${battery_bar 3 BAT0} $color
#EOF

現在の天気を表示する事も出来るようなのだが、HP2133はモニタが狭い事とFTPサーバとして必要性があまり無い事により却下。