OSDN Git Service

initial commit
[pacbang-linux/pacbang-settings.git] / skel / .config / conky / PacBang-2-Core-CPU.conkyrc
1 conky.config = {
2 -- https://github.com/altinukshini/conky_blue
3 -- Conky settings #
4         background = false,
5         update_interval = 1,
6
7         cpu_avg_samples = 2,
8         net_avg_samples = 2,
9
10         override_utf8_locale = true,
11
12         double_buffer = true,
13         no_buffers = true,
14
15         text_buffer_size = 2048,
16 --imlib_cache_size 0
17
18         temperature_unit = 'celcius',
19
20 -- Window specifications #
21         own_window = true,
22         own_window_type = 'override',
23         own_window_transparent = true,
24         own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',
25
26         border_inner_margin = 0,
27         border_outer_margin = 5,
28
29         minimum_width = 250, minimum_height = 300,
30         maximum_width = 300,
31
32         alignment = 'top_right',
33         gap_x = 10,
34         gap_y = 50,
35
36 -- Graphics settings #
37         draw_shades = false,
38         draw_outline = false,
39         draw_borders = false,
40         draw_graph_borders = false,
41
42 -- Text settings #
43         use_xft = true,
44         font = ':size=10',
45         xftalpha = 1,
46
47         uppercase = false,
48
49         temperature_unit = 'celsius',
50
51         default_color = '#FFFFFF',
52
53 -- Lua Load  #
54         lua_load = '.config/conky/clock/pacbang-clock02_rings.lua',
55         lua_draw_hook_pre = 'clock_rings',
56
57         own_window_argb_value = 0,
58         own_window_argb_visual = false,
59         own_window_colour = '#000000',
60 -- location
61         template0 = 'AARHUS',
62 -- ethernet
63         template1 = 'eno1'
64 -- wireless
65         template2 = ''
66
67 };
68
69 conky.text = [[
70 #---------------------------------------------------------------------------------------------------------------------
71 #                                           Time and date
72 #---------------------------------------------------------------------------------------------------------------------
73 ${voffset 7}${font Radio Space:size=16}${color B90004}${time %A}${font}$color${font Radio Space:size=38}${goto 167}${voffset -8} ${time %e}${font}
74 ${font Radio Space:size=18}${voffset -30}${time %b}${font}${voffset -3} ${font Radio Space:size=20}${time %Y}${font}${color B90004} ${hr 1}
75 #---------------------------------------------------------------------------------------------------------------------
76 #                                           Battery Circle
77 #---------------------------------------------------------------------------------------------------------------------
78 ${color FFFFFF}${goto 209}${voffset 34}${battery_percent}%
79 ${color B90004}${goto 202}${voffset 25}Battery
80 #---------------------------------------------------------------------------------------------------------------------
81 #                                               Weather
82 #---------------------------------------------------------------------------------------------------------------------
83 ${font conkyweather:size=35}${color FFFFFF}${goto 200}${voffset 20}${execpi 6000  sed -n '2p' ${HOME}/.config/conky/accu_weather/weather}$color${font}${font Radio Space:size=11}${color B90004}${goto 202}${voffset 12}${template0}
84 ${execi 600 bash ${HOME}/.config/conky/accu_weather/acc_rss}${font Radio Space:size=15}${goto 201}${voffset -4}${execpi 600 sed -n '1p' ${HOME}/.config/conky/accu_weather/weather|awk '{print $NF}'}${font}$color
85 ${font :size=8}${goto 47}${voffset 5}Uptime: ${uptime_short}
86 #---------------------------------------------------------------------------------------------------------------------
87 #                                           CPU usage
88 #---------------------------------------------------------------------------------------------------------------------
89 ${color #B90004}${hr 1}$color
90 ${color #B90004}${voffset 6}Temp: $color ${acpitemp}°C
91 ${color #B90004}${voffset 6}Processes:$color $processes
92 ${color #B90004}${voffset 6}Running: $color  $running_processes${goto 116}${voffset 8}${cpu cpu0}% ${color B90004}${goto 116}${voffset 13}CPU1$color${goto 191}${voffset -12}${cpu cpu1}% ${color B90004}${goto 191}${voffset 12}CPU2$color
93 ${color #B90004}${voffset -12}FREQ:$color ${freq}MHz
94 ${color #B90004}${voffset 6}Load:$color ${loadavg}
95 #---------------------------------------------------------------------------------------------------------------------
96 #                                               Network
97 #---------------------------------------------------------------------------------------------------------------------
98 ${color B90004}${voffset 2}${hr 1}
99 ${color B90004}${voffset 5}Hostname $color$alignr$nodename
100 ${color B90004}WLAN $color$alignr${addr ${template2}}
101 ${color B90004}LAN $color$alignr${addr ${template1}}
102 ${color B90004}WAN $color${alignr}${execi 10 ${HOME}/.config/conky/scripts/myip}
103 ${color B90004}${alignc}Traffic$color
104 ${color #B90004}Down $color${downspeed ${template1}} k/s ${alignr}${color #B90004}Up$color ${upspeed ${template1}} k/s
105 ${downspeedgraph ${template1} 30,120 000000 B90004} ${alignr}${upspeedgraph ${template1} 30,120 000000 B90004}$color
106 ${color #B90004}Total$color ${totaldown ${template1}} ${alignr}${color #B90004}Total:$color ${totalup ${template1}}
107 #---------------------------------------------------------------------------------------------------------------------
108 #                                           DISK/RAM/SWAP usage
109 #---------------------------------------------------------------------------------------------------------------------
110 ${color B90004}${voffset 2}${hr 1}
111 ${color FFFFFF}${goto 7}${voffset 39}${fs_used_perc /}%
112 ${color B90004}${goto 7}DISK
113 ${color FFFFFF}${goto 102}${voffset -27}${memperc}%
114 ${color B90004}${goto 10 2}RAM
115 ${color FFFFFF}${goto 192}${voffset -26}${swapperc}%
116 ${color B90004}${goto 191}SWAP
117 #---------------------------------------------------------------------------------------------------------------------
118 #                                           Running processes
119 #---------------------------------------------------------------------------------------------------------------------
120 ${color B90004}${voffset 2} ${hr 1}
121 ${color #B90004}${voffset 5}NAME${goto 122}PID${goto 163}CPU%${goto 210}MEM%$color${voffset 5}
122 ${top name 1}${goto 115}${top pid 1}${goto 160}${top cpu 1}${goto 205}${top mem 1}
123 ${top name 2}${goto 115}${top pid 2}${goto 160}${top cpu 2}${goto 205}${top mem 2}
124 ${top name 3}${goto 115}${top pid 3}${goto 160}${top cpu 3}${goto 205}${top mem 3}
125 ${top name 5}${goto 115}${top pid 5}${goto 160}${top cpu 5}${goto 205}${top mem 5}
126 ${top name 6}${goto 115}${top pid 6}${goto 160}${top cpu 6}${goto 205}${top mem 6}
127 ${top name 7}${goto 115}${top pid 7}${goto 160}${top cpu 7}${goto 205}${top mem 7}
128 ${top name 8}${goto 115}${top pid 8}${goto 160}${top cpu 8}${goto 205}${top mem 8}
129 #---------------------------------------------------------------------------------------------------------------------
130 #                                           Computer info
131 #---------------------------------------------------------------------------------------------------------------------
132 ${color B90004}${voffset 2}${hr 1}${voffset 5}
133 ${color B90004}Hostname:$color${alignr}${nodename}
134 ${color B90004}OS:$color${alignr}${exec "lsb_release -d | awk '{print $2" "$3}'"} $machine
135 ${color B90004}Kernel:$color${alignr}${kernel}$color
136 #---------------------------------------------------------------------------------------------------------------------
137 #                                               Logging
138 #---------------------------------------------------------------------------------------------------------------------
139 #${color B90004}${voffset 2}${hr 1}$color
140 #${color B90004}${alignc}SYSLOG:$color
141 #${color B90004}${voffset -5}${hr 1}$color
142 #${voffset 5}${execi 10 tail -n6 /var/log/syslog | awk '{print " ",$5,$6,$7,$8,$9,$10}' | fold -w40}
143 ]];