From 1a61548941ce02a6d51086de9006c927175a8351 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 11 Feb 2017 20:39:12 +0100 Subject: [PATCH] Add conky configuration and install script --- meta/configs/conky.yaml | 3 +++ tools/misc/conky/conkyrc | 52 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 meta/configs/conky.yaml create mode 100644 tools/misc/conky/conkyrc diff --git a/meta/configs/conky.yaml b/meta/configs/conky.yaml new file mode 100644 index 0000000..cab7ab8 --- /dev/null +++ b/meta/configs/conky.yaml @@ -0,0 +1,3 @@ +- link: + ~/.conkyrc: tools/misc/conky/conkyrc +# vim: set filetype=yaml ts=4 sw=4 tw=0 et : diff --git a/tools/misc/conky/conkyrc b/tools/misc/conky/conkyrc new file mode 100644 index 0000000..33ca889 --- /dev/null +++ b/tools/misc/conky/conkyrc @@ -0,0 +1,52 @@ +conky.config = { + alignment = 'top_right', + background = true, + color2 = '294a51', + cpu_avg_samples = 2, + default_color = '282a2e', + double_buffer = true, + font = 'Bitstream Vera Sans:size=8', + draw_shades = false, + gap_x = 25, + gap_y = 150, + minimum_width = 200, + maximum_width = 200, + no_buffers = true, + own_window = true, + own_window_type = 'override', + own_window_transparent = true, + update_interval = 1.0, + use_xft = true, +} +conky.text = [[ +${voffset 8}$color2${font Bitstream Vera Sans:size=16}${time %A}$font\ +${voffset -8}$alignr$color${font Bitstream Vera Sans:size=38}${time %e}$font +$color${voffset -30}$color${font Bitstream Vera Sans:size=18}${time %b}$font\ +${voffset -3} $color${font Bitstream Vera Sans:size=20}${time %Y}$font$color2$hr +# +${voffset 20}${goto 40}${color}CPU${font Bitstream Vera Sans:bold:size=8}$alignr$cpu% +${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}% +${goto 40}$color2${top name 2}$alignr$color${top cpu 2}% +${goto 40}$color2${top name 3}$alignr$color${top cpu 3}% +${goto 40}$color2${top name 4}$alignr$color${top cpu 4}% +# ${goto 40}$color2${top name 5}$alignr$color${top cpu 5}% +# +${voffset 10}${goto 40}${color}RAM${font Bitstream Vera Sans:bold:size=8}$alignr$mem$font +${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1} +${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2} +${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3} +${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4} +# ${goto 40}$color2${top_mem name 5}$alignr$color${top_mem mem_res 5} +# +${voffset 10}${goto 40}${color}Swap${font Bitstream Vera Sans:bold:size=8}$alignr${swap}/ ${swapfree} +#${voffset -5}$font$alignr${execi 10000 awk -F= '/TION/ {print $2}' /etc/lsb-release |sed 's/"//g'} \ +#${execi 10000 awk -F= '/EASE=/ {printf $2" "} /NAME/ {print $2}' /etc/lsb-release} +${voffset 10}${color2}${alignr}${execi 1200 whoami}@${nodename} +${alignr}${color2}${font Bitstream Vera Sans:size=8}uptime: ${color}${uptime_short} +${voffset 5}${color2}${font Bitstream Vera Sans:size=8}${alignr}kernel: ${color}${kernel} + +${voffset 5}${color2}MPD$alignr${if_mpd_playing} ${color}${mpd_artist} ${mpd_title} +${color}${mpd_bar 3 2} +]] + +/* vim: set filetype=conkyrc ts=4 sw=4 tw=120 noet :*/