落書きノート

ふと自分が気になった事を書いてます

conkyのカスタマイズ 

本来の機能のconkyとdzen2で使うconkyとカスタマイズしました。GitHubリポジトリのものは使いづらいのでコードだけ拝借してやってみました。

f:id:kh2n:20170819021400p:plain

# 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 <http://www.gnu.org/licenses/>.
#

alignment top_right
background no
border_width 0
cpu_avg_samples 4
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders no
draw_outline no
draw_shades no
double_buffer yes
use_xft yes
xftfont Noto Sans Mono CJK JP:size=10
gap_x 5
gap_y 60
maximum_width 1800
minimum_size 650 600
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type override
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 160
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
${scroll 50 $nodename - $sysname $kernel on $machine }
$hr
${color #00bfff}CPU ${cpu} %
${cpugraph 20,500 00bfff 00bfff -l}
${color #00ff7f}Mem ${mem}
${memgraph 20,500 00ff7f 00ff7f -l}
${color #ff7f50}Disk I/O ${diskio}
${diskiograph 20,500 ff7f50 ff7f50 -l}
${color #4169e1}Network UP ${upspeed wlp1s0} Down ${downspeed wlp1s0}
${upspeedgraph wlp1s0 20,500 4169e1 4169e1}
${downspeedgraph wlp1s0 20,500 4169e1 4169e1}
$hr
${color #40e0d0}天気予報
${color #40e0d0}${exec ~/bin/weathersh | nkf -w}
$hr
${color #00ff7f}${exec ~/bin/rss-itmediash}
$hr