X-Git-Url: https://git.sthu.org/?p=shutils.git;a=blobdiff_plain;f=dotfiles%2Fconky%2Fsysmon-awesome.conkyrc;fp=dotfiles%2Fconky%2Fsysmon-awesome.conkyrc;h=5edd3ca2eee3f197a96e03a9c6f821ef5aa6620a;hp=0000000000000000000000000000000000000000;hb=e5a6e77d71096cff4b5d1f4b39b76154842af40f;hpb=aed683d1d5066a1ecfa529973bb887b08dfcb893 diff --git a/dotfiles/conky/sysmon-awesome.conkyrc b/dotfiles/conky/sysmon-awesome.conkyrc new file mode 100644 index 0000000..5edd3ca --- /dev/null +++ b/dotfiles/conky/sysmon-awesome.conkyrc @@ -0,0 +1,106 @@ +-- vim: ts=4 sw=4 noet ai cindent syntax=lua + +conky.config = { + alignment = 'top_left', + gap_x = 10, + gap_y = 50, + maximum_width = 340, + + update_interval = 2, + cpu_avg_samples = 2, + net_avg_samples = 2, + + default_color = 'c0c0c0', + color0 = 'b21818', + color1 = 'ffffff', + + draw_shades = false, + use_spacer = 'left', + top_name_width = 13, + + if_up_strictness = 'address', + short_units = true, + no_buffers = true, + + double_buffer = true, + own_window = true, + --own_window_colour = 'f8ecc7', + own_window_class = 'Conky', + own_window_type = 'desktop', + own_window_hints = 'below,undecorated,below,skip_taskbar,sticky,skip_pager', + --own_window_transparent = true, + own_window_argb_visual = true, + own_window_argb_value = 30, + + use_xft = true, + font = 'Hack:size=8.5', +}; + +conky.text = [[ +${color0}${font Arial:size=14}Gentoo Linux$font $alignr${kernel}$color +$time$alignr$acpitemp°C +$color${cpu cpu1}% ${cpu cpu2}% ${cpu cpu3}% ${cpu cpu4}%$alignr$mem ($memperc%)$font +${cpugraph cpu1 32,40} ${cpugraph cpu2 32,40} ${cpugraph cpu3 32,40} ${cpugraph cpu4 32,40} $alignr${color1}${memgraph 32,40}$color + +${color0}${font DejaVu Sans:size=12}eth0: $font${if_up eth0}${addr eth0}$endif ${execi 2 ~/.conky/eth0info.sh} ${hr 3}$color ${if_up eth0} +${downspeed eth0} ${upspeed eth0} $alignr${color1}Sum$color ${totaldown eth0} ${totalup eth0} +${downspeedgraph eth0 32,125} $alignr${upspeedgraph eth0 32,125}$endif + +${if_up wlan0}${color0}${font DejaVu Sans:size=12}wlan0: $font${addr wlan0} ${hr 3}$color +$color${wireless_essid wlan0} $alignr${wireless_link_qual_perc wlan0}% ${wireless_bitrate wlan0} +${downspeed wlan0} ${upspeed wlan0} $alignr${color1}Sum$color ${totaldown wlan0} ${totalup wlan0} +${downspeedgraph wlan0 32,125} $alignr${upspeedgraph wlan0 32,125}\ + +$endif\ +${if_up bnep0}${color0}${font DejaVu Sans:size=12}bnep0: $font${addr bnep0} ${hr 3}$color +${downspeed bnep0} ${upspeed bnep0} $alignr${color1}Sum$color ${totaldown bnep0} ${totalup bnep0} +${downspeedgraph bnep0 32,125} $alignr${upspeedgraph bnep0 32,125} + +$endif\ +${if_up wg0}${color0}${font DejaVu Sans:size=12}wg0: $font${addr wg0} ${hr 3}$color +${downspeed wg0} ${upspeed wg0} $alignr${color1}Sum$color ${totaldown wg0} ${totalup wg0} +${downspeedgraph wg0 32,125} $alignr${upspeedgraph wg0 32,125}\ + +$endif\ +${if_up tun0}${color0}${font DejaVu Sans:size=12}tun0: $font${addr tun0} ${hr 3}$color +${downspeed tun0} ${upspeed tun0} $alignr${color1}Sum$color ${totaldown tun0} ${totalup tun0} +${downspeedgraph tun0 32,125} $alignr${upspeedgraph tun0 32,125}\ + +$endif\ +${if_up tun1}${color0}${font DejaVu Sans:size=12}tun1: $font${addr tun1} ${hr 3}$color +${downspeed tun1} ${upspeed tun1} $alignr${color1}Sum$color ${totaldown tun1} ${totalup tun1} +${downspeedgraph tun1 32,125} $alignr${upspeedgraph tun1 32,125}\ + +$endif\ +${if_up dns0}${color0}${font DejaVu Sans:size=12}dns0: $font${addr dns0} ${hr 3}$color +${downspeed dns0} ${upspeed dns0} $alignr${color1}Sum$color ${totaldown dns0} ${totalup dns0} +${downspeedgraph dns0 32,125} $alignr${upspeedgraph dns0 32,125} + +$endif\ +${color0}${font DejaVu Sans:size=12}FS & Disc ${hr 3}$font$color +${color1}ssd $color${fs_used /} / ${fs_size /} $alignr${fs_bar 10,100 /} +${execi 5 ~/.conky/showmounts.sh}\ + +${color1}all $color${diskio_read} ${diskio_write} $alignr${color1}sda $color${diskio_read sda} ${diskio_write sda} +${diskiograph_read 32,55} ${diskiograph_write 32,55} $alignr${diskiograph_read sda 32,55} ${diskiograph_write sda 32,55} + +${color0}${font DejaVu Sans:size=12}Top$font [$uptime_short, $processes] ${hr 3}$color + ${top name 1} ${top pid 1}${top cpu 1} ${top mem_res 1} + ${top name 2} ${top pid 2}${top cpu 2} ${top mem_res 2} + ${top name 3} ${top pid 3}${top cpu 3} ${top mem_res 3} + ${top name 4} ${top pid 4}${top cpu 4} ${top mem_res 4} +${color1}Mem:$color + ${top_mem name 1} ${top_mem pid 1}${top_mem cpu 1} ${top_mem mem_res 1} + ${top_mem name 2} ${top_mem pid 2}${top_mem cpu 2} ${top_mem mem_res 2} + ${top_mem name 3} ${top_mem pid 3}${top_mem cpu 3} ${top_mem mem_res 3} +${color1}IO: rd wr$color + ${top_io name 1} ${top_io pid 1} ${top_io io_read 1} ${top_io io_write 1} + ${top_io name 2} ${top_io pid 2} ${top_io io_read 2} ${top_io io_write 2} + ${top_io name 3} ${top_io pid 3} ${top_io io_read 3} ${top_io io_write 3} + +${execi 10 ~/.conky/showmails.sh} +${color0}${font DejaVu Sans:size=12}Battery ${hr 3}$font$color +${execi 3 upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep energy-rate: | awk '{ printf "%4.1f %s", $2, $3}'} | ${execi 600 upower -i /org/freedesktop/UPower/devices/battery_BAT0 | grep energy-full: | sed 's/^.*: *\(.*\)$/\1/g'}$alignr${battery_percent BAT0}% ${battery_bar 10,100 BAT0} +${execi 3 upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep energy-rate: | awk '{ printf "%4.1f %s", $2, $3}'} | ${execi 600 upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep energy-full: | sed 's/^.*: *\(.*\)$/\1/g'}$alignr${battery_percent BAT1}% ${battery_bar 10,100 BAT1} +${execi 5 upower -i /org/freedesktop/UPower/devices/DisplayDevice | grep 'time to empty:' | awk '{ print $4 " " $5}'}${execi 5 upower -i /org/freedesktop/UPower/devices/DisplayDevice | grep 'time to full:' | awk '{ print $4 " " $5}'}$alignr${execi 5 upower -i /org/freedesktop/UPower/devices/DisplayDevice | grep percentage: | awk '{ printf "%4.1f", $2}'}% ${execibar 10 10,100 upower -i /org/freedesktop/UPower/devices/DisplayDevice | grep percentage: | awk '{ print $2}'} +]];