Skip to content

Instantly share code, notes, and snippets.

@skyecodes
Created May 25, 2018 12:46
Show Gist options
  • Save skyecodes/e57b028acca24d3b7fcfb1c951bea14d to your computer and use it in GitHub Desktop.
Save skyecodes/e57b028acca24d3b7fcfb1c951bea14d to your computer and use it in GitHub Desktop.
conkyrc
conky.config = {
alignment = 'top_right',
background = false,
border_width = 1,
color1 = '#00BCD4',
cpu_avg_samples = 2,
default_color = '#D1E7D1',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
--gap_x 20
--gap_y 20
border_outer_margin = 20,
max_port_monitor_connections = 64,
maximum_width = 500,
minimum_width = '500',
-- max_specials 512
max_user_text = 16384,
minimum_width = 330, minimum_height = 10,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
-- wm_class_name Conky
stippled_borders = 2,
-- wn_window yes
--settings to define how to draw the window. compiz needs these settings, adjust for your WM
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
--own_window_class conky-semi
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = false,
own_window_argb_value = 100,
own_window_colour = 'black',
own_window_argb_visual = true,
--own_window_argb_value 50
update_interval = 1,
uppercase = false,
use_xft = true,
xftalpha = 0.9,
font = 'Inconsolata:size=12',
};
conky.text = [[
${color1}$nodename ${alignr}$kernel
${color1}Uptime:${color} $uptime ${color1} ${alignr}Load:${color} $loadavg
$hr
${alignr}${color1}RAM : ${color}$memperc% = $mem / $memmax
${color}${cpugraph 60,240 07CC0D FF0000 -t} ${goto 270}${color}${memgraph 60,250 07CC0D FF0000 -t}
${color1}CPU 1 : ${color}${cpu cpu1}% ${goto 130}${color1}${cpubar cpu1 12,125} ${goto 270}${color1}CPU 3 : ${color}${cpu cpu3}% ${alignr}${color1}${cpubar cpu3 12,125}
${color1}CPU 2 : ${color}${cpu cpu2}% ${goto 130}${color1}${cpubar cpu2 12,125} ${goto 270}${color1}CPU 4 : ${color}${cpu cpu4}% ${alignr}${color1}${cpubar cpu4 12,125}
${color1}Swap Usage : ${color}$swapperc% = $swap/$swapmax ${color1} ${swapbar 12 07CC0D FF0000}${color}
$hr
${color1}LAN Net Down:${color} ${downspeed enp3s0 } ${goto 270}${color1}Net Up:${color} ${upspeed enp3s0}
${color}${downspeedgraph enp3s0 60,240 07CC0D FF0000 -t}${color} ${goto 270}${upspeedgraph enp3s0 60,250 07CC0D FF0000 -t}
$hr
${color1}Temperatures:
${color1}/dev/sda (SSD) ${color} ${hddtemp /dev/sda}°C
${color1}/dev/sdb (HDD) ${color} ${hddtemp /dev/sdb}°C
$hr
${color1}Disk Usage:
${color1}/ ${color}${fs_used /} / ${fs_size /}${alignr}${color1}${fs_bar 12,120 /}
${color1}/home ${color}${fs_used /home} / ${fs_size /home}${alignr}${color1}${fs_bar 12,120 /home}${color}
$hr
${color1}Top Processes:
${color1}Name PID CPU% MEM% TIME USER
${color}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${top time 1} ${top user 1}
${color}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${top time 2} ${top user 2}
${color}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${top time 3} ${top user 3}
${color}${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} ${top time 4} ${top user 4}
${color}${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5} ${top time 5} ${top user 5}
$hr
${color1}Port(s)${alignr}#Connections
${color}Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr} ALL: ${tcp_portmon 1 65535 count}
${color1}Inbound Connection ${alignr} Local Service/Port${color}
${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lservice 0}
${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lservice 1}
${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lservice 2}
${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lservice 3}
${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lservice 4}
${color1}Outbound Connection ${alignr} Remote Service/Port${color}
${tcp_portmon 32768 61000 rhost 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rhost 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rhost 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rhost 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rhost 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
# --- Get Spotify Cover ---
${if_running spotify}
$hr
${exec ~/.conky/conky-spotify/scripts/cover.sh}
# --- Show wallpaper and cover ---
${image ~/.conky/conky-spotify/current/current.jpg -p 0,880 -s 164x164 -n}
# --- Show now playing information ---
${voffset -35}
${goto 210}${font Inconsolata:size=12}Title:
${goto 220}${font Inconsolata:size=18}${exec ~/.conky/conky-spotify/scripts/title.sh}
${voffset -20}
${goto 210}${font Inconsolata:size=12}Artist:
${goto 220}${font Inconsolata:size=18}${exec ~/.conky/conky-spotify/scripts/artist.sh}
${voffset -20}
${goto 210}${font Inconsolata:size=12}Album:
${goto 220}${font Inconsolata:size=18}${exec ~/.conky/conky-spotify/scripts/album.sh}
${endif}
]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment