-
Notifications
You must be signed in to change notification settings - Fork 0
/
.conkyrc
executable file
·168 lines (146 loc) · 8.47 KB
/
.conkyrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
conky.config = {
-- --------------------------------------------------------------------------------------------- #
-- .conkyrc - derived from various examples across the 'net
-- Some of the sites that proved most usful include:
-- http://mylinuxramblings.wordpress.com/2010/03/23/how-to-configure-the-conky-system-monitor/`
-- http://crunchbanglinux.org/wiki/conky
-- http://lusule.wordpress.com/2008/08/07/how-to-4/
-- --------------------------------------------------------------------------------------------- #
-- -------------------- Conky's Run Time Parameters -------------------- #
update_interval = 1.0,-- Conky update interval in seconds
total_run_times = 0,-- Number of updates before quitting. Set to zero to run forever.
no_buffers = true,-- Subtract file system buffers from used memory?
cpu_avg_samples = 2,-- Number of cpu samples to average. Set to 1 to disable averaging
net_avg_samples = 2,-- Number of net samples to average. Set to 1 to disable averaging
overwrite_file = '/tmp/conkyout.txt', --outputfile
-- -------------------- Conky's General Look & Feel -------------------- #
-- --- defualt values --- #
default_color = 'grey',-- Default color and border color
default_bar_width = 0, default_bar_height = 6,-- Specify a default width and height for bars.
default_gauge_width = 25, default_gauge_height = 25,-- Specify a default width and height for gauges.
default_graph_width = 0, default_graph_height = 25,-- Specify a default width and height for graphs.
default_outline_color = 'green',-- Default border and text outline color
default_shade_color = 'yellow',-- Default border and text shading color
-- --- predefined colors - http://www.kgym.jp/freesoft/xrgb.html --- #
color0 = '#FFFFFF',-- white
color1 = '#ff8c00',-- orange
color2 = '#B22222',-- firebrick
color3 = '#696969',-- dim gray
color6 = '#FFEC8B',-- swap and ram bar
color7 = '#54FF9F',-- cpu bars
color8 = '#FF8C69',-- filesystem memory
-- --- unused colors --- #
color4 = '#222222',
color5 = '#0000ff',
color9 = '#0000ff',
-- --- window layout & options --- #
own_window = true,-- Conky creates its own window instead of using desktop
own_window_type = 'override',-- If own_window is yes, use type normal, desktop, or override
own_window_transparent = false,-- Use pseudo transparency with own_window?
own_window_colour = '222222',-- If own_window_transparent is no, set the background colour
double_buffer = true,-- Use double buffering (reduces flicker)
use_spacer = 'right',-- Adds spaces to stop object from moving
maximum_width = 600,-- Maximum width of window in pixels
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
-- --- window placment --- #
alignment = 'top_right',
-- --- borders, margins, and outlines --- #
draw_graph_borders = true,-- Do you want to draw borders around graphs
border_inner_margin = 0,-- Window's inner border margin (in pixels)
border_outer_margin = 0,-- Window's outer border margin (in pixels)
gap_x = 20,-- Gap between borders of screen and text (on x-axis)
gap_y = 20,-- Gap between borders of screen and text (on y-axis)
border_width = 20,-- Window's border width (in pixels)
-- --- Text --- #
draw_outline = false,-- Do you want ot draw outlines
draw_shades = false,-- Do you want to draw shades
draw_borders = false,-- Do you want to draw borders around text
uppercase = false,-- set to yes if you want all text to be in uppercase
use_xft = true,-- use the X FreeType interface library (anti-aliased font)
font = 'Monospace:size=8:weight=bold',-- Xft font to be used
-- -------------------- Conky's Displayed System Monitoring Parameters -------------------- #
};
conky.text = [[
# Title / Banner message
${color0}
${alignc 40}${font Arial Black:size=22}${time %H:%M:%S}${font}
${alignc}${time %A} ${time %B} ${time %d}, ${time %Y}
$color
# General system information
${color1}SYSTEM INFORMATION ${hr 3}$color
${color0}System: $color$nodename ${alignr}${color0}Uptime: $color$uptime
${color0}Kernel: $color$kernel ${alignr}${color0}Arch: $color$machine
${color0}Frequency: $color$freq MHz
${color0}MAC Address: $color${execi 99999 cat /sys/class/net/wlp58s0/address }
# CPU information
${color1}CPU ${hr 3}$color
${color0}Avg. Load: $color${font Font Awesome 5 Free:style=Solid:size=9} ${font}$loadavg
${color0}CPU 0: $color${cpu cpu0}% ${goto 135}${color7}${cpubar cpu0}
${color0}CPU 1: $color${cpu cpu1}% ${goto 135}${color7}${cpubar cpu1}
${color0}CPU 2: $color${cpu cpu2}% ${goto 135}${color7}${cpubar cpu2}
${color0}CPU 3: $color${cpu cpu3}% ${goto 135}${color7}${cpubar cpu3}
${color4}${cpugraph 0000ff 00ff00}$color
# Memory and swap space untilization
${color1}MEMORY & SWAP ${hr 3}$color
${color0}RAM Usage: ${color}$mem / $memmax
$memperc% ${color6}${membar}$color
${color0}Swap Usage: ${color}$swap / $swapmax
$swapperc% ${color6}${swapbar}$color
# File System utilization
${color1}FILE SYSTEM ${hr 3}$color
${color0}~/buttercup:$color ${fs_used /home/buttercup} / ${fs_size /home/buttercup}
${fs_used_perc /home/buttercup}% ${color8}${fs_bar /home/buttercup}$color
${color0}Reads: $color$diskio_read/s${alignr}${color0}Writes: $color$diskio_write/s
${color4}${diskiograph_read 20,100 33FF00 FF3333 scale -t}$color${alignr}${color4}${diskiograph_write 20,100 33FF00 FF3333 scale -t}$color
# Ethernet utilization
${color1}NETWORKING ${hr 3}$color
${if_match ""=="${exec ifconfig wlp58s0|grep 'inet '}"}\
${color2}WIFI (${addr wlp58s0})\
${else}\
${color0}WIFI (${addr wlp58s0})\
${endif}
${color0}Down:$color ${downspeed wlp58s0}/s ${alignr}${color0}Up:$color ${upspeed wlp58s0}/s
${color0}Total:$color ${totaldown wlp58s0} ${alignr}${color0}Total: $color${totalup wlp58s0}
${color4}${downspeedgraph wlp58s0 25,120 000000 00ff00} ${alignr}${upspeedgraph wlp58s0 25,120 000000 ff0000}$color
# Top running processes
${color1}TOP 3 PROCESSES ${hr 3}$color
${color0}Processes:$color $processes ${color0}Running:$color $running_processes
${color0}${hr 1}
CPU Usage$color
${color3} NAME PID CPU % MEM$color
${color2} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}$color
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color0}${hr 1}
Mem Usage$color
${color3} NAME PID CPU % MEM$color
${color2} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}$color
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
#system stats
${color1}SYSTEM STATS ${hr 3}
${color0}Volume ${goto 120}${color}${font Font Awesome 5 Free:style=Solid:size=9} ${font}${exec /home/buttercup/.config/i3/conkyScripts/volume} ${goto 260}${color0}Brightness ${alignr}${color}${font Font Awesome 5 Free:style=Solid:size=9}${font} ${exec /home/buttercup/.config/i3/conkyScripts/brightness}
${color0}CapsLock ${goto 120}${color}${if_match "${exec /home/buttercup/.config/i3/conkyScripts/caps}"=="Unlocked"}${font Font Awesome 5 Free:style=Solid:size=9} ${font}unlocked${else}${color2}${font Font Awesome 5 Free:style=Solid:size=9} ${font}locked${endif} ${goto 260}${color0}Temp ${alignr}${color}${font Font Awesome 5 Free:style=Solid:size=9} ${font}${exec /home/buttercup/.config/i3/conkyScripts/temperature}
${color0}Battery ${goto 120}\
${if_match "100" == "${exec acpi -b | grep 'Battery 0' | cut -d ' ' -f4 | cut -d '%' -f1}"}\
${#00ff00}${font Font Awesome 5 Free:style=Solid:size=9} ${font}${exec /home/buttercup/.config/i3/conkyScripts/battery}\
${else}\
${if_match "80" <= "${exec acpi -b | grep 'Battery 0' | cut -d ' ' -f4 | cut -d '%' -f1}"}\
${#00ff00}${font Font Awesome 5 Free:style=Solid:size=9} ${font}${exec /home/buttercup/.config/i3/conkyScripts/battery}\
${else}\
${if_match "60" <= "${exec acpi -b | grep 'Battery 0' | cut -d ' ' -f4 | cut -d '%' -f1}"}\
${#a8ff00}${font Font Awesome 5 Free:style=Solid:size=9} ${font}${exec /home/buttercup/.config/i3/conkyScripts/battery}\
${else}\
${if_match "40" <= "${exec acpi -b | grep 'Battery 0' | cut -d ' ' -f4 | cut -d '%' -f1}"}\
${#fff600}${font Font Awesome 5 Free:style=Solid:size=9} ${font}${exec /home/buttercup/.config/i3/conkyScripts/battery}\
${else}\
${if_match "20" <= "${exec acpi -b | grep 'Battery 0' | cut -d ' ' -f4 | cut -d '%' -f1}"}\
${#ffae00}${font Font Awesome 5 Free:style=Solid:size=9} ${font}${exec /home/buttercup/.config/i3/conkyScripts/battery}\
${else}\
${#ff0000}${font Font Awesome 5 Free:style=Solid:size=9} ${font}${exec /home/buttercup/.config/i3/conkyScripts/battery}\
${endif}\
${endif}\
${endif}\
${endif}\
${endif}\
]];