diff options
Diffstat (limited to '.config/conky')
-rw-r--r-- | .config/conky/conky.conf | 101 | ||||
-rw-r--r-- | .config/conky/scripts/conky_lua_scripts.lua | 3 |
2 files changed, 104 insertions, 0 deletions
diff --git a/.config/conky/conky.conf b/.config/conky/conky.conf new file mode 100644 index 0000000..e968e47 --- /dev/null +++ b/.config/conky/conky.conf | |||
@@ -0,0 +1,101 @@ | |||
1 | conky.config = { | ||
2 | alignment = 'top_right', | ||
3 | background = true, | ||
4 | |||
5 | draw_borders = false, | ||
6 | draw_graph_borders = true, | ||
7 | border_width = 1, | ||
8 | border_outer_margin = 5, | ||
9 | stippled_borders = 6, | ||
10 | |||
11 | cpu_avg_samples = 2, | ||
12 | default_color = 'white', | ||
13 | default_outline_color = '#555', | ||
14 | default_shade_color = 'black', | ||
15 | draw_outline = false, | ||
16 | draw_shades = true, | ||
17 | use_xft = true, | ||
18 | font = 'FuraCode Nerd Font Mono:size=10', | ||
19 | |||
20 | gap_x = 35, | ||
21 | gap_y = 35, | ||
22 | |||
23 | minimum_height = 5, | ||
24 | minimum_width = 5, | ||
25 | net_avg_samples = 2, | ||
26 | no_buffers = true, | ||
27 | out_to_console = false, | ||
28 | out_to_stderr = false, | ||
29 | extra_newline = false, | ||
30 | own_window = true, | ||
31 | own_window_class = 'Conky', | ||
32 | own_window_type = 'override', | ||
33 | own_window_transparent = true, | ||
34 | own_window_hints = 'below,undecorated,skip_taskbar,skip_pager,sticky', | ||
35 | short_units = true, | ||
36 | update_interval = 1.0, | ||
37 | uppercase = false, | ||
38 | use_spacer = 'left', | ||
39 | pad_percents = 2, | ||
40 | show_graph_scale = false, | ||
41 | show_graph_range = false, | ||
42 | double_buffer = true, | ||
43 | |||
44 | lua_load = '~/.config/conky/scripts/conky_lua_scripts.lua', | ||
45 | |||
46 | color0 = '#e74c3c', | ||
47 | color1 = '#bdc3c7', | ||
48 | color3 = '#7a3900', | ||
49 | color4 = '#ff8a00', | ||
50 | color5 = '#ffe3a0', | ||
51 | color6 = '#bdc3c7', | ||
52 | color7 = '#ff8a00', | ||
53 | color8 = '#ffe3a0' | ||
54 | } | ||
55 | |||
56 | conky.text = [[ | ||
57 | ${color}${alignc}$sysname $kernel on $machine | ||
58 | ${color}${alignc}${exec whoami} @ $nodename | ||
59 | ${color0}$hr${color} | ||
60 | ${color0}${alignc} | ||
61 | ${alignc}${color}${time %d %B %A} | ||
62 | ${voffset 1} | ||
63 | ${color0}${offset 40}羽${alignr}${offset -30} | ||
64 | ${color}$uptime${alignr} ${color}${time %k:%M:%S} | ||
65 | ${voffset 1} | ||
66 | ${color0}${alignc} | ||
67 | ${color1}cpu ${color}${platform coretemp.0/hwmon/hwmon1 temp 1}${alignr} ${color1}mobo ${color}${acpitemp} | ||
68 | ${voffset 1} | ||
69 | ${color0}${offset 3}${color} | ||
70 | ${cpubar cpu1 6,45} ${freq_g 1}GHz ${cpu cpu1}% ${alignr}${cpubar cpu2 6,45} ${freq_g 2}GHz${alignr}${cpu cpu2}% | ||
71 | ${cpubar cpu3 6,45} ${freq_g 3}GHz ${cpu cpu3}% ${alignr}${cpubar cpu4 6,45} ${freq_g 4}GHz${alignr}${cpu cpu4}% | ||
72 | ${cpubar cpu5 6,45} ${freq_g 5}GHz ${cpu cpu5}% ${alignr}${cpubar cpu6 6,45} ${freq_g 6}GHz${alignr}${cpu cpu6}% | ||
73 | ${cpubar cpu7 6,45} ${freq_g 7}GHz ${cpu cpu7}% ${alignr}${cpubar cpu8 6,45} ${freq_g 8}GHz${alignr}${cpu cpu8}% | ||
74 | ${voffset 1} | ||
75 | ${color0}${offset 3}${color} | ||
76 | ${color1}cpu${color} ${cpubar cpu0 6, 120}${alignr}${freq_g}GHz ${cpu cpu0}% | ||
77 | ${color1}ram${color} ${membar 6, 120}${alignr}$mem/$memmax $memperc% | ||
78 | ${color1}swp${color} ${swapbar 6,120}${alignr}$swap/$swapmax $swapperc% | ||
79 | ${voffset 1} | ||
80 | ${color0}${offset 3}${color} | ||
81 | ${color1}/ ${color}${fs_bar 6, 130 /}${alignr}${fs_used /} /${fs_size /} ${color} | ||
82 | ${color1}~ ${color}${FS_BAR 6, 130 /home}${alignr}${fs_used /home} /${fs_size /home} ${color} | ||
83 | ${voffset 1} | ||
84 | ${color0}${offset 3}ﯱ${color} | ||
85 | ${color1}down${color} ${downspeed eno1}/s${alignr}${color1}up${color} ${upspeed eno1}/s | ||
86 | ${color}${downspeedgraph eno1 32,150 2980b9 e74c3c}${color} ${upspeedgraph eno1 32,150 2980b9 e74c3c} | ||
87 | ${color1}address${color} ${addr eno1}${alignr}updates ${execi 3600 checkupdates | wc -l} | ||
88 | ${color1}inbound${color} ${tcp_portmon 1 32767 count}${color1} outbound${color} ${tcp_portmon 32768 61000 count}${alignr}${color1}all${color} ${tcp_portmon 1 65535 count} | ||
89 | ${voffset 1} | ||
90 | ${color0}${offset 3}${color} | ||
91 | ${color}${alignc} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} | ||
92 | ${color}${alignc} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} | ||
93 | ${color}${alignc} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} | ||
94 | ${color}${alignc} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} | ||
95 | ${voffset 3} | ||
96 | ${texeci 1800 curl -s wttr.in/ank | sed -n '3,7{s/\d27\[[0-9;]*m//g;s/^..//;s/ *$//;p}'} | ||
97 | ${voffset 1} | ||
98 | ${color0}$stippled_hr${color} | ||
99 | ${voffset 1} | ||
100 | ${execp TODAY=`date +%_d`; cal | tail -n+2 | sed -e '1 s:.*:\${color3}&\${color6}:' -e '1 s:'"$(date +%a |cut -c 1-2)"':\${color4}&\${color5}:' -e '0,/'"$TODAY"'/{s/'"$TODAY"'/\${color7}'"$TODAY"'\${color8}/}' | sed s/^/'${alignc}'/} | ||
101 | ]] | ||
diff --git a/.config/conky/scripts/conky_lua_scripts.lua b/.config/conky/scripts/conky_lua_scripts.lua new file mode 100644 index 0000000..9751a21 --- /dev/null +++ b/.config/conky/scripts/conky_lua_scripts.lua | |||
@@ -0,0 +1,3 @@ | |||
1 | function conky_format( format, number ) | ||
2 | return string.format( format, conky_parse( number ) ) | ||
3 | end | ||