You are not logged in.
Dobbie03 wrote:Sector11 wrote:Sneak peek ... code when done:
Nice! When you are done, would you mind sharing please MR S11?
MR!
Noooo please not that!
Of course, just like I said above. I developed it with "xftfont monofur:bold:10" because I like the curved affect the ASCII graphics have. Plus I really like that font. This is a composite with five other fonts (names at the bottom of each) Fira Mono is there twice, one at size=8 and one at 8.5 --> nice as well.
The done deal. There's a few weird things in there that will need adjusting.
https://cdn.scrot.moe/images/2017/04/15/2017-04-15_182537_Scrot11.th.png
Like sensors and the inxi call for HDD info. Need help, just ask.S11_All-Txt.conky
# pkill -xf "conky -q -c /media/5/Conky/S11_All-Txt.conky" & ### Begin Window Settings ################################################## # Create own window instead of using desktop (required in nautilus) own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,skip_taskbar,skip_pager own_window_colour 000000 own_window_class Conky own_window_title S11 # Use the Xdbe extension? (eliminates flicker) # It is highly recommended to use own window with this one # so double buffer won't be so big. double_buffer yes ### ARGB can be used for real transparency ### NOTE that a composite manager is required for real transparency. ### This option will not work as desired (in most cases) in conjunction with ### own_window_type normal # own_window_argb_visual yes ### When ARGB visuals are enabled, this use this to modify the alpha value ### Use: own_window_type normal ### Use: own_window_transparent no ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity. # own_window_argb_value 150 minimum_size 260 900 ## w|h maximum_width 260 ## w gap_x 10 ### l|r gap_y 10 ### u|d alignment tl #################################################### End Window Settings ### ### Font Settings ########################################################## # Use Xft (anti-aliased font and stuff) use_xft yes #xftfont Anonymous Pro:size=9 xftfont monofur:bold:size=10 #xftfont Sans Mono:size=9 #xftfont Liberation Mono:bold:size=9 #xftfont Fantasque Sans Mono:bold:size=10 #xftfont Fira Mono:bold:size=8.5 # Alpha of Xft font. Must be a value at or between 1 and 0 ### xftalpha 1 # Force UTF8? requires XFT ### override_utf8_locale yes uppercase no ###################################################### End Font Settings ### ### Color Settings ######################################################### draw_shades yes #no # amplifies text if yes default_shade_color 000000 draw_outline no # amplifies text if yes default_outline_color 000000 #default_color DCDCDC #220 220 220 Gainsboro #default_color C0C0C0 #192 192 192 Silver default_color B0E0E6 #176 224 230 PowderBlue color0 8FBC8F #143 188 143 DarkSeaGreen color1 778899 #119 136 153 LightSlateGray color2 D8BFD8 #216 191 216 Thistle color3 9ACD32 #154 205 50 YellowGreen color4 FFA07A #255 160 122 LightSalmon color5 FFDEAD #255 222 173 NavajoWhite color6 00BFFF # 0 191 255 DeepSkyBlue color7 5F9EA0 # 95 158 160 CadetBlue color8 BDB76B #189 183 107 DarkKhaki color9 CD5C5C #205 92 92 IndianRed #FF0000 #255 0 0 Red ##################################################### End Color Settings ### ### Borders Section ######################################################## draw_borders no # Stippled borders? stippled_borders 0 # border margins border_inner_margin 5 border_outer_margin 0 # border width border_width 0 # graph borders draw_graph_borders no #default_graph_size 15 40 ##################################################### End Borders Secton ### ### Miscellaneous Section ################################################## # Boolean value, if true, Conky will be forked to background when started. background yes # Adds spaces around certain objects to stop them from moving other things # around, this only helps if you are using a mono font # Options: right, left or none use_spacer none # Default and Minimum size is 256 - needs more for single commands that # "call" a lot of text IE: bash scripts #text_buffer_size 512 # Subtract (file system) buffers from used memory? no_buffers yes # change GiB to G and MiB to M #short_units yes # Like it says, ot pads the decimals on % values # doesn't seem to work since v1.7.1 #pad_percents 2 # Maximum size of user text buffer, i.e. layout below TEXT line in config file # (default is 16384 bytes) #max_user_text 16384 # Desired output unit of all objects displaying a temperature. Parameters are # either "fahrenheit" or "celsius". The default unit is degree Celsius. # temperature_unit Fahrenheit # Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value if # you use $image lots. Set to 0 to disable the image cache. imlib_cache_size 0 top_name_width 6 ############################################## End Miscellaneous Section ### ### LUA Settings ########################################################### ## Above and After TEXT - requires a composite manager or it blinks. ## # lua_load ~/wea_conky/draw_bg.lua ## TEXT ## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2} ## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha} ## ## ## OR Both above TEXT (No composite manager required - no blinking!) ## # lua_load /media/5/Conky/LUA/draw-bg.lua # lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.1 # # TEXT # ####################################################### End LUA Settings ### # The all important - How often conky refreshes. # If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP! update_interval 1 ## │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤ ## ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣ ## ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « » ## ░ ▒ ▓ ☺ ☻ ♥ ♦ ♣ ♠ ## • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼ ## ¼ ½ ¾ ® © TEXT ┌─ Time │${goto 26}├─ Local${goto 110}${time %T} │${goto 26}├─ UTC ${goto 110}${utime %H:%M} │${goto 26}├─ Boot${goto 110}${exec who -b | cut -c23-} │${goto 26}└─ Uptime${goto 110}${uptime} │ ├─ System │${goto 26}├─ OS${goto 110}${pre_exec lsb_release -is} ${pre_exec lsb_release -rs} │${goto 26}├─ Kernel ${goto 110}${kernel} │${goto 26}└─ Machine${goto 110}${machine} │ ├─ Memory │${goto 26}├─ Total${goto 110}${memmax} │${goto 26}├─ In Use${goto 110}${mem} (${memperc}%) │${goto 26}├─ Free${goto 110}${memfree} │${goto 26}├─ Up to${goto 110}${memeasyfree} easy free │${goto 26}├─ Swap │${goto 26}│${goto 45}├─ Total${goto 110}${swapmax} │${goto 26}│${goto 45}├─ Used${goto 110}${swap} ${swapperc}% │${goto 26}│${goto 45}└─ Free${goto 110}${swapfree} │${goto 26}├─ Ram${goto 110}${memperc}% │${goto 26}└─ LoadAvg${goto 110}${loadavg} │ ├─ CPU Status${goto 110}Temp: ${platform f71882fg.2560 temp 2}° │${goto 26}├─ CPU 0${goto 110}${cpu cpu0}%${goto 155}@ ${freq_g 0}GHz │${goto 26}├─ CPU 1${goto 110}${cpu cpu1}%${goto 155}@ ${freq_g 1}GHz │${goto 26}├─ CPU 2${goto 110}${cpu cpu2}%${goto 155}@ ${freq_g 2}GHz │${goto 26}└─ CPU 3${goto 110}${cpu cpu3}%${goto 155}@ ${freq_g 3}GHz │ ├─ Sensors │${goto 26}├─ CPU${goto 110}${platform f71882fg.2560 temp 2}° │${goto 26}├─ CPU Fan${goto 110}${platform f71882fg.2560 fan 1} RPM │${goto 26}├─ M|B${goto 110}${execi 15 sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}° │${goto 26}├─ SDA${goto 110}${hddtemp /dev/sda}° │${goto 26}└─ GPU${goto 110}${nvidia temp}° │ ├─ HDD Status │${goto 26}├─ Disk${goto 110}${execi 30 inxi -D |grep 'Size'| cut -c28-47} │${goto 26}├─ Diskio ${goto 110}${diskio} │${goto 26}│${goto 45}├─ Read${goto 110}${diskio_read} │${goto 26}│${goto 45}└─ Write${goto 110}${diskio_write} │${goto 26}├─ /ROOT${goto 110}${fs_free /}${goto 170}/ ${fs_size /} │${goto 26}├─ /HOME${goto 110}${fs_free /home}${goto 170}/ ${fs_size /home} │${goto 26}├─ /M/5${goto 110}${fs_free /media/5}${goto 170}/ ${fs_size /media/5} │${goto 26}└─ /M/10${goto 110}${fs_free /media/10}${goto 170}/ ${fs_size /media/10} │ ├─ Processes │${goto 26}├─ Total${goto 110}${processes} │${goto 26}├─ Running${goto 110}${running_processes} │${goto 26}│ │${goto 26}├─ CPU │${goto 26}│${goto 45}├─ ${top name 1}${goto 110}${top cpu 1}${top mem 1} │${goto 26}│${goto 45}├─ ${top name 2}${goto 110}${top cpu 2}${top mem 2} │${goto 26}│${goto 45}└─ ${top name 3}${goto 110}${top cpu 3}${top mem 3} │${goto 26}│ │${goto 26}└─ MEM │${goto 45}├─ ${top_mem name 1}${goto 110}${top_mem cpu 1}${top_mem mem 1} │${goto 45}├─ ${top_mem name 2}${goto 110}${top_mem cpu 2}${top_mem mem 2} │${goto 45}└─ ${top_mem name 3}${goto 110}${top_mem cpu 3}${top_mem mem 3} │ └─ Net ${goto 26}├─ eth0${goto 110}${addr} ${goto 26}├─ Up ${goto 26}│${goto 45}├─ Speed${goto 110}${upspeed eth0} ${goto 26}│${goto 45}└─ Total${goto 110}${totalup eth0} ${goto 26}│ ${goto 26}└─ Down ${goto 45}├─ Speed${goto 110}${downspeed eth0} ${goto 45}└─ Total${goto 110}${totaldown eth0}
Thanks for the share. For some reason I can't even get it to show.
"All we are is dust in the wind, dude"
- Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
- Wayne Campbell
Offline
How do you get those special characters (like │ and ├─) to display? They show up as squares for me.
You need to use a font that will display the ASCII characters.
Let's start here:
Are you using Bunsen?
Do you have the fonts installed that the conky call?
Try using a mono font you have.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
miharkula wrote:How do you get those special characters (like │ and ├─) to display? They show up as squares for me.
You need to use a font that will display the ASCII characters.
Let's start here:
Are you using Bunsen?
No S11. ArchLabs all the way my friend. I am just messing about with the config to see if I can figure out the issue.
Sorry Ignore me, I thought for some reason that questions was directed at me.
Last edited by Döbbie03 (2017-04-15 23:08:26)
"All we are is dust in the wind, dude"
- Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
- Wayne Campbell
Offline
miharkula wrote:How do you get those special characters (like │ and ├─) to display? They show up as squares for me.
You need to use a font that will display the ASCII characters.
Let's start here:
Are you using Bunsen?
Yes. Using Deuterium RC from https://forums.bunsenlabs.org/viewtopic … 058#p49058
Update: I tried one of the other fonts. I had left it at monofur which I do not seem to have.
Last edited by miharkula (2017-04-15 23:13:29)
Offline
Thanks for the share. For some reason I can't even get it to show.
Start the conky in a terminal
conky -c /path/to/what_ever_you_called_it_conkyrc
And show the terminal output please.
@ miharkula - you too please.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ miharkula and Dobbie03
My friends, I'll bet you are using conky v10 This conky was written in V1.9
Convert the conky to v10 code.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I was able to see the special characters with Liberation Mono. Rest of the fonts are not installed it seems. I am using conky 1.9. Looking into what I need to update for the sensors but did notice my system does not seem to be able to detect the fan speed (sensors does not show it).
Offline
@ miharkula and Dobbie03
My friends, I'll bet you are using conky v10 This conky was written in V1.9
Convert the conky to v10 code.
You're right. I'm doing that now.
"All we are is dust in the wind, dude"
- Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
- Wayne Campbell
Offline
I was able to see the special characters with Liberation Mono. Rest of the fonts are not installed it seems. I am using conky 1.9. Looking into what I need to update for the sensors but did notice my system does not seem to be able to detect the fan speed (sensors does not show it).
Yea, you need the fonts my friend. Check out http://www.dafont.com/monofur.font
You need to get lm-sensors and hddtemp as well (sudo apt-get lm-sensors hddtemp) then look at this little guide: Using Sensors
@ Dobbie03 - Not sure how ARCH does things but those programs should be available to you as well.
Also get "inxi" that way "sensors" tells you what and inxi tells you where my alias come in handy:
alias sensen='echo "sensors && echo =-=-=-=-=-=-= && inxi -s" && sensors && echo =-=-=-=-=-=-= && inxi -s'
15 Apr 17 @ 21:03:17 ~
$ sensen
sensen=sensors && echo =-=-=-=-=-=-= && inxi -s
acpitz-virtual-0
Adapter: Virtual device
temp1: +30.0°C (crit = +110.0°C)
f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V: +3.50 V
in1: +1.35 V
in2: +1.51 V
in3: +0.86 V
in4: +0.00 V
in5: +0.00 V
in6: +0.00 V
3VSB: +3.39 V
Vbat: +2.99 V
fan1: 2127 RPM
fan2: 0 RPM ALARM
fan3: 0 RPM ALARM
temp1: +39.0°C (high = +85.0°C, hyst = +81.0°C)
(crit = +255.0°C, hyst = +251.0°C) sensor = transistor
temp2: +38.0°C (high = +85.0°C, hyst = +81.0°C)
(crit = +100.0°C, hyst = +96.0°C) sensor = thermistor
temp3: +127.0°C (high = +70.0°C, hyst = +68.0°C) ALARM (CRIT)
(crit = +85.0°C, hyst = +83.0°C) sensor = transistor
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +28.9°C (high = +70.0°C)
=-=-=-=-=-=-=
Sensors: System Temperatures: cpu: 38.0C mobo: 28.6C gpu: 40C
Fan Speeds (in rpm): cpu: 2127 fan-2: 0 fan-3: 0
15 Apr 17 @ 21:03:21 ~
$
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Sector11 wrote:@ miharkula and Dobbie03
My friends, I'll bet you are using conky v10 This conky was written in V1.9
Convert the conky to v10 code.
You're right. I'm doing that now.
Everything under my TEXT can be copied verbatim to the v10 conky:
conky.text = [[
in here
]];
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ Dobbie03 and other conky v10 users:
Please test this and let me know if it works:
S11_All-Txt.v10.conky - untested I run conky v1.9
YES! Tested by Dobbie03 - runs perfect in ARCHLabs! See following post!
conky.config = {
-- pkill -xf "conky -c /media/5/Conky/S11_All-Txt.v10.conky" &
-- Begin Window Settings
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
own_window_colour = '#000000',
own_window_class = 'Conky',
own_window_title = 'Text Conky',
minimum_width = 260, minimum_height = 900,
maximum_width = 260,
gap_x = 10,
gap_y = 10,
alignment = 'top_left',
-- End Window Settings
-- Font Settings
use_xft = true,
font = 'Monofur:bold:size=10',
xftalpha = 1.0,
override_utf8_locale = true,
-- End Font Settings
-- Color Settings
draw_shades = true,
default_shade_color = '#000000',
draw_outline = false,
default_outline_color = '#000000',
--default_color DCDCDC #Gainsboro
default_color = '#B0E0E6',--PowderBlue
color0 = '#98FB98',--PaleGreen
color1 = '#778899',--LightSlateGray
color2 = '#FFD700',--Gold
color3 = '#B0E0E6',--PowderBlue
color4 = '#F4A460',--SandyBrown
color5 = '#DEB887',--BurlyWood
color6 = '#00BFFF',--DeepSkyBlue
color7 = '#5F9EA0',--CadetBlue
color8 = '#FFA500',--Orange
color9 = '#FF4500',--OrangeRed
-- End Color Settings
-- Borders Section
draw_borders = false,
stippled_borders = 5,
border_inner_margin = 0,
border_outer_margin = 0,
-- End Borders Secton
-- Miscellaneous Section
background = true,
use_spacer = 'none',
no_buffers = true,
double_buffer = true,
-- End Miscellaneous Section
update_interval = 1.0,
-- ASCII Characters
-- │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
-- ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣
-- ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
-- ░ ▒ ▓ ☺ ☻ ♥ ♦ ♣ ♠
-- • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
-- ¼ ½ ¾ ® ©
};
conky.text = [[
┌─ Time
│${goto 26}├─ Local${goto 110}${time %T}
│${goto 26}├─ UTC ${goto 110}${utime %H:%M}
│${goto 26}├─ Boot${goto 110}${exec who -b | cut -c23-}
│${goto 26}└─ Uptime${goto 110}${uptime}
│
├─ System
│${goto 26}├─ OS${goto 110}${execi 86400 lsb_release -is} ${execi 86400 lsb_release -rs}
│${goto 26}├─ Kernel ${goto 110}${kernel}
│${goto 26}└─ Machine${goto 110}${machine}
│
├─ Memory
│${goto 26}├─ Total${goto 110}${memmax}
│${goto 26}├─ In Use${goto 110}${mem} (${memperc}%)
│${goto 26}├─ Free${goto 110}${memfree}
│${goto 26}├─ Up to${goto 110}${memeasyfree} easy free
│${goto 26}├─ Swap
│${goto 26}│${goto 45}├─ Total${goto 110}${swapmax}
│${goto 26}│${goto 45}├─ Used${goto 110}${swap} ${swapperc}%
│${goto 26}│${goto 45}└─ Free${goto 110}${swapfree}
│${goto 26}├─ Ram${goto 110}${memperc}%
│${goto 26}└─ LoadAvg${goto 110}${loadavg}
│
├─ CPU Status${goto 110}Temp: ${platform f71882fg.2560 temp 2}°
│${goto 26}├─ CPU 0${goto 110}${cpu cpu0}%${goto 155}@ ${freq_g 0}GHz
│${goto 26}├─ CPU 1${goto 110}${cpu cpu1}%${goto 155}@ ${freq_g 1}GHz
│${goto 26}├─ CPU 2${goto 110}${cpu cpu2}%${goto 155}@ ${freq_g 2}GHz
│${goto 26}└─ CPU 3${goto 110}${cpu cpu3}%${goto 155}@ ${freq_g 3}GHz
│
├─ Sensors
│${goto 26}├─ CPU${goto 110}${platform f71882fg.2560 temp 2}°
│${goto 26}├─ CPU Fan${goto 110}${platform f71882fg.2560 fan 1} RPM
│${goto 26}├─ M|B${goto 110}${execi 15 sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°
│${goto 26}├─ SDA${goto 110}${hddtemp /dev/sda}°
│${goto 26}└─ GPU${goto 110}${nvidia temp}°
│
├─ HDD Status
│${goto 26}├─ Disk${goto 110}${execi 30 inxi -D |grep 'Size'| cut -c28-47}
│${goto 26}├─ Diskio ${goto 110}${diskio}
│${goto 26}│${goto 45}├─ Read${goto 110}${diskio_read}
│${goto 26}│${goto 45}└─ Write${goto 110}${diskio_write}
│${goto 26}├─ /ROOT${goto 110}${fs_free /}${goto 170}/ ${fs_size /}
│${goto 26}├─ /HOME${goto 110}${fs_free /home}${goto 170}/ ${fs_size /home}
│${goto 26}├─ /M/5${goto 110}${fs_free /media/5}${goto 170}/ ${fs_size /media/5}
│${goto 26}└─ /M/10${goto 110}${fs_free /media/10}${goto 170}/ ${fs_size /media/10}
│
├─ Processes
│${goto 26}├─ Total${goto 110}${processes}
│${goto 26}├─ Running${goto 110}${running_processes}
│${goto 26}│
│${goto 26}├─ CPU
│${goto 26}│${goto 45}├─ ${top name 1}${goto 110}${top cpu 1}${top mem 1}
│${goto 26}│${goto 45}├─ ${top name 2}${goto 110}${top cpu 2}${top mem 2}
│${goto 26}│${goto 45}└─ ${top name 3}${goto 110}${top cpu 3}${top mem 3}
│${goto 26}│
│${goto 26}└─ MEM
│${goto 45}├─ ${top_mem name 1}${goto 110}${top_mem cpu 1}${top_mem mem 1}
│${goto 45}├─ ${top_mem name 2}${goto 110}${top_mem cpu 2}${top_mem mem 2}
│${goto 45}└─ ${top_mem name 3}${goto 110}${top_mem cpu 3}${top_mem mem 3}
│
└─ Net
${goto 26}├─ eth0${goto 110}${addr}
${goto 26}├─ Up
${goto 26}│${goto 45}├─ Speed${goto 110}${upspeed eth0}
${goto 26}│${goto 45}└─ Total${goto 110}${totalup eth0}
${goto 26}│
${goto 26}└─ Down
${goto 45}├─ Speed${goto 110}${downspeed eth0}
${goto 45}└─ Total${goto 110}${totaldown eth0} ]];
Last edited by Sector11 (2017-04-16 01:36:19)
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
@ Dobbie03 and other conky v10 users:
Please test this and let me know if it works:
S11_All-Txt.v10.conky - untested I run conky v1.9
conky.config = { -- pkill -xf "conky -c /media/5/Conky/S11_All-Txt.v10.conky" & -- Begin Window Settings own_window = true, own_window_type = 'normal', own_window_transparent = true, own_window_hints = 'undecorated,below,skip_taskbar,skip_pager', own_window_colour = '#000000', own_window_class = 'Conky', own_window_title = 'Text Conky', minimum_width = 260, minimum_height = 900, maximum_width = 260, gap_x = 10, gap_y = 10, alignment = 'top_left', -- End Window Settings -- Font Settings use_xft = true, font = 'Monofur:bold:size=10', xftalpha = 1.0, override_utf8_locale = true, -- End Font Settings -- Color Settings draw_shades = true, default_shade_color = '#000000', draw_outline = false, default_outline_color = '#000000', --default_color DCDCDC #Gainsboro default_color = '#B0E0E6',--PowderBlue color0 = '#98FB98',--PaleGreen color1 = '#778899',--LightSlateGray color2 = '#FFD700',--Gold color3 = '#B0E0E6',--PowderBlue color4 = '#F4A460',--SandyBrown color5 = '#DEB887',--BurlyWood color6 = '#00BFFF',--DeepSkyBlue color7 = '#5F9EA0',--CadetBlue color8 = '#FFA500',--Orange color9 = '#FF4500',--OrangeRed -- End Color Settings -- Borders Section draw_borders = false, stippled_borders = 5, border_inner_margin = 0, border_outer_margin = 0, -- End Borders Secton -- Miscellaneous Section background = true, use_spacer = 'none', no_buffers = true, double_buffer = true, -- End Miscellaneous Section update_interval = 1.0, -- ASCII Characters -- │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤ -- ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣ -- ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « » -- ░ ▒ ▓ ☺ ☻ ♥ ♦ ♣ ♠ -- • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼ -- ¼ ½ ¾ ® © }; conky.text = [[ ┌─ Time │${goto 26}├─ Local${goto 110}${time %T} │${goto 26}├─ UTC ${goto 110}${utime %H:%M} │${goto 26}├─ Boot${goto 110}${exec who -b | cut -c23-} │${goto 26}└─ Uptime${goto 110}${uptime} │ ├─ System │${goto 26}├─ OS${goto 110}${execi 86400 lsb_release -is} ${execi 86400 lsb_release -rs} │${goto 26}├─ Kernel ${goto 110}${kernel} │${goto 26}└─ Machine${goto 110}${machine} │ ├─ Memory │${goto 26}├─ Total${goto 110}${memmax} │${goto 26}├─ In Use${goto 110}${mem} (${memperc}%) │${goto 26}├─ Free${goto 110}${memfree} │${goto 26}├─ Up to${goto 110}${memeasyfree} easy free │${goto 26}├─ Swap │${goto 26}│${goto 45}├─ Total${goto 110}${swapmax} │${goto 26}│${goto 45}├─ Used${goto 110}${swap} ${swapperc}% │${goto 26}│${goto 45}└─ Free${goto 110}${swapfree} │${goto 26}├─ Ram${goto 110}${memperc}% │${goto 26}└─ LoadAvg${goto 110}${loadavg} │ ├─ CPU Status${goto 110}Temp: ${platform f71882fg.2560 temp 2}° │${goto 26}├─ CPU 0${goto 110}${cpu cpu0}%${goto 155}@ ${freq_g 0}GHz │${goto 26}├─ CPU 1${goto 110}${cpu cpu1}%${goto 155}@ ${freq_g 1}GHz │${goto 26}├─ CPU 2${goto 110}${cpu cpu2}%${goto 155}@ ${freq_g 2}GHz │${goto 26}└─ CPU 3${goto 110}${cpu cpu3}%${goto 155}@ ${freq_g 3}GHz │ ├─ Sensors │${goto 26}├─ CPU${goto 110}${platform f71882fg.2560 temp 2}° │${goto 26}├─ CPU Fan${goto 110}${platform f71882fg.2560 fan 1} RPM │${goto 26}├─ M|B${goto 110}${execi 15 sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}° │${goto 26}├─ SDA${goto 110}${hddtemp /dev/sda}° │${goto 26}└─ GPU${goto 110}${nvidia temp}° │ ├─ HDD Status │${goto 26}├─ Disk${goto 110}${execi 30 inxi -D |grep 'Size'| cut -c28-47} │${goto 26}├─ Diskio ${goto 110}${diskio} │${goto 26}│${goto 45}├─ Read${goto 110}${diskio_read} │${goto 26}│${goto 45}└─ Write${goto 110}${diskio_write} │${goto 26}├─ /ROOT${goto 110}${fs_free /}${goto 170}/ ${fs_size /} │${goto 26}├─ /HOME${goto 110}${fs_free /home}${goto 170}/ ${fs_size /home} │${goto 26}├─ /M/5${goto 110}${fs_free /media/5}${goto 170}/ ${fs_size /media/5} │${goto 26}└─ /M/10${goto 110}${fs_free /media/10}${goto 170}/ ${fs_size /media/10} │ ├─ Processes │${goto 26}├─ Total${goto 110}${processes} │${goto 26}├─ Running${goto 110}${running_processes} │${goto 26}│ │${goto 26}├─ CPU │${goto 26}│${goto 45}├─ ${top name 1}${goto 110}${top cpu 1}${top mem 1} │${goto 26}│${goto 45}├─ ${top name 2}${goto 110}${top cpu 2}${top mem 2} │${goto 26}│${goto 45}└─ ${top name 3}${goto 110}${top cpu 3}${top mem 3} │${goto 26}│ │${goto 26}└─ MEM │${goto 45}├─ ${top_mem name 1}${goto 110}${top_mem cpu 1}${top_mem mem 1} │${goto 45}├─ ${top_mem name 2}${goto 110}${top_mem cpu 2}${top_mem mem 2} │${goto 45}└─ ${top_mem name 3}${goto 110}${top_mem cpu 3}${top_mem mem 3} │ └─ Net ${goto 26}├─ eth0${goto 110}${addr} ${goto 26}├─ Up ${goto 26}│${goto 45}├─ Speed${goto 110}${upspeed eth0} ${goto 26}│${goto 45}└─ Total${goto 110}${totalup eth0} ${goto 26}│ ${goto 26}└─ Down ${goto 45}├─ Speed${goto 110}${downspeed eth0} ${goto 45}└─ Total${goto 110}${totaldown eth0} ]];
Works perfectly
"All we are is dust in the wind, dude"
- Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
- Wayne Campbell
Offline
All I need now is to sort the temperature stuff so it matches my system
"All we are is dust in the wind, dude"
- Theodore "Ted" Logan
"Led Zeppelin didn't write tunes that everybody liked, they left that to the Bee Gees."
- Wayne Campbell
Offline
Great stuff Dobbie03 ... post a scrot when done please. I'll just leave this here: lm_sensors - ArchWiki ]:D
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Offline
Not quite there yet. Have a few sensors to figure out and find out why one hard drive will not display correctly.
https://cdn.scrot.moe/images/2017/04/16/2017-04-16-01-45-11_scrot.th.png
Grrrrrrrrrrrrrrrrrrrrrr!!!! Intel Quad core tweaked to 8
Are you using the CPU 0 to CPU 7 correctly?
Reason I ask:
Intel reports CPU's as "Cores" ie: Core 0, Core 2 ... Core 6, Core 7
Conky use CPU exclusively: where ${cpu cpu1} equals Intel's Core0
Conky uses ${cpu cpu0} as an "average" or "total usage"
cpu (cpuN) CPU usage in percents. For SMP machines, the CPU number can be provided as an argument. ${cpu cpu0} is the total usage, and ${cpu cpuX} (X >= 1) are individual CPUs.
I have:
16 Apr 17 @ 09:20:24 ~
$ cpu
CPU: Triple core AMD Athlon II X3 450 (-MCP-) cache: 1536 KB
flags: (lm nx sse sse2 sse3 sse4a svm) bmips: 19287
Clock Speeds: 1: 2500 MHz 2: 2000 MHz 3: 2000 MHz
16 Apr 17 @ 09:20:26 ~
$
and I use ${cpu cpu0} and ${freq_g 0} in my conkys to show those Averages or 'total usage'
I should change that section to:
├─ CPU Status${goto 110}Temp: ${platform f71882fg.2560 temp 2}°
│${goto 26}├─ CPU 1${goto 110}${cpu cpu1}%${goto 155}@ ${freq_g 1}GHz
│${goto 26}├─ CPU 2${goto 110}${cpu cpu2}%${goto 155}@ ${freq_g 2}GHz
│${goto 26}├─ CPU 3${goto 110}${cpu cpu3}%${goto 155}@ ${freq_g 3}GHz
│${goto 26}└─ CPU A${goto 110}${cpu cpu0}%${goto 155}@ ${freq_g 0}GHz
In fact I just did that
Yours should look like this:
├─ CPU Status${goto 110}Temp: ${platform f71882fg.2560 temp 2}°
│${goto 26}├─ CPU 1${goto 110}${cpu cpu1}%${goto 155}@ ${freq_g 1}GHz
│${goto 26}├─ CPU 2${goto 110}${cpu cpu2}%${goto 155}@ ${freq_g 2}GHz
│${goto 26}├─ CPU 3${goto 110}${cpu cpu3}%${goto 155}@ ${freq_g 3}GHz
etc
etc
│${goto 26}├─ CPU 7${goto 110}${cpu cpu7}%${goto 155}@ ${freq_g 7}GHz
│${goto 26}├─ CPU 8${goto 110}${cpu cpu8}%${goto 155}@ ${freq_g 8}GHz
│${goto 26}└─ CPU A${goto 110}${cpu cpu0}%${goto 155}@ ${freq_g 0}GHz
Or even better:
├─ CPU Status${goto 110}Temp: ${platform f71882fg.2560 temp 2}°
│${goto 26}├─ Core1${goto 110}${cpu cpu1}%${goto 155}@ ${freq_g 1}GHz
│${goto 26}├─ Core2${goto 110}${cpu cpu2}%${goto 155}@ ${freq_g 2}GHz
│${goto 26}├─ Core3${goto 110}${cpu cpu3}%${goto 155}@ ${freq_g 3}GHz
etc
etc
│${goto 26}├─ Core7${goto 110}${cpu cpu7}%${goto 155}@ ${freq_g 7}GHz
│${goto 26}├─ Core8${goto 110}${cpu cpu8}%${goto 155}@ ${freq_g 8}GHz
│${goto 26}└─ CPU A${goto 110}${cpu cpu0}%${goto 155}@ ${freq_g 0}GHz
Sorry about that....
Ahhhhhhhhhh monofur - NICE!
I'm sure you'll get the sensors and HDD going right.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
I know its technically not 8 cores and I am not entirely sure why the CPU0-7 works. The sensors output includes just the 4 and an extra one which I could not seem to reference in conky:
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +34.0°C (high = +85.0°C, crit = +105.0°C)
Core 0: +29.0°C (high = +85.0°C, crit = +105.0°C)
Core 1: +28.0°C (high = +85.0°C, crit = +105.0°C)
Core 2: +30.0°C (high = +85.0°C, crit = +105.0°C)
Core 3: +29.0°C (high = +85.0°C, crit = +105.0°C)
Last edited by miharkula (2017-04-16 14:10:59)
Offline
Hyper-threading - conky's ${cpu cpuX} is picking up on the threads
Does ${freq_g 0} ${freq_g 1} ${freq_g 2} ... to ... ${freq_g 7} ${freq_g 8} work as well?
Yup, sensors will pick up the actual "Intel Cores" (ie: 4 Cores) not the threads.
With AMD multi core CPU's lm_sensors only picks up the main CPU - probably equal to what you have as:
Physical id 0: +34.0°C
unless that is your motherboard.
In a terminal what does: inxi -s - tell you?
Try this:
16 Apr 17 @ 12:17:52 ~
$ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1: +30.0°C (crit = +110.0°C)
f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V: +3.50 V
in1: +1.18 V
in2: +1.51 V
in3: +0.86 V
in4: +0.00 V
in5: +0.00 V
in6: +0.00 V
3VSB: +3.39 V
Vbat: +2.99 V
fan1: 2040 RPM
fan2: 0 RPM ALARM
fan3: 0 RPM ALARM
temp1: +38.0°C (high = +85.0°C, hyst = +81.0°C)
(crit = +255.0°C, hyst = +251.0°C) sensor = transistor
temp2: +37.0°C (high = +85.0°C, hyst = +81.0°C)
(crit = +100.0°C, hyst = +96.0°C) sensor = thermistor
temp3: +127.0°C (high = +70.0°C, hyst = +68.0°C) ALARM (CRIT)
(crit = +85.0°C, hyst = +83.0°C) sensor = transistor
k10temp-pci-00c3
Adapter: PCI adapter
temp1: +28.0°C (high = +70.0°C)
16 Apr 17 @ 12:17:57 ~
$ inxi -s
Sensors: System Temperatures: cpu: 37.0C mobo: 28.4C gpu: 38C
Fan Speeds (in rpm): cpu: 1960 fan-2: 0 fan-3: 0
16 Apr 17 @ 12:18:03 ~
$
Notice I do not have temps for each of my three cores.
cpu: 37.0C = temp2: +37.0°C
mobo: 28.4C = temp1: +28.0°C (k10temp-pci-00c3)
Not a clue what: temp1: +38.0°C is - that temp like the 127° never changes.
Sensors tells you the results ... inxi tells you what goes where.
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Does ${freq_g 0} ${freq_g 1} ${freq_g 2} ... to ... ${freq_g 7} ${freq_g 8} work as well?
Yes
In a terminal what does: inxi -s - tell you?
sensors && inxi -s
(I am wondering what "Physical id 0:" is)
acpitz-virtual-0
Adapter: Virtual device
temp1: +27.8°C (crit = +106.0°C)
temp2: +29.8°C (crit = +106.0°C)
coretemp-isa-0000
Adapter: ISA adapter
Physical id 0: +34.0°C (high = +85.0°C, crit = +105.0°C)
Core 0: +29.0°C (high = +85.0°C, crit = +105.0°C)
Core 1: +27.0°C (high = +85.0°C, crit = +105.0°C)
Core 2: +30.0°C (high = +85.0°C, crit = +105.0°C)
Core 3: +28.0°C (high = +85.0°C, crit = +105.0°C)
radeon-pci-0100
Adapter: PCI adapter
temp1: +32.0°C (crit = +120.0°C, hyst = +90.0°C)
Sensors: System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 32.0
Fan Speeds (in rpm): cpu: N/A
Current conky file
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes
### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type normal
# own_window_argb_visual yes
### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
# own_window_argb_value 150
minimum_size 260 900 ## w|h
maximum_width 260 ## w
gap_x 0 ### l|r
gap_y 0 ### u|d
alignment tl
#################################################### End Window Settings ###
### Font Settings ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Anonymous Pro:size=9
xftfont monofur:bold:size=10
#xftfont Sans Mono:size=9
#xftfont Liberation Mono:bold:size=9
#xftfont Fantasque Sans Mono:bold:size=10
#xftfont Fira Mono:bold:size=8.5
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1
# Force UTF8? requires XFT ###
override_utf8_locale yes
uppercase no
###################################################### End Font Settings ###
### Color Settings #########################################################
draw_shades no #no # amplifies text if yes
default_shade_color 000000
draw_outline no # amplifies text if yes
default_outline_color 000000
#default_color 0078B5 #
default_color 00c2ff #
color0 8FBC8F #143 188 143 DarkSeaGreen
color1 778899 #119 136 153 LightSlateGray
color2 D8BFD8 #216 191 216 Thistle
color3 9ACD32 #154 205 50 YellowGreen
color4 FFA07A #255 160 122 LightSalmon
color5 FFDEAD #255 222 173 NavajoWhite
color6 00BFFF # 0 191 255 DeepSkyBlue
color7 5F9EA0 # 95 158 160 CadetBlue
color8 BDB76B #189 183 107 DarkKhaki
color9 CD5C5C #205 92 92 IndianRed #FF0000 #255 0 0 Red
##################################################### End Color Settings ###
### Borders Section ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
#default_graph_size 15 40
##################################################### End Borders Secton ###
### Miscellaneous Section ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes
# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none
# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 512
# Subtract (file system) buffers from used memory?
no_buffers yes
# change GiB to G and MiB to M
#short_units yes
# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
#pad_percents 2
# Maximum size of user text buffer, i.e. layout below TEXT line in config file
# (default is 16384 bytes)
#max_user_text 16384
# Desired output unit of all objects displaying a temperature. Parameters are
# either "fahrenheit" or "celsius". The default unit is degree Celsius.
# temperature_unit Fahrenheit
# Imlib2 image cache size, in bytes. Defaults to 4MiB. Increase this value if
# you use $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0
top_name_width 6
############################################## End Miscellaneous Section ###
### LUA Settings ###########################################################
## Above and After TEXT - requires a composite manager or it blinks.
##
# lua_load ~/wea_conky/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
##
## OR Both above TEXT (No composite manager required - no blinking!)
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
# lua_draw_hook_pre draw_bg 10 0 0 0 0 0xffffff 0.1
#
# TEXT
#
####################################################### End LUA Settings ###
# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1
## │ ─ ┌ ┬ ┐ └ ┴ ┘ ├ ┼ ┤
## ║ ═ ╔ ╦ ╗ ╚ ╩ ╝ ╠ ╬ ╣
## ↑ ↓ → ← ↔ ► ◄ ▲ ▼ « »
## ░ ▒ ▓ ☺ ☻ ♥ ♦ ♣ ♠
## • ◘ ○ ◙ ♂ ♀ ♪ ♫ ☼
## ¼ ½ ¾ ® ©
TEXT
┌─ Time
│${goto 26}├─ Local ${goto 110}${time %I:%M %p}
#│${goto 26}├─ UTC ${goto 110}${utime %H:%M}
│${goto 26}├─ Boot${goto 110}${exec who -b | cut -c23-}
│${goto 26}└─ Uptime${goto 110}${uptime}
│
├─ System
│${goto 26}├─ OS${goto 110}${pre_exec lsb_release -is} ${pre_exec lsb_release -rs}
│${goto 26}├─ Kernel ${goto 110}${kernel}
│${goto 26}└─ Machine${goto 110}${machine}
│
├─ Memory
│${goto 26}├─ Total${goto 110}${memmax}
│${goto 26}├─ In Use${goto 110}${mem} (${memperc}%)
│${goto 26}├─ Free${goto 110}${memfree}
│${goto 26}├─ Up to${goto 110}${memeasyfree} easy free
# swap is never used so just going to hide it
#│${goto 26}├─ Swap
#│${goto 26}│${goto 45}├─ Total${goto 110}${swapmax}
#│${goto 26}│${goto 45}├─ Used${goto 110}${swap} ${swapperc}%
#│${goto 26}│${goto 45}└─ Free${goto 110}${swapfree}
│${goto 26}├─ Ram${goto 110}${memperc}%
│${goto 26}└─ LoadAvg${goto 110}${loadavg}
│
├─ CPU Status${goto 110}Temp: ${platform coretemp.0 Physical 0}° # This doesn't actually work..need to fix
│${goto 26}├─ CPU 0${goto 110}${cpu cpu0}%${goto 155}@ ${freq_g 0}GHz
│${goto 26}├─ CPU 1${goto 110}${cpu cpu1}%${goto 155}@ ${freq_g 1}GHz
│${goto 26}├─ CPU 2${goto 110}${cpu cpu2}%${goto 155}@ ${freq_g 2}GHz
│${goto 26}├─ CPU 3${goto 110}${cpu cpu3}%${goto 155}@ ${freq_g 3}GHz
│${goto 26}├─ CPU 4${goto 110}${cpu cpu4}%${goto 155}@ ${freq_g 4}GHz
│${goto 26}├─ CPU 5${goto 110}${cpu cpu5}%${goto 155}@ ${freq_g 5}GHz
│${goto 26}├─ CPU 6${goto 110}${cpu cpu6}%${goto 155}@ ${freq_g 6}GHz
│${goto 26}├─ CPU 7${goto 110}${cpu cpu7}%${goto 155}@ ${freq_g 7}GHz
│${goto 26}└─ CPU 8${goto 110}${cpu cpu8}%${goto 155}@ ${freq_g 8}GHz
│
├─ Sensors
│${goto 26}├─ CPU${goto 110}${platform coretemp.0 core 2}° # This sensor still needs fixed
# Removed since fan speed is not show anywhere
# ${goto 26}├─ CPU Fan${goto 110}${platform coretemp.0 fan 1} RPM
│${goto 26}├─ M|B${goto 110}${execi 15 sensors acpitz-virtual-0 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°
│${goto 26}├─ SDA${goto 110}${hddtemp /dev/sda}° # For some reason does not want to work
│${goto 26}└─ GPU${goto 110}${execi 15 sensors radeon-pci-0100 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°
│
├─ HDD Status
│${goto 26}├─ Disk${goto 110}${execi 30 inxi -D |grep 'Size'| cut -c35-55}
│${goto 26}├─ Diskio ${goto 110}${diskio}
│${goto 26}│${goto 45}├─ Read${goto 110}${diskio_read}
│${goto 26}│${goto 45}└─ Write${goto 110}${diskio_write}
│${goto 26}├─ /${goto 110}${fs_free /}${goto 170}/ ${fs_size /}
│${goto 26}├─ /home${goto 110}${fs_free /home}${goto 170}/ ${fs_size /home}
│${goto 26}├─ /SECOND${goto 110}${fs_free /media/mih/SECOND/}${goto 170}/ ${fs_size /media/mih/SECOND/}
│${goto 26}└─ /EXT${goto 110}${fs_free /media/mih/My\ Book/}${goto 170}/ ${fs_size /media/mih/My\ Book/}
│
├─ Processes
│${goto 26}├─ Total${goto 110}${processes}
│${goto 26}├─ Running${goto 110}${running_processes}
│${goto 26}│
│${goto 26}├─ CPU
│${goto 26}│${goto 45}├─ ${top name 1}${goto 110}${top cpu 1}${top mem 1}
│${goto 26}│${goto 45}├─ ${top name 2}${goto 110}${top cpu 2}${top mem 2}
│${goto 26}│${goto 45}└─ ${top name 3}${goto 110}${top cpu 3}${top mem 3}
│${goto 26}│
│${goto 26}└─ MEM
│${goto 45}├─ ${top_mem name 1}${goto 110}${top_mem cpu 1}${top_mem mem 1}
│${goto 45}├─ ${top_mem name 2}${goto 110}${top_mem cpu 2}${top_mem mem 2}
│${goto 45}└─ ${top_mem name 3}${goto 110}${top_mem cpu 3}${top_mem mem 3}
│
└─ Net
${goto 26}├─ eth0${goto 110}${addr}
${goto 26}├─ Up
${goto 26}│${goto 45}├─ Speed${goto 110}${upspeed eth0}
${goto 26}│${goto 45}└─ Total${goto 110}${totalup eth0}
${goto 26}│
${goto 26}└─ Down
${goto 45}├─ Speed${goto 110}${downspeed eth0}
${goto 45}└─ Total${goto 110}${totaldown eth0}
Offline