You are not logged in.

#1251 2017-05-27 07:01:45

kleitonkk
Member
From: Brazil
Registered: 2012-04-22
Posts: 10

Re: conky configs and screenshots!

parazyd wrote:

Still a work in progress, so not pushed to git yet.

http://i.imgur.com/UstXDOUs.png

Can you post your configs?
Thanks!

Offline

#1252 2017-06-07 00:29:07

annoying_daniel
Member
Registered: 2017-04-08
Posts: 9

Re: conky configs and screenshots!

.

Last edited by annoying_daniel (2017-06-07 04:46:25)

Offline

#1253 2017-06-07 00:34:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 23,808
Website

Re: conky configs and screenshots!

You were just told not to hijack threads and now you are spamming support requests in a screenshot thread? Your days here are numbered...


Arch + dwm   •   Mercurial repos  •   Github

Registered Linux User #482438

Offline

#1254 2017-06-07 03:11:50

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,049

Re: conky configs and screenshots!

I am using conky as a panel in i3, here is the screenshot

image.jpg

Last edited by Docbroke (2017-06-07 03:12:40)


Arch is home!
i3 rofi w3m vimb ranger vim mutt mpd newsboat pass

Offline

#1255 2017-06-07 21:26:19

trytipARCH
Banned
Registered: 2017-06-05
Posts: 35

Re: conky configs and screenshots!

Zfqlzja.jpg

link to conky (in timetrek change wlp0s29f7u7 to your wifi adapter, run iwconfig to find out it's name)
i use conky19-lua-nv  1.9.0-9 from AUR. copy fonts to .fonts mainly Santana,Caviar Dreams, and D3 Euronism, put the xtrytip folder in .conky

Last edited by trytipARCH (2017-06-07 23:34:29)

Offline

#1256 2017-06-08 13:54:17

trytipARCH
Banned
Registered: 2017-06-05
Posts: 35

Re: conky configs and screenshots!

cOqnYSo.jpg

link to conky (put clocks folder in .conky)

Offline

#1257 2017-06-10 04:50:07

trytipARCH
Banned
Registered: 2017-06-05
Posts: 35

Re: conky configs and screenshots!

ZUoJTvo.jpg]

Offline

#1258 2017-06-10 23:58:27

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 39

Re: conky configs and screenshots!

this one is nice. any chance i can get a copy of it?

Offline

#1259 2017-06-11 05:07:33

trytipARCH
Banned
Registered: 2017-06-05
Posts: 35

Re: conky configs and screenshots!

@stanna i did not post a copy because this conky is very much for customized my system and probably only works halfway on others but if you wanna try and fix it for your system you're more than welcome.  beware i have been working on this for more than 2 years so there are many lines commented out and leftovers.

link to conky

Offline

#1260 2017-06-14 15:34:55

Blasphemer-linux-i3
Member
From: Czech Republik
Registered: 2017-06-14
Posts: 2

Re: conky configs and screenshots!

My conky, one line with icons but all I need right now.

oie_n0n_Vp6_NFOUms.png

Offline

#1261 2017-06-14 22:15:28

monsieurzik
Member
Registered: 2017-06-14
Posts: 2

Re: conky configs and screenshots!

Hi guys,

here are mines: a conky weather on top and a conky system at the bottom.

1497478471.png

Offline

#1262 2017-06-18 22:36:19

zaken
Member
Registered: 2017-06-16
Posts: 1

Re: conky configs and screenshots!

I patched up my conky setup with the help of good people from this thread posting their conf files.

conky.png

Offline

#1263 2017-06-25 15:12:36

popi
Member
Registered: 2017-06-25
Posts: 4

Re: conky configs and screenshots!

Hello,

My lua/conky working on arch, after some patching (see https://bbs.archlinux.org/viewtopic.php … #p1720480)

The work is available at https://gitlab.nomagic.fr/popi/conky-grapes

-- read the rules and only post thumbnails https://bbs.archlinux.org/viewtopic.php?id=61754  [jwr] --
Duly noted. Might serve others smile

SQRNeKl2Eo1k.jpg

Last edited by popi (2017-06-26 17:38:06)

Offline

#1264 2017-07-06 00:30:39

MineElectricity
Member
Registered: 2017-07-06
Posts: 1

Re: conky configs and screenshots!

Nice one @popi
I'm trying to do the same but I can't find the .conf file that I need to give to conky (I created it with the .py utility)

Thanks :3

Offline

#1265 2017-07-09 21:32:02

popi
Member
Registered: 2017-06-25
Posts: 4

Re: conky configs and screenshots!

MineElectricity wrote:

Nice one @popi
I'm trying to do the same but I can't find the .conf file that I need to give to conky (I created it with the .py utility)

The script output the command-line to be launched, and the config file for conky will always be

~/conky/conky-grapes/conky_gen.conkyrc

So no '.conf', by defaut conky would use '.conkyrc', but in our case we don't touch that and use a specific file name called with 'conky -c' option.

Please refer to the gitlab and sign in with your github account for further assistance

Offline

#1266 2017-07-10 04:07:59

stanna
Member
From: melb.au
Registered: 2017-03-24
Posts: 39

Re: conky configs and screenshots!

trytipARCH wrote:

@stanna i did not post a copy because this conky is very much for customized my system and probably only works halfway on others but if you wanna try and fix it for your system you're more than welcome.  beware i have been working on this for more than 2 years so there are many lines commented out and leftovers.

link to conky

yes very complication but might be fun to pinch some elements for my own script if you dont mind (full credit given). as soon as i find the time id like to get stuck into it. thanks for lett me see it

Offline

#1267 2017-07-27 21:45:00

surfatwork
Member
Registered: 2012-01-05
Posts: 137

Re: conky configs and screenshots!

My conky based on a script I found on deviantart (Original: http://urgo2x.deviantart.com/art/Conky-Urgo-658950463).

Updated it a bit for a 4-core CPU, and some formatting updates

Screenshot_20170727_223805.png

Last edited by surfatwork (2017-07-27 21:46:12)

Offline

#1268 2017-08-14 05:18:39

jedi
Member
From: Earth, usually...
Registered: 2014-01-07
Posts: 16
Website

Re: conky configs and screenshots!

More of the old conky-grapes.  Based on londonali's original rings lua script.  I just started reconfiguring it for 1920x1080.  Also tried my best to get rid of all the offensive "voffsets" and "offsets"!  smile

clean;
20170814a.jpg

dirty;
20170814b.jpg

.conkyrc

conky.config = {
-- Conky settings #
	background = false,
	update_interval = 1,

	cpu_avg_samples = 2,
	net_avg_samples = 2,

	override_utf8_locale = true,

	double_buffer = true,
	no_buffers = true,

	text_buffer_size = 2048,
    --imlib_cache_size = 0,

	--temperature_unit = 'celsius',

-- With class override, gets images to display properly (black bg)
    own_window_argb_visual = true, 
	own_window_argb_value = 0,

-- Window specifications #
    own_window_class = 'override',
	own_window = true,
	own_window_type = 'desktop',
	own_window_transparent = true,

-- XFCE4 - undecorate not working
	own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager,below',

	border_inner_margin = 0,
	border_outer_margin = 0,

	minimum_width = 500, 
    minimum_height = 800,
	maximum_width = 500,

	alignment = 'top_right',
	gap_x = 0,
	gap_y = 100,

-- Graphics settings #
	draw_shades = false,
	draw_outline = false,
	draw_borders = false,
	draw_graph_borders = false,

-- useless
	default_shade_color = 'red',
	default_outline_color = 'green',

-- Text settings #
	use_xft = true,
	override_utf8_locale = true,
    font = 'Play:normal:size=10',
	xftalpha = 0.9,
	uppercase = false,

-- TEXT color
	default_color = '#333333',

    color0 = '#165cc4',
    color1 = '#3A78EE',

	lua_load = '~/conky/rings-v2_gen.lua',
	lua_draw_hook_pre = 'conky_main',
};

conky.text = [[
${voffset 0}${color1}${goto 100}${freq_g cpu0} Ghz${alignr 530} ${hwmon temp 1} °C
#${voffset 16}${color1}${goto 106}${freq_g cpu0} Ghz${alignr 530}${acpitemp} °C
## CPU ###################
${voffset -0.5}${goto 120}${color1}CPU 1 ${color1}  ${cpu cpu1}%
${voffset -0.5}${goto 120}${color1}CPU 2 ${color1}  ${cpu cpu2}%
${voffset -0.5}${goto 120}${color1}CPU 3 ${color1}  ${cpu cpu3}%
${voffset -0.5}${goto 120}${color1}CPU 4 ${color1}  ${cpu cpu4}%
${voffset -0.5}${goto 120}${color1}CPU 5 ${color1}  ${cpu cpu5}%
${voffset -0.5}${goto 120}${color1}CPU 6 ${color1}  ${cpu cpu6}%
${voffset -0.5}${goto 120}${color1}CPU 7 ${color1}  ${cpu cpu7}%
${voffset -0.5}${goto 120}${color1}CPU 8 ${color1}  ${cpu cpu8}%
${goto 90}${voffset 13.0}${color1}${top name 1}${top cpu 1}%
${goto 90}${color1}${top name 2}${top cpu 2}%
${goto 90}${color1}${top name 3}${top cpu 3}%
${goto 90}${color1}${top name 4}${top cpu 4}%
${goto 90}${color1}${top name 5}${top cpu 5}%
${font Michroma:size=14}${color0}${goto 25}${voffset -10}CPU${font}${voffset 10}







### 



## FILESYSTEMS #################
${goto 5}/  ${color1}${alignr 550}${fs_used /} / ${fs_size /} ${font}${goto 255}${color1}${top_mem name 1}${alignr 40}${top_mem mem 1}%
${goto 5}/DATA ${color1}${alignr 550}${fs_used /media/DATA} / ${fs_size /media/DATA} ${goto 255}${color1}${top_mem name 2}${alignr 40}${top_mem mem 2}%
${goto 5}/home ${color1}${alignr 550}${fs_used /home} / ${fs_size /home} ${goto 255}${color1}${top_mem name 3}${alignr 40}${top_mem mem 3}%
#
${goto 280}${color1}RAM ${alignr 40}${color1}${mem} / ${color1}${memmax}

${font Michroma:size=12}${color0}${voffset -15}FS${font}${voffset 15}
${font Michroma:size=12}${color0}${goto 310} MEMORY


${font Michroma:size=18}${goto 25}${color1}${time %l}:${time %M}, ${time %P}${font}
${goto 60}${font Michroma:size=12}${color0}${time %a} ${color0}${time %x}${font}
${font}${color1}${goto 315}WiFi     ${color1}${wireless_essid wlp2s0}
${goto 335}${voffset 6}Up ${goto 400}${color1}${totalup wlp2s0} / ${color1}${upspeed wlp2s0}
${goto 335}${color1}Down${goto 400}${color1}${totaldown wlp2s0} / ${color1}${downspeed wlp2s0}
${goto 335}Local IP${goto 400}${addr wlp2s0}
${goto 335}Public IP${goto 400}${execi 3600 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}
${font Michroma:size=12}${color0}${goto 108}BATTERY${font}${font Michroma:size=12}${color0}${goto 355}NET${font} 
${font}${color0}${alignc 27}${color1}${battery_percent BAT1}% ${battery_time BAT1}${font}


${font Michroma:size=9}${color0}${execi 3600 awk -F '=' '/PRETTY_NAME/ { print $2 }' /etc/os-release | tr -d '"'}, up ${uptime}, on Kernel ${kernel}${font}
#gpu the arch way
${if_match ${exec lsmod | grep 'nvidia' -c} > 0}
${exec nvidia-smi --query-gpu=name --format=csv,noheader}
Temperature: ${exec nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits} °C
Memory: ${exec nvidia-smi --query-gpu=memory.used --format=csv,noheader} / ${exec nvidia-smi --query-gpu=memory.total --format=csv,noheader}
${else}\
OFF
${endif}\

]];

rings-v2_gen.lua

--[[
I think the rings lua script is from londonali
--]]
normal="0x165cc4"
warn="0xff7200"
crit="0xff000d"

corner_r=35
bg_colour=0x3b3b3b
bg_alpha=0.2

-- blue     | 0x165cc4
-- red      | 0xff1d2b
-- green    | 0x1dff22
-- pink     | 0xff1d9f
-- orange   | 0xff8523
-- skyblue  | 0x008cff
-- darkgray | 0x323232


settings_table = {
    {
        name='hwmon',
        arg='temp 1',
        max=110,
        bg_colour=0x3b3b3b,
        bg_alpha=0.8,
        fg_colour=0x1dff22,
        fg_alpha=0.8,
        x=195, y=184,
        radius=172,
        thickness=4,
        start_angle=0,
        end_angle=240
    },

    {
        name='cpu',
        arg='cpu1',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.7,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=195, y=184,
        radius=160,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu2',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.65,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=195, y=185,
        radius=146,
        thickness=11.5,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu3',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.6,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=195, y=186,
        radius=133,
        thickness=11.0,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu4',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.55,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=195, y=186,
        radius=120,
        thickness=10.5,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu5',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.5,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=195, y=187,
        radius=107,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu6',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.45,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=195, y=187,
        radius=92,
        thickness=12.5,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu7',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.4,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=195, y=187,
        radius=76.5,
        thickness=13,
        start_angle=0,
        end_angle=240
    },
    {
        name='cpu',
        arg='cpu8',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.35,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=195, y=187,
        radius=62,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='memperc',
        arg='',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.8,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=310, y=435,
        radius=75,
        thickness=15,
        start_angle=180,
        end_angle=420
    },
--[[    {
        name='swapperc',
        arg='',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.4,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=410, y=234,
        radius=75,
        thickness=12,
        start_angle=180,
        end_angle=420
    },
--]]
    {
        name='fs_used_perc',
        arg='/',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.8,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=95, y=450,
        radius=90,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/media/DATA',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.6,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=95, y=450,
        radius=79,
        thickness=9,
        start_angle=0,
        end_angle=240
    },
    {
        name='fs_used_perc',
        arg='/home',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.4,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=95, y=450,
        radius=69,
        thickness=8,
        start_angle=0,
        end_angle=240
    },

    {
        name='downspeedf',
        arg='wlp2s0',
        max=125000,
        bg_colour=0x3b3b3b,
        bg_alpha=0.8,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=350, y=640,
        radius=80,
        thickness=12,
        start_angle=180,
        end_angle=420
    },
    {
        name='upspeedf',
        arg='wlp2s0',
        max=125000,
        bg_colour=0x3b3b3b,
        bg_alpha=0.6,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=350, y=640,
        radius=67,
        thickness=11,
        start_angle=180,
        end_angle=420
    },
    {
        name='time',
        arg='%l',
        max=24,
        bg_colour=0x3b3b3b,
        bg_alpha=0.4,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=200, y=595,
        radius=40,
        thickness=6,
        start_angle=0,
        end_angle=240
    },
    {
        name='time',
        arg='%M',
        max=60,
        bg_colour=0x3b3b3b,
        bg_alpha=0.6,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=200, y=595,
        radius=49,
        thickness=9,
        start_angle=0,
        end_angle=240
    },
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0x3b3b3b,
        bg_alpha=0.8,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=200, y=595,
        radius=61,
        thickness=12,
        start_angle=0,
        end_angle=240
    },
    {
        name='battery_percent',
        arg='BAT1', max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.6,
        fg_colour=0x165cc4,
        fg_alpha=0.8,
        x=245, y=700,
        radius=18,
        thickness=10,
        start_angle=0,
        end_angle=240
    },
    {
        name='kernel', --just to avoid unknown viariable '$' in console
        arg='uname -r',
        max=100,
        bg_colour=0x3b3b3b,
        bg_alpha=0.6,
        fg_colour=0x165cc4,
        fg_alpha=0.6,
        x=245, y=700,
        radius=5,
        thickness=13,
        start_angle=0,
        end_angle=360
    },
}

require 'cairo'

function rgb_to_r_g_b(colour,alpha)
	return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)

	local w,h=conky_window.width,conky_window.height
	
	local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
	local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

	local angle_0=sa*(2*math.pi/360)-math.pi/2
	local angle_f=ea*(2*math.pi/360)-math.pi/2
	local t_arc=t*(angle_f-angle_0)

	-- Draw background ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
	cairo_set_line_width(cr,ring_w)
	cairo_stroke(cr)
	
	-- Draw indicator ring

	cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
	cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
	cairo_stroke(cr)		
end

function conky_ring_stats()
	local function setup_rings(cr,pt)
		local str=''
		local value=0
		
		str=string.format('${%s %s}',pt['name'],pt['arg'])
		str=conky_parse(str)
		
		value=tonumber(str)
		if value == nil then value = 0 end
		pct=value/pt['max']
		
		draw_ring(cr,pct,pt)
	end

	if conky_window==nil then return end
	local cs=cairo_xlib_surface_create(conky_window.display,conky_window.drawable,conky_window.visual, conky_window.width,conky_window.height)
	
	local cr=cairo_create(cs)	
	
	local updates=conky_parse('${updates}')
	update_num=tonumber(updates)

	if update_num>5 then
	    for i in pairs(settings_table) do
                display_temp=temp_watch()
		setup_rings(cr,settings_table[i])
	    end
	end
   cairo_surface_destroy(cs)
  cairo_destroy(cr)
end


function disk_watch()

    warn_disk=93
    crit_disk=98
   
    disk=tonumber(conky_parse("${fs_used_perc /}"))
    if disk<warn_disk then
        settings_table[12]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[12]['fg_colour']=warn
    else
        settings_table[12]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /boot}"))
    if disk<warn_disk then
        settings_table[13]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[13]['fg_colour']=warn
    else
        settings_table[13]['fg_colour']=crit
    end

    disk=tonumber(conky_parse("${fs_used_perc /home}"))
    if disk<warn_disk then
        settings_table[14]['fg_colour']=normal
    elseif disk<crit_disk then
        settings_table[14]['fg_colour']=warn
    else
        settings_table[14]['fg_colour']=crit
    end


end

function temp_watch()

    warn_value=80
    crit_value=100

    temperature=tonumber(conky_parse("${hwmon temp 1}"))

    if temperature<warn_value then
        settings_table[1]['fg_colour']=normal
    elseif temperature<crit_value then
        settings_table[1]['fg_colour']=warn
    else
        settings_table[1]['fg_colour']=crit
    end
end

-- Battery color control
function battery_watch()

    warn_value=30
    crit_value=10

    index=20
    battery=tonumber(conky_parse("${battery_percent BAT1 }"))

    if battery>warn_value then
        settings_table[index]['fg_colour']=normal
    elseif battery>crit_value then
        settings_table[index]['fg_colour']=warn
    else
        settings_table[index]['fg_colour']=crit
    end
end

-- Contrôle de l'interface active
-- choice to not probe network interface once conky is running. 
-- just call again create_conky.py to update if gateway interface has changed
--function iface_watch()
--
--    iface=conky_parse("${if_existing /proc/net/route enp1s0f2}enp1s0f2${else}wlan0${endif}")
--
--    settings_table[11]['arg']=iface
--    settings_table[12]['arg']=iface
--end

function conky_draw_bg()
    if conky_window==nil then return end
    local w=conky_window.width
    local h=conky_window.height
    local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
    cr=cairo_create(cs)
    
    cairo_move_to(cr,corner_r,0)
    cairo_line_to(cr,w-corner_r,0)
    cairo_curve_to(cr,w,0,w,0,w,corner_r)
    cairo_line_to(cr,w,h-corner_r)
    cairo_curve_to(cr,w,h,w,h,w-corner_r,h)
    cairo_line_to(cr,corner_r,h)
    cairo_curve_to(cr,0,h,0,h,0,h-corner_r)
    cairo_line_to(cr,0,corner_r)
    cairo_curve_to(cr,0,0,0,0,corner_r,0)
    cairo_close_path(cr)
    
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
    cairo_fill(cr)
end


function conky_main()
    temp_watch()
    disk_watch()
    --iface_watch()
	-- if a battery is found
    battery_watch()
    conky_ring_stats()
-- quand fond nécessaire
--    conky_draw_bg()
end

Last edited by jedi (2017-08-14 05:27:45)


My Blog | VSIDO
"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous

Offline

#1269 2017-08-14 12:31:39

drcouzelis
Member
From: Connecticut, USA
Registered: 2009-11-09
Posts: 3,834
Website

Re: conky configs and screenshots!

I found out I can use Conky in COMMAND LINE MODE! Now I can see the same conky output even when I'm using SSH! big_smile

http://i.imgur.com/4z6ShyU.png

 8:25 am
. Mon, 14 Aug 2017
SYSTEM
. CPU: 1.55GHz
.. __________ __________ ###_______ __________ __________ __________
.. __________ #_________ __________ __________ __________ __________
. RAM: 1.37GiB    ##__________________
. Uptime: 5d 13h 35m
NETWORK
. Down: 1.2KiB
. Up: 4.2KiB
FILESYSTEM
. root: 12.1GiB   ###########_________
. home: 57.6GiB   #############_______
. storage: 123GiB ###############_____
. backups: 73.3GiB################____
UPDATES
. New mail: 1
. Pacman: 0
. AUR: 0
conky.config = {
    alignment = 'top_left',
    background = false,
    cpu_avg_samples = 2,
    default_color = 'white',
    default_outline_color = 'black',
    double_buffer = true,
    draw_borders = false,
    draw_graph_borders = true,
    draw_outline = true,
    draw_shades = false,
    font = 'Sans:size=10',
    gap_x = 6,
    gap_y = 4,
    minimum_height = 5,
    minimum_width = 160,
    net_avg_samples = 2,
    no_buffers = true,
    out_to_console = true,
    out_to_ncurses = true,
    out_to_stderr = false,
    out_to_x = false,
    own_window = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    own_window_transparent = true,
    own_window_type = 'desktop',
    show_graph_range = false,
    show_graph_scale = false,
    stippled_borders = 0,
    update_interval = 1.0,
    uppercase = false,
    use_spacer = 'none',
    use_xft = true
}

conky.text = [[
${font Sans:style=bold:size=24}${time %l:%M %P}${font}
. ${time %a, %d %b %Y}
SYSTEM ${hr 2}
. CPU: ${freq_g}GHz
.. ${cpubar cpu0 1, 10} ${cpubar cpu1 1, 10} ${cpubar cpu2 1, 10} ${cpubar cpu3 1, 10} ${cpubar cpu4 1, 10} ${cpubar cpu5 1, 10}
.. ${cpubar cpu6 1, 10} ${cpubar cpu7 1, 10} ${cpubar cpu8 1, 10} ${cpubar cpu9 1, 10} ${cpubar cpu10 1, 10} ${cpubar cpu11 1, 10}
. RAM: ${mem}${goto 18}${membar 1, 20}
. Uptime: ${uptime}
NETWORK ${hr 2}
. Down: ${downspeedf enp33s0}KiB
. Up: ${upspeedf enp33s0}KiB
FILESYSTEM ${hr 2}
. root: ${fs_free /}${goto 18}${fs_bar 1, 20 /}
. home: ${fs_free /home}${goto 18}${fs_bar 1, 20 /home}
. storage: ${fs_free /storage}${goto 18}${fs_bar 1, 20 /storage}
. backups: ${fs_free /backups}${goto 18}${fs_bar 1, 20 /backups}
UPDATES ${hr 2}
. New mail: ${texeci 300 amount-gmail}
. Pacman: ${texeci 1020 amount-pacman}
. AUR: ${texeci 1380 amount-aur}
]]

Offline

#1270 2017-10-14 20:32:44

ackt1c
Member
From: Visalia, California
Registered: 2012-10-10
Posts: 219

Re: conky configs and screenshots!

Here is a compact setup I've made
https://i.imgur.com/4sQSEie.png

.conkyrc

# Conky settings #
background yes
update_interval 1
double_buffer yes
no_buffers yes
imlib_cache_size 10

# Window specifications #
gap_x 0
gap_y 0
minimum_size 210 140
maximum_width 210
alignment top_right
own_window yes
own_window_type normal
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 50
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0

# Graphics settings #
draw_shades no
default_shade_color AAAAAA
draw_outline no
default_outline_color AAAAAA
draw_borders no
draw_graph_borders no
default_graph_size 26 80
show_graph_scale no
show_graph_range no
# Text settings #
use_xft yes
xftalpha 0
xftfont Noto Mono:size=8
text_buffer_size 256
override_utf8_locale yes
# Useful shortenings #
short_units yes
pad_percents  2
top_name_width 30
# Color scheme #
default_color FFFFFF
TEXT
Cpu:${alignr 70}${cpu}%${goto 115}Ram:${alignr 0}${memperc}%
${cpugraph 10,95}${goto 115}${memgraph 10,95}
Disk:${alignr 49}${diskio}${goto 115}Used ${fs_used /}B
${diskiograph 10,95 FFFFFF FFFFFF -l}${goto 115}Free ${fs_free}B
Up ${upspeed wlp4s0}${goto 115}Down ${downspeed wlp4s0}
${upspeedgraph wlp4s0 10,95}${goto 115}${downspeedgraph wlp4s0 10,94}
$uptime, ${swapperc}% Swap, ${battery_percent BAT0}% Bat
${time %A %B %e} ${time %I:%M %p}
${execi 300 ~/.config/weather.sh "zipcode"}

weather.sh that shows current today, tomorrow, and the day after

# !/usr/bin/bash
METRIC=0 #Should be 0 or 1; 0 for F, 1 for C
if [ -z $1 ]; then
    echo "USAGE: weather.sh <locationcode>"
    exit 0;
fi

wget -q http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&locCode\=$1 -O - | awk \
'/Currently:/ {CurWeather=$0}
/[0-9] Forecast<\/title>/ {nr=NR+3}
NR==nr    {postIndx[++x]=$0}
# x>2    {exit}
END{
    split(CurWeather,tmp,"Currently: ")
    split(tmp[2],tmp1,"<")
    CurWeather=sprintf("%s",tmp1[1])
    sub(":",",",CurWeather)
    for(x in postIndx){
    split(postIndx[x],tmp,";|&")
    split(tmp[1],tmp,">")
    split(tmp[2],statement," F ") # substitute C for F if metric differs
    split(tmp[2],temp)
    forecast[++y]=sprintf("%d-%dF %-15s",temp[5],temp[2],statement[3])
    }
    printf("%s\n%s\n%s",CurWeather,forecast[1],forecast[2])
}'

Last edited by ackt1c (2017-10-14 20:33:41)

Offline

#1271 2017-11-07 21:43:20

archimboldo
Member
Registered: 2016-03-07
Posts: 43

Re: conky configs and screenshots!

Simple one
Screenshot_2017-11-07_22-41-49.png

Offline

Board footer

Powered by FluxBB