Conky
conkyはX Window System用のモニターソフトです.
conkyは多くのシステム変数を監視することができます.
このようにCPUの情報やメモリ使用率, ディスクの容量,
プロセス, ネットワークの情報が取得できます.
下のコードは,
~/.conkyrc
私の設定ファイルです. そこまで悠長に書かないようにしています. (書けないだけでただの言い訳ry
Google先生に聞いてみるとかなり手の込んでいるものが結構見つかります.
" archlinux conky
# pacman -S conky
" ArchLinux Logo
# pacman -S archlinux-artwork
# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see .
#
# Conky Settings
background on
update_interval 2
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
imlib_cache_size 0
#更新時間(秒単位)
update_interval 2
double_buffer yes
# 配置場所
#alignment top_right
alignment top_left
#alignment bottom_left
#alignment bottom_right
gap_x 25
gap_y 40
border_width 1
# Graphics Settings
draw_shades no
draw_borders no
draw_outline no
draw_graph_borders yes
uppercase no
# Text Settings
use_xft yes
xftfont Ricty:size=12
xftalpha 0.4
text_buffer_size 2048
default_color d6d6d6
default_outline_color white
default_shade_color white
color0 white
color1 otange
color2 green
color3 lightblue
# Window Specifications
own_window_class Conky
own_window no
own_window_type override
#own_window_type desktop
own_window_argb_visual yes
own_window_argb_value 255
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour brown
# 透明化
own_window_transparent yes
border_inner_margin 0
border_outer_margin 0
minimum_size 330 5
maximum_width 330
#out_to_console no
#out_to_stderr no
#extra_newline no
#stippled_borders 0
#use_spacer none
#show_graph_scale no
#show_graph_range no
TEXT
${image ~/.images/arch_gnome.png -s 70x70}${voffset 5}
${goto 120}$nodename $sysname
${goto 120}Kernel : ${kernel}${voffset 20}
Date ${hr 4}${voffset 5}
${alignc 35}${font Ricty Black:size=26}${time %H : %M}${font}
${alignc}${time %B %d日 %A}${voffset 12}
CPU ${hr 4}${voffset 5}
Core1:${cpu cpu1} % ${alignc}${cpubar cpu0 8,60}
Core2:${cpu cpu2} % ${alignc}${cpubar cpu1 8,60}
${exec sensors | grep RPM}
Memory ${hr 4} ${voffset 5}
Used: $mem of $memmax
RAM : $memperc% ${alignc}${membar 6,80}
Swap: $swapperc ${alignc}${swapbar 6,80}${voffset 12}
Disk ${hr 4}
/: Used ${fs_used /} of ${fs_size /} ${alignr}${fs_used_perc /}%
/boot: Used ${fs_used /boot/} of ${fs_size /boot/} ${alignr}${fs_used_perc /boot/}%
/var: Used ${fs_used /var/} of ${fs_size /var/} ${alignr}${fs_used_perc /var/}%${voffset 12}
Temperature ${hr 4}
CPU ${alignr}${hwmon temp 1}℃
M/B ${alignr}${hwmon temp 2}℃${voffset 12}
Process ${hr 4}
${top name 1} ${top pid 1} ${top cpu 1}% ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2}% ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3}% ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4}% ${top mem 4} ${voffset 12}
Net Work ${hr 4}
LAN IP : enp2s0(${addr enp2s0})
enp2s0 Down: ${downspeed enp2s0}/s ${alignr}Up:${upspeed enp2s0}/s
${downspeedgraph enp2s0 25,140 0000ff 00ff00} ${alignr}${upspeedgraph enp2s0 25,140 0000ff 00ff00} ${voffset 12}
LAN IP : wlp3s0(${addr wlp3s0})
wlp3s0 Down: ${downspeed wlp3s0}/s ${alignr}Up:${upspeed wlp3s0}/s
${downspeedgraph wlp3s00 25,140 0000ff 00ff00} ${alignr}${upspeedgraph wlp3s0 25,140 0000ff 00ff00} ${voffset 12}
${hr 4}