You are not logged in.

#61 2017-01-18 22:00:38

pawel2k
Member
Registered: 2016-12-25
Posts: 53

Re: Conky config

Well it's not that important for me tbh that i would learn some scripting language just for that, but since @Sector11 likes "tweaking" Conky i am posting how i would like it configured.

But if @Sector11 isn't interested in this anymore it's fine smile

Offline

#62 2017-01-18 22:24:28

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,013

Re: Conky config

 18 Jan 17 @ 19:16:59 ~
  $ sensors | awk '/temp1/ {gsub(/\+/,"",$1); gsub(/\..+/,"",$1); print $1}'
temp1:
temp1:
temp1:
 
 18 Jan 17 @ 19:17:12 ~
  $ sensors | awk '/temp1/ {gsub(/\+/,"",$2); gsub(/\..+/,"",$2); print $2}'
30
47
37
 
 18 Jan 17 @ 19:17:24 ~
  $ sensors | awk '/temp1/ {gsub(/\+/,"",$3); gsub(/\..+/,"",$3); print $3}'
(crit
(high
(high

I don't have the Physical id 0 thing so hard to do here.

$ sensors | awk '/Physical id/'
Physical id 0:  +44.0°C  (high = +80.0°C, crit = +100.0°C)

This

$ sensors | awk '/Physical id/ {print $2}'

'should' output:  +44°C  -- or there abouts

Conky:

${exec sensors | awk '/Physical id/ {print $2}'}

What does this do for you in a terminal:

sensors | awk '/Physical id/ {gsub(/\+/,"",$2); gsub(/\..+/,"",$2); print $2}'

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#63 2017-01-18 22:55:49

pawel2k
Member
Registered: 2016-12-25
Posts: 53

Re: Conky config

pawel@debian:~$ sensors | awk '/Physical id/ {gsub(/\+/,"",$2); gsub(/\..+/,"",$2); print $2}'
id
pawel@debian:~$ 

Offline

#64 2017-01-18 22:59:22

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: Conky config

^ So change the print variable as I suggested earlier. You are printing the second field, "id" = "$2". I'm sure you can calculate which one you need tongue


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#65 2017-01-18 23:01:02

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,013

Re: Conky config

YUP, just a matter of math now.  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#66 2017-01-19 06:45:20

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,572
Website

Re: Conky config

pawel2k wrote:

it's not that important for me...

Well, people are helping you anyway, so it's OK, but saying "it's not important" is not the best way to to motivate them IMO.

And damo's advice to learn some basic bash scripting, and perhaps a little bit of awk and sed, will come in useful for you in many other situations than tweaking conky.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#67 2017-01-19 16:51:19

pawel2k
Member
Registered: 2016-12-25
Posts: 53

Re: Conky config

johnraff wrote:
pawel2k wrote:

it's not that important for me...

Well, people are helping you anyway, so it's OK, but saying "it's not important" is not the best way to to motivate them IMO.

And damo's advice to learn some basic bash scripting, and perhaps a little bit of awk and sed, will come in useful for you in many other situations than tweaking conky.

I just meant i can live without it, and of course i really appreciate their help, thanks to Sector11 my config already looks nice smile

I started learning JS and Python so for now i don't want to add another thing to the list like LUA tongue

Offline

#68 2017-01-19 17:48:39

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,013

Re: Conky config

pawel2k wrote:

i don't want to add another thing to the list like LUA tongue

... or conky!
I'm done.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#69 2017-01-19 20:02:35

pawel2k
Member
Registered: 2016-12-25
Posts: 53

Re: Conky config

Anyway here is my final config

jfaQtX0m.png
http://i.imgur.com/jfaQtX0.png

conky.config = {
-- Begin Window Settings
	own_window = true,
	own_window_type = 'normal',
	own_window_transparent = true,
	own_window_hints = 'undecorated,below,skip_taskbar,skip_pager,sticky',
	own_window_colour = '#000000',
	own_window_class = 'Conky',
	own_window_title = 'Debian Conky',

	own_window_argb_visual = true,
	own_window_argb_value = 50,

	minimum_width = 200, minimum_height = 0,
	maximum_width = 200,

	gap_x = 20,
	gap_y = 45,

	alignment = 'top_right',

--  End Window Settings
--  Font Settings

	use_xft = true,
--  font = 'Overpass:size=10',
	font = 'Overpass:size=10',
	xftalpha = 1,
	override_utf8_locale = true,
	uppercase = false,

--  End Font Settings
--  Colour Settings

	draw_shades = true,
	default_shade_color = '#000000',
	draw_outline = false,
	default_outline_color = '#000000',

	default_color = '#C0C0C0',-- Silver
	color0 = '#B0E0E6',-- PowderBlue
	color1 = '#778899',-- LightSlateGray
	color2 = '#D8BFD8',-- Thistle
	color3 = '#9ACD32',-- YellowGreen
	color4 = '#FFA07A',-- LightSalmon
	color5 = '#FFDEAD',-- NavajoWhite
	color6 = '#00BFFF',-- DeepSkyBlue
	color7 = '#5F9EA0',-- CadetBlue
	color8 = '#BDB76B',-- DarkKhaki
	color9 = '#CD5C5C',-- IndianRed

--  End Colour Settings
--  Borders Section

	draw_borders = false,
	stippled_borders = 5,
	border_inner_margin = 5,
	border_outer_margin = 0,
	border_width = 2,
	draw_graph_borders = true,
	default_graph_width = 15, default_graph_height = 40,

--  End Borders Section
--  Miscellaneous Section

	background = true,
	use_spacer = 'none',
	text_buffer_size = 6144,
	no_buffers = true,
	short_units = true,
	pad_percents = 2,
	imlib_cache_size = 0,
	double_buffer = true,
	max_user_text = 16384,
	temperature_unit = 'fahrenheit',

--  End Miscellaneous Section

	update_interval = 1,

};

conky.text = [[
${color}${alignc}O S    I N F O
${hr}
Host ${alignr}${nodename}
Kernel ${alignr}${kernel}
Uptime ${alignr}${uptime}

${alignc}H A R D W A R E
${hr}

SSD${goto 60}Used${alignr}${fs_used /home}${alignr}
CPU${goto 60}Used${alignr}${if_match ${cpu cpu0}<10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%${alignr}
RAM${goto 60}${mem}${alignr}${memmax}
GPU${goto 60}Temp.${alignr}${nvidia temp}°

${alignc}S H O R T C U T    K E Y S
${hr}
[Ctrl] + [Alt] + F${alignr}Nautilus
[Ctrl] + [Alt] + T${alignr}Terminal
[Ctrl] + [Alt] + B${alignr}Browser
[Ctrl] + [Alt] + E${alignr}Gedit

]];

Offline

Board footer

Powered by FluxBB