2020-08-25 17:23:31 +02:00
|
|
|
--##############################################
|
|
|
|
--# Settings
|
|
|
|
--##############################################
|
|
|
|
conky.config = {
|
|
|
|
alignment = top_right,
|
|
|
|
--background = true,
|
|
|
|
border_width = 1,
|
|
|
|
color0 = '0077FF',
|
|
|
|
color1 = '991F00',
|
|
|
|
color2 = '0000FF',
|
|
|
|
color3 = 'eb91df',
|
|
|
|
color4 = 'f2c55a',
|
|
|
|
color5 = 'a7f0e3',
|
|
|
|
cpu_avg_samples = 2,
|
|
|
|
default_color = white,
|
|
|
|
default_outline_color = green,
|
|
|
|
default_shade_color = red,
|
|
|
|
double_buffer = true,
|
|
|
|
draw_borders = false,
|
|
|
|
draw_graph_borders = true,
|
|
|
|
draw_outline = false,
|
|
|
|
draw_shades = false,
|
|
|
|
gap_x = 3515,
|
|
|
|
gap_y = 0,
|
|
|
|
minimum_width = 325,
|
|
|
|
maximum_width = 325,
|
|
|
|
minimum_height = 1080,
|
|
|
|
no_buffers = true,
|
|
|
|
override_utf8_locale = true,
|
|
|
|
own_window = true,
|
|
|
|
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
|
|
|
|
--own_window_transparent = true,
|
|
|
|
own_window_argb_visual = true,
|
|
|
|
own_window_argb_value = 100,
|
|
|
|
own_window_type = 'normal',
|
|
|
|
--own_window_color = 000000
|
|
|
|
total_run_times = 0,
|
|
|
|
update_interval = 1,
|
|
|
|
uppercase = false,
|
|
|
|
use_spacer = right,
|
|
|
|
use_xft = true,
|
|
|
|
xftalpha = 0.8,
|
|
|
|
font = 'Bitstream Vera Sans Mono:size=8',
|
|
|
|
}
|
2019-10-13 16:52:14 +02:00
|
|
|
|
2020-08-25 17:23:31 +02:00
|
|
|
conky.text = [[
|
2019-10-13 16:52:14 +02:00
|
|
|
##############################################
|
|
|
|
#DATE
|
|
|
|
##############################################
|
2023-09-10 09:39:29 +02:00
|
|
|
#${color0}${font sans-serif:bold:size=8}DATE ${hr 2}$color
|
2019-10-13 16:52:14 +02:00
|
|
|
${alignc}${voffset 10}${alignc}${font Trebuchet MS:size=28}${time %H:%M:%S}${font}
|
|
|
|
${alignc}${alignc}${font Trebuchet MS:size=8}${time %a %d %b %Y}
|
2020-12-10 11:27:00 +01:00
|
|
|
#${alignc}Volume: ${exec ~/.config/conky/conky-volume.sh}%
|
2019-10-13 16:52:14 +02:00
|
|
|
#% ${execbar ~/.config/conky/conky-volume.sh}
|
|
|
|
##############################################
|
|
|
|
#SYSTEM
|
|
|
|
##############################################
|
|
|
|
${color0}${font sans-serif:bold:size=8}SYSTEM ${hr 2}$color
|
|
|
|
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
|
|
|
|
Host:$alignr$nodename
|
|
|
|
Uptime:$alignr$uptime
|
|
|
|
File System: $alignr${fs_type}
|
|
|
|
Entropy: $alignr[${entropy_perc}]%
|
|
|
|
#Packages: $alignr${execi 1.0 pacman -Q | wc --lines}
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
#CPU
|
|
|
|
##############################################
|
|
|
|
${color0}${font sans-serif:bold:size=8}CPU ${hr 2}$color
|
|
|
|
${font sans-serif:normal:size=8}${execi 600 lshw | grep CPU | grep produit | awk {'print $2 $4 $6 $7'}}
|
|
|
|
Core0: ${freq 0} Mhz ${exec sensors|grep 'Core 0'|awk '{print $3}'|cut -d "." -f 1} C ${alignr}Core1: ${freq 1} Mhz ${exec sensors|grep 'Core 1'|awk '{print $3}'|cut -d "." -f 1} C
|
|
|
|
${cpugraph cpu0 25,160 ff33ff 991f00} ${alignr}${cpugraph cpu1 25,160 ff33ff 991f00}
|
|
|
|
Core2: ${freq 2} Mhz ${exec sensors|grep 'Core 2'|awk '{print $3}'|cut -d "." -f 1} C ${alignr}Core3: ${freq 3} Mhz ${exec sensors|grep 'Core 3'|awk '{print $3}'|cut -d "." -f 1} C
|
|
|
|
${cpugraph cpu2 25,160 ff33ff 991f00} ${alignr}${cpugraph cpu3 25,160 ff33ff 991f00}
|
2023-09-10 09:39:29 +02:00
|
|
|
${top name 1} ${goto 120} ${top cpu 1} % ${goto 165}| ${top name 5} $alignr ${top cpu 5} %
|
|
|
|
${top name 2} ${goto 120} ${top cpu 2} % ${goto 165}| ${top name 6} $alignr ${top cpu 6} %
|
|
|
|
${top name 3} ${goto 120} ${top cpu 3} % ${goto 165}| ${top name 7} $alignr ${top cpu 7} %
|
|
|
|
${top name 4} ${goto 120} ${top cpu 4} % ${goto 165}| ${top name 8} $alignr ${top cpu 8} %
|
2019-10-13 16:52:14 +02:00
|
|
|
|
|
|
|
##############################################
|
|
|
|
#MEMORY
|
|
|
|
##############################################
|
|
|
|
${color0}${font sans-serif:bold:size=8}MEMORY ${hr 2}$color
|
2023-09-10 09:39:29 +02:00
|
|
|
${font sans-serif:normal:size=8}Ram: $mem / $memmax ${goto 142}$memperc%${goto 175}Swap: $swap / $swapmax $alignr $swapperc%
|
|
|
|
${membar 8,160} ${alignr} ${swapbar 8,160}
|
2019-10-13 16:52:14 +02:00
|
|
|
${top_mem name 1}${alignr}${top mem 1} %
|
|
|
|
${top_mem name 2}${alignr}${top mem 2} %
|
|
|
|
${top_mem name 3}${alignr}${top mem 3} %
|
|
|
|
${top_mem name 4}${alignr}${top mem 4} %
|
|
|
|
${top_mem name 5}${alignr}${top mem 5} %
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
#DISK
|
|
|
|
##############################################
|
|
|
|
${color0}${font sans-serif:bold:size=8}DISK ${hr 2}$color
|
|
|
|
#you can uncomment to add the read/write speed of system hard drive
|
|
|
|
${font sans-serif:normal:size=8} / $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
|
|
|
|
${fs_bar /}
|
|
|
|
${font sans-serif:normal:size=8} /home $alignc ${fs_used /home/} / ${fs_size /home/} $alignr ${fs_used_perc /home/}%
|
|
|
|
${fs_bar /home/}
|
|
|
|
${font sans-serif:normal:size=8} /HDD1 $alignc ${fs_used /media/HDD1/} / ${fs_size /media/HDD1/} $alignr ${fs_used_perc /media/HDD1/}%
|
|
|
|
${fs_bar /media/HDD1/}
|
|
|
|
${font sans-serif:normal:size=8} /HDD2 $alignc ${fs_used /media/HDD2/} / ${fs_size /media/HDD2/} $alignr ${fs_used_perc /media/HDD2/}%
|
|
|
|
${fs_bar /media/HDD2/}
|
|
|
|
${font sans-serif:normal:size=8} /HDD3 $alignc ${fs_used /media/HDD3/} / ${fs_size /media/HDD3/} $alignr ${fs_used_perc /media/HDD3/}%
|
|
|
|
${fs_bar /media/HDD3/}
|
|
|
|
${font sans-serif:normal:size=8} /RAGNAS $alignc ${fs_used /media/ragnas/music/} / ${fs_size /media/ragnas/music/} $alignr ${fs_used_perc /media/ragnas/music}%
|
|
|
|
${fs_bar /media/ragnas/music/}
|
|
|
|
|
|
|
|
##############################################
|
|
|
|
#NETWORK
|
|
|
|
##############################################
|
|
|
|
${color0}${font sans-serif:bold:size=8}NETWORK ${hr 2}$color
|
2023-09-10 09:39:29 +02:00
|
|
|
${font sans-serif:normal:size=8}Private ${if_existing /proc/net/route enp0s31f6}${addr enp0s31f6}${else}${if_existing /proc/net/route enp0s31f6}${addr enp0s31f6}${else}Network disconnected${endif}${endif} $alignr Public v4 ${execi 600 curl -s ipv4.icanhazip.com}
|
2019-10-13 16:52:14 +02:00
|
|
|
Public v6 ${execi 600 curl -s ipv6.icanhazip.com}
|
|
|
|
Down: ${downspeed enp0s31f6}/s $alignr Up: ${upspeed enp0s31f6}/s
|
|
|
|
Total: ${totaldown enp0s31f6} $alignr Total: ${totalup enp0s31f6}
|
|
|
|
${downspeedgraph enp0s31f6 25,160 99cc33 006600}$alignr${upspeedgraph enp0s31f6 25,160 ffcc00 ff0000}
|
|
|
|
##############################################
|
|
|
|
#MUSIC
|
|
|
|
#Credit to Reddit user: /u/Rioku_jk
|
|
|
|
##############################################
|
|
|
|
${color0}${font sans-serif:bold:size=8}MUSIC ${hr 2}$color
|
2020-09-10 10:43:19 +02:00
|
|
|
$font${if_running cmus}${scroll wait 33 3 1 ${exec cmus-remote -Q 2>/dev/null | grep 'tag artist ' | cut -d " " -f 3-}} $alignr ${exec ~/.config/conky/cmus-country.sh}
|
2020-07-25 11:08:24 +02:00
|
|
|
${scroll wait 53 3 1 ${exec cmus-remote -Q 2>/dev/null | grep 'tag genre ' | cut -d " " -f 3-}}
|
2020-09-10 10:29:25 +02:00
|
|
|
${exec cmus-remote -Q 2>/dev/null | grep ' date' | cut -d " " -f 3 | cut -d "-" -f 1} - ${exec cmus-remote -Q 2>/dev/null | grep 'tag album ' | cut -d " " -f 3-}
|
2019-10-13 16:52:14 +02:00
|
|
|
${exec cmus-remote -Q | grep tracknumber | cut -d " " -f 3}. ${exec cmus-remote -Q 2>/dev/null | grep 'title' | cut -d " " -f 3-}
|
|
|
|
${execbar ~/.config/conky/cmus-conky-timebar.sh}${color white}
|
|
|
|
${alignc}${exec cmus-remote -Q | grep 'position'| awk '{print strftime("%M:%S", $2, 1)}'} / ${exec cmus-remote -Q | grep 'duration' | awk '{print strftime("%M:%S", $2, 1)}'}
|
|
|
|
${else}$alignc Nothing is playing at the moment.
|
|
|
|
${endif}
|
2020-08-25 17:23:31 +02:00
|
|
|
]]
|