From e0b84e94fecb4a2f03ffdcc7a26b7a20e191c3dd Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Wed, 14 Mar 2012 02:56:58 +0900 Subject: [PATCH] add conky config file --- bashrc | 2 +- conkyrc | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ conkyrc.2 | 39 +++++++++++++++++++++++++++++++++++++ profile | 2 +- xprograms | 3 +++ 5 files changed, 102 insertions(+), 2 deletions(-) create mode 100644 conkyrc create mode 100644 conkyrc.2 diff --git a/bashrc b/bashrc index f250bbc..5138167 100755 --- a/bashrc +++ b/bashrc @@ -146,7 +146,7 @@ showinfo(){ x(){ if [[ -z $DISPLAY ]] && ! [[ -e /tmp/.X11-unix/X0 ]] && (( EUID )); then - nohup startx >~/.xorg.log 2>&1 & + nohup startx >~/.backup/log/xorg.log 2>&1 & else echo "X cant be started! Maybe another X is already running!" 1>&2 fi diff --git a/conkyrc b/conkyrc new file mode 100644 index 0000000..9c7e812 --- /dev/null +++ b/conkyrc @@ -0,0 +1,58 @@ +# ~/.conkyrc +# +double_buffer yes +background no + +use_xft yes +xftfont DejaVu Sans Mono:size=10 +xftalpha 0.8 + +update_interval 1.0 + +total_run_times 0 + +own_window yes +own_window_type override +own_window_transparent yes +own_window_colour hotpink +own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager + +minimum_size 200 +draw_shades no +draw_outline no +draw_borders no +stippled_borders 0 +border_width 1 +default_color green # slategrey +default_shade_color lightgrey +default_outline_color black +alignment top_right +gap_x 20 +gap_y 50 +no_buffers yes +uppercase no +format_human_readable yes + +TEXT +${color white}${alignr}Arch Linux +${color white}${hr} +${color}host ${color black}:${color white} ${nodename} +${color}os ${color black}:${color white} ${sysname} ${kernel} +${color}freq ${color black}:${color white} ${freq 1}Mhz | ${freq 2}Mhz +${color}upt ${color black}:${color white} ${uptime} +#${color}btry ${color black}:${color white} ${battery} +#${color}btime${color black}:${color white} ${battery_time} +${color white}${hr} +${color}cpu ${color black}:${color white} ${cpu cpu0}% ${cpubar cpu0} +${color}ram ${color black}:${color white} ${memperc}% ${membar} +${color white}${stippled_hr} +${color}root ${color black}:${color white} ${fs_free /} ${fs_bar /} +${color}/tmp ${color black}:${color white} ${fs_free /tmp} ${fs_bar /tmp} +${color white}${stippled_hr} +${color}addr ${color black}:${color white} ${addr} +${color}down ${color black}:${color white} ${downspeed}/s +${color #888888}${downspeedgraph ff0000 0000ff} +${color}up ${color black}:${color white} ${upspeed}/s +${color #888888}${upspeedgraph 0000ff ff0000} +${color white}${hr} +#${color white}${alignr}${execi 900 cal -1} diff --git a/conkyrc.2 b/conkyrc.2 new file mode 100644 index 0000000..679691b --- /dev/null +++ b/conkyrc.2 @@ -0,0 +1,39 @@ +# ~/.conkyrc +# +double_buffer yes +background no + +use_xft yes +xftfont DejaVu Sans Mono:size=10 +xftalpha 0.8 + +update_interval 1.0 + +total_run_times 0 + +own_window yes +own_window_type override +own_window_transparent yes +own_window_colour hotpink +own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager + +minimum_size 200 +draw_shades no +draw_outline no +draw_borders no +stippled_borders 0 +border_width 1 +default_color green # slategrey +default_shade_color lightgrey +default_outline_color black +alignment bottom_left +gap_x 20 +gap_y 20 +no_buffers yes +uppercase no +format_human_readable yes + +TEXT + +${color yellow}/var/log/dmesg.log: +${color white}${tail /var/log/dmesg.log 15} diff --git a/profile b/profile index e49d88c..251e76d 100755 --- a/profile +++ b/profile @@ -23,4 +23,4 @@ addtopath ${HOME}/bin type setterm >/dev/null 2>&1 && setterm -blank 30 -powersave on # -powerdown 10 # in my environment powerdown does not work -env > $HOME/.env.txt +mkdir -p ~/.backup/log diff --git a/xprograms b/xprograms index 454be90..8dc6556 100755 --- a/xprograms +++ b/xprograms @@ -13,6 +13,9 @@ tint2 & volumeicon & +conky -c ~/.dotfiles/conkyrc >~/.backup/log/conky.log 2>&1 & +conky -c ~/.dotfiles/conkyrc.2 >~/.backup/log/conky.2.log 2>&1 & + #wicd-client --tray & # done by /etc/xdg/autostart/wicd-client.desktop # Detection of insertion of an optical disk