You are not logged in.

#426 2017-03-25 09:35:32

Nili
Member
From: $HOME/♫♪
Registered: 2015-09-30
Posts: 921
Website

Re: Show us your conky

conky-cli pipe to spectrwm panel. Posted previously with minimal changes.

out_to_console yes
background no
update_interval 2
total_run_times 0
use_spacer none
uppercase true
short_units yes

TEXT
Uptime: ${uptime}  │  #/
Proc: ${processes} / ${running_processes}  │  #/
Cpu: ${cpu cpu1}% ${cpu cpu2}% - ${loadavg}  │  #/
Mem: ${memperc}%  │  #/
${time %I:%M %p}  │  #/
Swap: ${swapperc}%  │  #/
Hdd: ${fs_used_perc /}%  │  #/
Vol: ${exec amixer get Master -M | grep -oE "[[:digit:]]*%"}  │  #/
${upspeed eth0} (${totalup eth0}) ↖↘ #/
${downspeed eth0} (${totaldown eth0})#/

Preview


OS: FreeBSD // CWM & Devuan // Fluxbox (lean & mean).
I only play 96kHz Hi-Res audio WAV or FLAC via DAC player.
Chuck Norris doesn't approve systemd.

Offline

#427 2017-03-26 12:11:10

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Well, I got something going. At first I wanted to create one of those neat minimal metro conky's that look so cool(EX:). But then I realized the *some* monitoring is ok. So I added in basic system stats. Oh and hey who doesn't want some weather info?

This is the result.

2017-03-26-04-57-50_scrot.th.png

It's not pretty. I suck at graphics. I originally wanted to put in one of those cool 80's suns. Like these behind the clock.

But my weather's all jacked up. And my sys stats don't line up. I'm using an outdated 1a script because I can't grok the new one. Do I want images from 2015 or 2016? I don't know. I want nice looking weather, that's all I know. (Love ya Teo. Great work on the scrips, the examples look nice).

If you guys want to help me out, that'd be cool. If not, that's cool too. I've been tinkering at it off an on for a few weeks now. I mean it mostly works, it's just no work of art.

# For commands above TEXT check:
# http://conky.sourceforge.net/config_settings.html
#
# For commands available below TEXT check:
# http://conky.sourceforge.net/variables.html

# Bunsen Labs Conky help threads
# http://crunchbang.org/forums/viewtopic.php?pid=371424#p371424

# beta tested by: Temetka
# really though just a mashup of conky's I found. Just like most others out there.
# Enjoy! :)

# pkill -xf "conky -q -c $HOME/.config/conky/BL-Default.conkyrc" &
###  Begin Window Settings  #####################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Bunsen Labs Default Conky

### 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 # Options: yes or no

### 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 50

minimum_size 300 0  ### width | height
maximum_width 400

gap_x 10    ### left | right
gap_y 25    ### up | down

alignment tr
#######################  End Window Settings  ###
###  Font Settings  #############################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont CaviarDreams:normal:size=9
#xftfont Liberation Sans:size=9

# 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  ###
###  Colour Settings  ###########################
draw_shades no #yes
default_shade_color 505055

draw_outline no # amplifies text if yes
default_outline_color 505055

default_color white
color0 811400 # Blood
color1 black
color2 white
color3 251919
color4 505055 # Grey
#######################  End Colour Settings  ###
###  Borders Section  ###########################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#######################  End Borders Section  ###
###  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 6144

# 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

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0

# 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

#   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

#################  End Miscellaneous Section  ###

TEXT
${image /home/temetka/.config/conky/images/sun-c.png -p 70,0}
${offset 110}${voffset 5}${color1}${font Kenyan Coffee:size=65}${time %H:%M}${color}${font}
${offset 65}${voffset -17}${color2}${font Shimes One PERSONAL USE:size=65}${time %A}${color}${font}
${offset 95}${color3}${font CaviarDrams:size=10}BAT Stats: ${execi 10 acpi -b | awk "{print $1}" | sed 's/\([^:]*\): \([^,]*\), \([0-9]*\)%.*/\2/'
} ${offset 5}${battery_bar 5,50} ${execi 10 (acpi -b | awk '{print +$4}')}%
${offset 95}${voffset -1}${color3}${font CaviarDrams:size=10}CPU Usage:${offset 13}${cpu}% ${cpubar 5,50}  ${acpitemp}°C${color}${font}
${offset 95}${color3}${font CaviarDrams:size=10}RAM Usage: ${mem} ${membar 5,50} ${memmax}${color}${font}
${offset 95}${color3}${font CaviarDrams:size=10}SSD Usage: ${fs_used /} ${offset 5}${fs_bar 5,50 /} ${fs_size /}${color}

################# WEATHER INFO############
# This weather info uses the 1a weather script found on the BunsenLabs forums
${execi 600 bash $HOME/1a_accuweather_conkyweather_font/1a}
${offset 85}${font ConkyWeather:size=35}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/curr_cond}${font}
${voffset -38}${offset 140}${color2}CURRENTLY  ${execpi 600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/curr_cond}°F${color}
${offset 140}${color3}${execpi 600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/curr_cond}${color}

${offset 85}${font ConkyWeather:size=35}${execi 600  sed -n '2p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}
${voffset -38}${color2}${offset 140}${execpi 600 sed -n '1p' $HOME/1a_accuweather_conkyweather_font/tod_ton}  \
${execpi 600 sed -n '4p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F / \
${execpi 600 sed -n '5p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F${color2}
${offset 140}${color3}${execpi 600 sed -n '3p' $HOME/1a_accuweather_conkyweather_font/tod_ton}${color}

${offset 85}${font ConkyWeather:size=35}${execi 600  sed -n '7p' ~/1a_accuweather_conkyweather_font/tod_ton}${font}
${voffset -38}${color2}${offset 140}${execpi 600 sed -n '6p' $HOME/1a_accuweather_conkyweather_font/tod_ton}  \
${execpi 600 sed -n '9p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F / \
${execpi 600 sed -n '10p' $HOME/1a_accuweather_conkyweather_font/tod_ton}°F${color2}
${offset 140}${color3}${execpi 600 sed -n '8p' $HOME/1a_accuweather_conkyweather_font/tod_ton}${color}

Last edited by Temetka (2017-03-26 12:28:50)


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#428 2017-03-26 12:47:56

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 8,759
Website

Re: Show us your conky

Temetka wrote:

my weather's all jacked up

Not sure what this means, sorry.

Temetka wrote:

my sys stats don't line up

Perhaps play around with the offsets then?

There are other formatting options available, search for "align" in

man conky

“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.

Forum Rules   •   How to report a problem   •   Software that rocks

Offline

#429 2017-03-26 13:12:47

hhh
Meep!
Registered: 2015-09-17
Posts: 8,722
Website

Re: Show us your conky

@HoaS, 'all jacked up' in this case means wrecked, ugly. It can also mean high on an upper, like speed or coffee, or on booze. In this video it's used both ways (she's all jacked up, then gets jacked up)...

https://www.youtube.com/watch?v=uX6M0IrJ7ck

Offline

#430 2017-03-26 13:54:06

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Head_on_a_Stick wrote:
Temetka wrote:

my weather's all jacked up

Not sure what this means, sorry.

It means it's not formatting correctly. I've used that same weather code for over a year with no problems. I don't know why the middle portion of the 3 weather items doesn't display anything.

Head_on_a_Stick wrote:
Temetka wrote:

my sys stats don't line up

Perhaps play around with the offsets then?

Yep, I hear ya. So where to put them? If we use this line as an example:

${offset 95}${color3}${font CaviarDrams:size=10}BAT Stats: ${execi 10 acpi -b | awk "{print $1}" | sed 's/\([^:]*\): \([^,]*\), \([0-9]*\)%.*/\2/'
} ${offset 5}${battery_bar 5,50} ${execi 10 (acpi -b | awk '{print +$4}')}%

Do I put the offsets before the text "BAT"? After it, but before I specify the font? I also assume I have to set offset for the start and end of the bar and what follows it. So that's 3 offsets per "line" of info I want to display, time 4 lines (BAT, CPU, RAM, SSD). I believe that conky displays things based on x,y coords and using pixels as a default unit of measurement. But the online documentation is sparse. Sometimes I put in an offset and the whole conky breaks and refuses to display anything. So I undo the change and reload the conky. But I didn't learn WHY it broke. Just that if I put an offset there it breaks. (Note: There is used as an example. Not referencing any specific part of my code).

Head_on_a_Stick wrote:

There are other formatting options available, search for "align" in

man conky

.... Of course.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#431 2017-03-27 19:09:24

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

Re: Show us your conky

Temetka wrote:

So where to put them?

conky uses a text line based, but also a pixel-based output.
so for each line of text you can tell it "goto pixel xyz, and print this text/bar" etc.
in other words, the goto comes first, then the output.

Offline

#432 2017-03-28 02:56:53

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Thanks!

So should I be using "offsset" or "goto" for horizontal line items?

From the conky vairables site:

goto	x	The next element will be printed at position 'x'.
offset	(pixels)	Move text over by N pixels. See also $voffset.

Or is this one of this instances where I would use "goto" for text only and "offset" for variables (eg: ${membar 8,75})

I'm trying to understand why we have 2 ways of managing horizontal text items and in what cases its better to which variable. Am I also worng/correct in thinking that if I "goto" and item say:

goto 45 ${battery_bar}   ---- and then have an item after it it will "push" the next line item over if it exceeds the min pixel width I specified in this example?

minimum_size 300 0  ### width | height
maximum_width 400

Whereas using the "offset" variable will not force a line wrap around to the next line?

I hope this makes sense. Thanks for all the help everyone.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#433 2017-03-28 08:39:33

damo
....moderator....
Registered: 2015-08-20
Posts: 5,253

Re: Show us your conky

^ Why don't you experiment, then you can see exactly what happens?


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#434 2017-03-28 08:42:12

unklar
Member
Registered: 2015-10-31
Posts: 949

Re: Show us your conky

Temetka wrote:

It means it's not formatting correctly. I've used that same weather code for over a year with no problems. I don't know why the middle portion of the 3 weather items doesn't display anything.

The script 1a is no longer current. There is only the 1.
Since Accuweather changed its layout in October 2016, Teo had to act.  wink
https://forums.bunsenlabs.org/viewtopic.php?id=189

Offline

#435 2017-03-28 09:16:49

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

damo wrote:

^ Why don't you experiment, then you can see exactly what happens?

Honestly? I don't have the time.

Between work and family time plus honey do jobs, I barely have time to mess with conky. Sitting down and creating an empty conky say 400x400 to see if text moves between lines based on goto or offset is not how I'd prefer to spend my time.  Nor does it provide any fun for me in the time I do have. Fun is playing around with what I can do. Fun is building new servers. Fun is not moving a line item 3 pixels to see what gets affected after it.

It's all good though. I have a conky that works. I'll just scrap this and change the colors in the other one.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#436 2017-03-28 09:17:58

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

unklar wrote:
Temetka wrote:

It means it's not formatting correctly. I've used that same weather code for over a year with no problems. I don't know why the middle portion of the 3 weather items doesn't display anything.

The script 1a is no longer current. There is only the 1.
Since Accuweather changed its layout in October 2016, Teo had to act.  wink
https://forums.bunsenlabs.org/viewtopic.php?id=189

Yep, I saw that. I couldn't get the new 1 script to work for me. It's too confusing. I'll just go to yahoo weather and look it up by hand.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#437 2017-03-28 09:39:58

damo
....moderator....
Registered: 2015-08-20
Posts: 5,253

Re: Show us your conky

^^ You could have done it in the time it took you to write those posts!!


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#438 2017-03-28 11:19:17

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Yeah, yeah, yeah. tongue

Ok here's another one. It's a LUA script for time. I know diddly about LUA nor do I want to know anything about it. That being said when it displays minutes it mostly works, well it technically works.

So 4:12 displays as Four Twelve.

Cool.

6:03 displays as Six Three.

Could someone please fix it so that for the "0" it says O. Such as 5 0 Three or Oh Three?

words = {"One ", "Two ", "Three ", "Four ", "Five ", "Six ", "Seven ", "Eight ", "Nine "}
levels = {"THOUSAND ", "MILLION ", "BILLION ", "TRILLION ", "QUADRILLION ", "QUINTILLION ", "SEXTILLION ", "SEPTILLION ", "OCTILLION ", [0] = ""}
iwords = {"Ten ", "Twenty ", "Thirty ", "Forty ", "Fifty ", "Sixty ", "Seventy ", "Eighty ", "Ninety "}
twords = {"Eleven ", "Twelve ", "Thirteen ", "Fourteen ", "Fifteen ", "Sixteen ", "Seventeen ", "Eighteen ", "Nineteen "}

function digits(n)
  local i, ret = -1
  return function()
    i, ret = i + 1, n % 10
    if n > 0 then
      n = math.floor(n / 10)
      return i, ret
    end
  end
end

level = false
function getname(pos, dig)
  level = level or pos % 3 == 0
  if(dig == 0) then return "" end
  local name = (pos % 3 == 1 and iwords[dig] or words[dig]) .. (pos % 3 == 2 and "HUNDRED " or "")
  if(level) then name, level = name .. levels[math.floor(pos / 3)], false end
  return name
end

function numberToWord(number)
    if(number == 0) then return "Zero" end
    vword = ""
    for i, v in digits(number) do
      vword = getname(i, v) .. vword
    end

    for i, v in ipairs(words) do
      vword = vword:gsub("TY " .. v, "TY-" .. v)
      vword = vword:gsub("Ten " .. v, twords[i])
    end
    return vword
end

function conky_Hour()
    return numberToWord(os.date("%I") + 0)
end

function conky_Minute()
    return numberToWord(os.date("%M") + 0)
end

function conky_Date()
    return numberToWord(os.date("%d") + 0)
end

Piccy of output. It's supposed to be one of those art deco / metro words as numbers clocks.

2017-03-28-04-17-43_scrot.th.png


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#439 2017-03-28 12:25:36

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Alright,

So maybe I got some caffeine. And maybe its 5:15 in the morning and I haven't gone to bed.

But you know what. I made a thing. A pretty cool thing IMO.

Looky.

2017-03-28-05-15-58_scrot.th.png

Conky code. I named it Zen_Circles.

#
# Written by Temetka using portions of Conky_Grey.lua by SLK
# Any code in this file is free to use, change, give away but is NOT for sale
#
background no
use_xft yes
xftfont Roboto:size=9
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
#own_window_type override # If enabled a box will appear around the conky. Useful for setting alignment of objects. Disable after testing is complete.
own_window_transparent yes
own_window_hints undecorates,skip_taskbar,skip_pager,below,sticky
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
default_color 000000

minimum_size 540 200
maximum_width 540
gap_x 25
gap_y 25
alignment top_right
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
short_units yes
text_buffer_size 2048
use_spacer none
override_utf8_locale yes

# Text settings #
use_xft yes
xftalpha 0
xftfont TheNautiGal:bold:size=10
override_utf8_locale yes

# Color scheme #
default_color white
color1 white
color2 E8E1E6
color3 F5F24C

own_window_argb_visual no
own_window_argb_value 175
# own_window_colour 000000

lua_load ~/.config/conky/LUA/Zen_Circles.lua
lua_draw_hook_post main

TEXT
${font Caviar Dreams:pixelsize=80}${offset 10}${time %H:%M}${font}
${font Adele:pixelsize=40}${offset 20}${time %m.%d.%Y}${font}

${voffset -120}${font mono:size=11}${goto 300}${color}SU MO ${color0}${time %b %Y}${color} FR SA
${goto 300}${color1}${execpi 1800 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 300}/g'}${color}${font}


${font Ubuntu:size=8}${goto 40}CPU${goto 135}RAM${goto 235}ROOT${goto 345}UP${goto 425}DOWN${font}


${font caviar dreams:size=8}
  ${cpu}% ${freq_g} ${acpitemp}°C\
${goto 101}${mem} / ${memmax}\
${goto 200}${fs_used /} / ${fs_size /}\
${goto 310}${totalup eth0} / ${upspeed wlan0}\
${goto 410}${totaldown eth0} / ${downspeed wlan0}
  Core 1 ${cpugraph cpu1 7,30 EEEEEE A8A8A8}\
${goto 100}${memgraph 6,60}\
${goto 200}${diskiograph 6,70 ffffff ffffff}\
${goto 310}${upspeedgraph wlan0 6,60}\
${goto 410}${downspeedgraph wlan0 6,60}
  Core 2 ${cpugraph cpu2 7,30 EEEEEE A8A8A8}\
${goto 200}HD I/O ${diskio}/s \
${alignr 25}WLAN IP: ${addr wlan0}
  Core 3 ${cpugraph cpu3 7,30 EEEEEE A8A8A8}
  Core 4 ${cpugraph cpu4 7,30 EEEEEE A8A8A8}
  CPU Fan: ${color5}${execi 2 cat /sys/devices/platform/thinkpad_hwmon/fan1_input}${color} RPM
${font}

Le LUA

--==============================================================================
--                                 conky_grey_2.lua
-- 
--  display : horizontal ring gauge
--
--  author  : SLK
--  version : v20121005-01
--  license : Distributed under the terms of GNU GPL version 2 or later
--
-- EDITED BY; Temetka - I only needed the OS rings. I removed the rest. 
-- Please search for the original file named in the header if you want
-- the clock and other items that were in here.
--==============================================================================


require 'cairo'
--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name='cpu',                    arg='cpu',                  max_value=100,
    x=40,                          y=180,
    graph_radius=30,
    graph_thickness=3,
    graph_start_angle=0,
    graph_unit_angle=3.59,          graph_unit_thickness=3.59,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xffffff,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFF0708,       hand_fg_alpha=0,
    txt_radius=1,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFF0708,        txt_fg_alpha=0,
    graduation_radius=1,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=1,
    graduation_fg_colour=0xffffff, graduation_fg_alpha=0,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xffffff,    caption_fg_alpha=0,
},
{
    name='memperc',                    arg='',                  max_value=100,
    x=140,                          y=180,
    graph_radius=30,
    graph_thickness=3,
    graph_start_angle=0,
    graph_unit_angle=3.59,          graph_unit_thickness=3.59,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xffffff,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFF0708,       hand_fg_alpha=0,
    txt_radius=1,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFF0708,        txt_fg_alpha=0,
    graduation_radius=1,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=1,
    graduation_fg_colour=0xffffff, graduation_fg_alpha=0,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xffffff,    caption_fg_alpha=0,
},

{
    name='fs_used_perc',                    arg='/',                  max_value=100,
    x=240,                          y=180,
    graph_radius=30,
    graph_thickness=3,
    graph_start_angle=0,
    graph_unit_angle=3.59,          graph_unit_thickness=3.59,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xffffff,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFF0708,       hand_fg_alpha=0,
    txt_radius=1,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFF0708,        txt_fg_alpha=0,
    graduation_radius=1,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=1,
    graduation_fg_colour=0xffffff, graduation_fg_alpha=0,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xffffff,    caption_fg_alpha=0,
},
{
    name='upspeedf',           arg='wlan0',                     max_value=100,
    x=340,                          y=180,
    graph_radius=30,
    graph_thickness=3,
    graph_start_angle=0,
    graph_unit_angle=3.59,          graph_unit_thickness=3.59,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xffffff,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFF0708,       hand_fg_alpha=0,
    txt_radius=1,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFF0708,        txt_fg_alpha=0,
    graduation_radius=1,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=1,
    graduation_fg_colour=0xffffff, graduation_fg_alpha=0,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xffffff,    caption_fg_alpha=0,
},
{
    name='downspeedf',           arg='wlan0',                max_value=100,
    x=440,                          y=180,
    graph_radius=30,
    graph_thickness=3,
    graph_start_angle=0,
    graph_unit_angle=3.59,          graph_unit_thickness=3.59,
    graph_bg_colour=0xffffff,      graph_bg_alpha=0.1,
    graph_fg_colour=0xffffff,      graph_fg_alpha=0.5,
    hand_fg_colour=0xFF0708,       hand_fg_alpha=0,
    txt_radius=1,
    txt_weight=0,                  txt_size=8.0,
    txt_fg_colour=0xFF0708,        txt_fg_alpha=0,
    graduation_radius=1,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=1,
    graduation_fg_colour=0xffffff, graduation_fg_alpha=0,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xffffff,    caption_fg_alpha=0,
},


}

-------------------------------------------------------------------------------
--                                                                 rgb_to_r_g_b
-- converts color in hexa to decimal
--
function rgb_to_r_g_b(colour, alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

-------------------------------------------------------------------------------
--                                                            angle_to_position
-- convert degree to rad and rotate (0 degree is top/north)
--
function angle_to_position(start_angle, current_angle)
    local pos = current_angle + start_angle
    return ( ( pos * (2 * math.pi / 360) ) - (math.pi / 2) )
end
-------------------------------------------------------------------------------
--                                                              draw_gauge_ring
-- displays gauges
--
function draw_gauge_ring(display, data, value)
    local max_value = data['max_value']
    local x, y = data['x'], data['y']
    local graph_radius = data['graph_radius']
    local graph_thickness, graph_unit_thickness = data['graph_thickness'], data['graph_unit_thickness']
    local graph_start_angle = data['graph_start_angle']
    local graph_unit_angle = data['graph_unit_angle']
    local graph_bg_colour, graph_bg_alpha = data['graph_bg_colour'], data['graph_bg_alpha']
    local graph_fg_colour, graph_fg_alpha = data['graph_fg_colour'], data['graph_fg_alpha']
    local hand_fg_colour, hand_fg_alpha = data['hand_fg_colour'], data['hand_fg_alpha']
    local graph_end_angle = (max_value * graph_unit_angle) % 360

    -- background ring
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, 0), angle_to_position(graph_start_angle, graph_end_angle))
    cairo_set_source_rgba(display, rgb_to_r_g_b(graph_bg_colour, graph_bg_alpha))
    cairo_set_line_width(display, graph_thickness)
    cairo_stroke(display)

    -- arc of value
    local val = value % (max_value + 1)
    local start_arc = 0
    local stop_arc = 0
    local i = 1
    while i <= val do
        start_arc = (graph_unit_angle * i) - graph_unit_thickness
        stop_arc = (graph_unit_angle * i)
        cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
        cairo_set_source_rgba(display, rgb_to_r_g_b(graph_fg_colour, graph_fg_alpha))
        cairo_stroke(display)
        i = i + 1
    end
    local angle = start_arc

    -- hand
    start_arc = (graph_unit_angle * val) - (graph_unit_thickness * 2)
    stop_arc = (graph_unit_angle * val)
    cairo_arc(display, x, y, graph_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
    cairo_set_source_rgba(display, rgb_to_r_g_b(hand_fg_colour, hand_fg_alpha))
    cairo_stroke(display)

    -- graduations marks
    local graduation_radius = data['graduation_radius']
    local graduation_thickness, graduation_mark_thickness = data['graduation_thickness'], data['graduation_mark_thickness']
    local graduation_unit_angle = data['graduation_unit_angle']
    local graduation_fg_colour, graduation_fg_alpha = data['graduation_fg_colour'], data['graduation_fg_alpha']
    if graduation_radius > 0 and graduation_thickness > 0 and graduation_unit_angle > 0 then
        local nb_graduation = graph_end_angle / graduation_unit_angle
        local i = 0
        while i < nb_graduation do
            cairo_set_line_width(display, graduation_thickness)
            start_arc = (graduation_unit_angle * i) - (graduation_mark_thickness / 2)
            stop_arc = (graduation_unit_angle * i) + (graduation_mark_thickness / 2)
            cairo_arc(display, x, y, graduation_radius, angle_to_position(graph_start_angle, start_arc), angle_to_position(graph_start_angle, stop_arc))
            cairo_set_source_rgba(display,rgb_to_r_g_b(graduation_fg_colour,graduation_fg_alpha))
            cairo_stroke(display)
            cairo_set_line_width(display, graph_thickness)
            i = i + 1
        end
    end

    -- text
    local txt_radius = data['txt_radius']
    local txt_weight, txt_size = data['txt_weight'], data['txt_size']
    local txt_fg_colour, txt_fg_alpha = data['txt_fg_colour'], data['txt_fg_alpha']
    local movex = txt_radius * math.cos(angle_to_position(graph_start_angle, angle))
    local movey = txt_radius * math.sin(angle_to_position(graph_start_angle, angle))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, txt_weight)
    cairo_set_font_size (display, txt_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(txt_fg_colour, txt_fg_alpha))
    cairo_move_to (display, x + movex - (txt_size / 2), y + movey + 3)
    cairo_show_text (display, value)
    cairo_stroke (display)

    -- caption
    local caption = data['caption']
    local caption_weight, caption_size = data['caption_weight'], data['caption_size']
    local caption_fg_colour, caption_fg_alpha = data['caption_fg_colour'], data['caption_fg_alpha']
    local tox = graph_radius * (math.cos((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    local toy = graph_radius * (math.sin((graph_start_angle * 2 * math.pi / 360)-(math.pi/2)))
    cairo_select_font_face (display, "ubuntu", CAIRO_FONT_SLANT_NORMAL, caption_weight);
    cairo_set_font_size (display, caption_size)
    cairo_set_source_rgba (display, rgb_to_r_g_b(caption_fg_colour, caption_fg_alpha))
    cairo_move_to (display, x + tox + 5, y + toy + 1)
    -- bad hack but not enough time !
    if graph_start_angle < 105 then
        cairo_move_to (display, x + tox - 30, y + toy + 1)
    end
    cairo_show_text (display, caption)
    cairo_stroke (display)
end

-------------------------------------------------------------------------------
--                                                               go_clock_rings
-- loads data and displays clock
--
function go_clock_rings(display)
    local function load_clock_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_clock_ring(display, data, value)
    end
    
    for i in pairs(clock_h) do
        load_clock_rings(display, clock_h[i])
    end
    for i in pairs(clock_m) do
        load_clock_rings(display, clock_m[i])
    end
    for i in pairs(clock_s) do
        load_clock_rings(display, clock_s[i])
    end
end

-------------------------------------------------------------------------------
--                                                               go_gauge_rings
-- loads data and displays gauges
--
function go_gauge_rings(display)
    local function load_gauge_rings(display, data)
        local str, value = '', 0
        str = string.format('${%s %s}',data['name'], data['arg'])
        str = conky_parse(str)
        value = tonumber(str)
        draw_gauge_ring(display, data, value)
    end
    
    for i in pairs(gauge) do
        load_gauge_rings(display, gauge[i])
    end
end

-------------------------------------------------------------------------------
--                                                                         MAIN
function conky_main()
    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 display = cairo_create(cs)
    
    local updates = conky_parse('${updates}')
    update_num = tonumber(updates)
    
    if update_num > 5 then
--        go_clock_rings(display)
        go_gauge_rings(display)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)
end
-------------------------------------------------------------------------------

What helped me was something stupid I stumbled on. This right here:

#own_window_type override # If enabled a box will appear around the conky. Useful for setting alignment of objects. Disable after testing is complete.

Using the box it drew around the conky, it was much much easier to line things up. So I've made a note of it in this conky and also in my own conky notes. It will come in handy when laying things out in the future.

Last edited by Temetka (2017-03-28 12:26:06)


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#440 2017-03-28 16:46:01

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

Re: Show us your conky

tl;dr

Temetka wrote:

So should I be using "offsset" or "goto" for horizontal line items?

simple:
one is absolute, one is relative.
looking at your scrot from a few posts up, i'd say you want absolute = goto.

Offline

#441 2017-03-28 17:28:52

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

ty


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#442 2017-03-28 21:39:06

unklar
Member
Registered: 2015-10-31
Posts: 949

Re: Show us your conky

^ Temetka   wink

2017-03-28-23-31-49_scrot.th.png

Thanks!

Offline

#443 2017-03-29 02:38:39

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

^

No problem. I'm actually planning on adding some more info for my 2 SSD's and battery charge info. You can go ahead and comment out the line for the system fan information, I don't see it displaying anything in your setup.

EDIT: I see the 4 values in your fan line. I assume you're pulling from on board motherboard sensors for that.

Last edited by Temetka (2017-03-29 10:45:41)


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#444 2017-03-29 10:37:45

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

Ok, I have taken this as far as I can go and now need professional help (Paging S11) tongue

First off - Thanks Teo for the horizontal 5 day forecast and script to make the .png's greyscale. Worked perfectly.

Seriously though. I have most things (95%) formatted how I like them. But let's take a look at the scrot.

2017-03-29-03-29-30_scrot.th.png

I'd like the weather icons and text to line up with the circle in the top section which also lines up with the text underneath the circles. Pretty much everything in a nice neat grid.

Conky code:

#
# CREDITS
# Written by Temetka using portions of Conky_Grey.lua by SLK
# Weather info is courtesy of TeoB on the BunsenLab forums
# Any code in this file is free to use, change, give away but is NOT for sale
#
background no
use_xft yes
xftfont Roboto:size=9
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
#own_window_type override # If enabled a box will appear around the conky. Useful for setting alignment of objects. Disable after testing is complete.
own_window_transparent yes
own_window_hints undecorates,skip_taskbar,skip_pager,below,sticky
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
default_color 000000

minimum_size 540 200
maximum_width 540
gap_x 25
gap_y 25
alignment top_right
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
short_units yes
text_buffer_size 2048
use_spacer none
override_utf8_locale yes

# Text settings #
use_xft yes
xftalpha 0
xftfont TheNautiGal:bold:size=10
override_utf8_locale yes

# Color scheme #
default_color white
color1 white
color2 E8E1E6
color3 F5F24C

own_window_argb_visual no
own_window_argb_value 175
# own_window_colour 000000

lua_load ~/.config/conky/LUA/Zen_Circles.lua
lua_draw_hook_post main

TEXT
${font Caviar Dreams:pixelsize=80}${offset 10}${time %H:%M}${font}
${font Adele:pixelsize=40}${offset 20}${time %m.%d.%Y}${font}

${voffset -120}${font mono:size=11}${goto 300}${color}SU MO ${color0}${time %b %Y}${color} FR SA
${goto 300}${color1}${execpi 1800 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 300}/g'}${color}${font}


${font Ubuntu:size=8}${goto 40}CPU${goto 135}RAM${goto 235}ROOT${goto 345}UP${goto 425}DOWN${font}


${font caviar dreams:size=8}
  ${cpu}% ${freq_g} ${acpitemp}°C\
${goto 101}${mem} / ${memmax}\
${goto 200}${fs_used /} / ${fs_size /}\
${goto 310}${totalup eth0} / ${upspeed wlan0}\
${goto 410}${totaldown eth0} / ${downspeed wlan0}
  Core 1 ${cpugraph cpu1 7,30 EEEEEE A8A8A8}\
${goto 100}${membar 6,60}\
${goto 200}${diskiograph 6,70 ffffff ffffff}\
${goto 310}${upspeedgraph wlan0 6,60}\
${goto 410}${downspeedgraph wlan0 6,60}
  Core 2 ${cpugraph cpu2 7,30 EEEEEE A8A8A8}\
${goto 200}HD I/O ${diskio}/s \
${alignr 25}WLAN IP: ${addr wlan0}
  Core 3 ${cpugraph cpu3 7,30 EEEEEE A8A8A8} \
 ${alignr 25}ETH0 IP: ${addr eth0}
  Core 4 ${cpugraph cpu4 7,30 EEEEEE A8A8A8} \
  ${goto 200}Windows 10
  CPU Fan: ${color5}${execi 2 cat /sys/devices/platform/thinkpad_hwmon/fan1_input}${color} RPM \
  ${goto 200}${fs_used /media/Windows10} / ${fs_size /media/Windows10} \
  ${goto 335} Power Status: ${battery BAT0}
${font}


########## WEATHER SECTION 5 DAY FORECAST ##############

${texeci 500 bash $HOME/1_accuweather/1_accuweather -f2015}

${voffset -70}${goto 10}${font Caviar Dreams:size=10}${color white}${execpi 600 sed -n '1p' $HOME/1_accuweather/first_days}${goto 115}${execpi 600 sed -n '6p' $HOME/1_accuweather/first_days}${goto 240}${execpi 600 sed -n '11p' $HOME/1_accuweather/first_days}${goto 365}${execpi 600 sed -n '16p' $HOME/1_accuweather/first_days}${goto 490}${execpi 600 sed -n '21p' $HOME/1_accuweather/first_days}$color$font${image $HOME/1_accuweather/forecast_2015_grey/forecast_1.png -p -10,345 -s 90x54}${image $HOME/1_accuweather/forecast_2015_grey/forecast_2.png -p 100,345 -s 90x54}${image $HOME/1_accuweather/forecast_2015_grey/forecast_3.png -p 220,345 -s 90x54}${image $HOME/1_accuweather/forecast_2015_grey/forecast_4.png -p 340,345 -s 90x54}${image $HOME/1_accuweather/forecast_2015_grey/forecast_5.png -p 460,345 -s 90x54}

${goto 70}${font Caviar Dreams size:size=10}${execpi 600 sed -n '3p' $HOME/1_accuweather/first_days}°${goto 180}${execpi 600 sed -n '8p' $HOME/1_accuweather/first_days}°${goto 300}${execpi 600 sed -n '13p' $HOME/1_accuweather/first_days}°${goto 420}${execpi 600 sed -n '18p' $HOME/1_accuweather/first_days}°${goto 540}${execpi 600 sed -n '23p' $HOME/1_accuweather/first_days}°
${goto 70}/${execpi 600 sed -n '4p' $HOME/1_accuweather/first_days}°${goto 180}/${execpi 600 sed -n '9p' $HOME/1_accuweather/first_days}°${goto 300}/${execpi 600 sed -n '14p' $HOME/1_accuweather/first_days}°${goto 420}/${execpi 600 sed -n '19p' $HOME/1_accuweather/first_days}°${goto 540}/${execpi 600 sed -n '24p' $HOME/1_accuweather/first_days}°

${font Caviar Dreanms:size=8}${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 375}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c1-20}${goto 495}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c1-20}
${execpi 600 sed -n '5p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 135}${execpi 600 sed -n '10p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 255}${execpi 600 sed -n '15p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 375}${execpi 600 sed -n '20p' $HOME/1_accuweather/first_days|cut -c21-40}${goto 495}${execpi 600 sed -n '25p' $HOME/1_accuweather/first_days|cut -c21-40}$font

Thanks all for the help and guidance, I've learned a lot. I have tinkered with it and identified where some alignment comes into play in the weather section (EX: ${image $HOME/1_accuweather/forecast_2015_grey/forecast_4.png -p 340,345 -s 90x54}). Those aren't Teo's original values, I adjusted them to get MOST of the info to fit. But the fine tuning of getting day title, icon, side text and underneath text to line up while also lining up with the circles and text info above is beyond my skills at this point in time.

Also a question:

I have specified "draw_borders no" and yet the membar still has a border aroound. Why is this happening?

Last edited by Temetka (2017-03-29 10:47:53)


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#445 2017-03-29 16:58:04

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,666

Re: Show us your conky

Temetka wrote:

Well, I got something going. At first I wanted to create one of those neat minimal metro conky's that look so cool(EX:). But then I realized the *some* monitoring is ok. So I added in basic system stats. Oh and hey who doesn't want some weather info?

This is the result.

https://cdn.scrot.moe/images/2017/03/26/2017-03-26-04-57-50_scrot.th.png

Not so bad I "JUST" got back after a "move" and a few weeks without internet.
I'll look at this today.  big_smile

Should be a simple fix

jacked-up (1)


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#446 2017-03-29 19:13:30

unklar
Member
Registered: 2015-10-31
Posts: 949

Re: Show us your conky

Temetka wrote:

You can go ahead and comment out the line for the system fan information, I don't see it displaying anything in your setup.
EDIT: I see the 4 values in your fan line. I assume you're pulling from on board motherboard sensors for that.

Here is my code:

# pkill -xf "conky -c /home/$PATH/conkyrc " &  etc.
# Conky_Grey.lua by SLK "horizontal-ring-gauge"
# beautiful calendar by Sector11
# works 28-03-2017 by unklar nach einer Idee von @Temetka

background yes
use_xft yes
xftfont Roboto:size=9
xftalpha 0.8
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorates,skip_taskbar,skip_pager,below   #,sticky
own_window_argb_visual yes
own_window_argb_value 140
# own_window_colour 000000
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_inner_margin 0
border_outer_margin 0
default_color 000000

minimum_size 540 300
maximum_width 540
gap_x 25
gap_y 45
alignment ml
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
short_units yes
text_buffer_size 2048
use_spacer none
override_utf8_locale yes

#---Text settings---#
use_xft yes
xftalpha 0
xftfont TheNautiGal:bold:size=10
override_utf8_locale yes

#---Color scheme---#
default_color white
color0 00ffff #cain  #b22222#red
color1 white
color2 E8E1E6
color3 F5F24C

#---LUA---#
lua_load ~/TEST/grey2.lua
lua_draw_hook_post main
lua_load ~/LUA/draw-bg.lua

#${alignc}${execpi 86400 /home/unklar/S11/TEST/cal.py}\


TEXT
${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
${font monofur:size=11}${alignc}${color3}${time %T}
 ${time %b %Y}${alignr 15}Woche ${time %V}${color}
${alignc}${if_match ${time %u}==1}${color0}Mo${color1} Di Mi Do Fr Sa So ${else}\
${if_match ${time %u}==2}${color1}Mo ${color0}Di${color1} Mi Do Fr Sa So${else}\
${if_match ${time %u}==3}${color1}Mo Di ${color0}Mi${color1} Do Fr Sa So${else}\
${if_match ${time %u}==4}${color1}Mo Di Mi ${color0}Do${color1} Fr Sa So${else}\
${if_match ${time %u}==5}${color1}Mo Di Mi Do ${color0}Fr${color1} Sa So${else}\
${if_match ${time %u}==6}${color1}Mo Di Mi Do Fr ${color0}Sa${color1} So${else}\
${if_match ${time %u}==7}${color1}Mo Di Mi Do Fr Sa ${color0}So${color1}${else}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${alignc}  ${color1}${execpi 1800 LAR=`date +%-d`; ncal -bhM | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${alignc}  /g'}${color}

${font Ubuntu:size=8}${goto 30}CPU${goto 125}RAM${goto 222}ROOT${goto 335}UP${goto 425}DOWN${font}


${font caviar dreams:size=8}
  ${cpu}% ${freq_g} ${hwmon 1 temp 2}°C\
${goto 101}${mem} / ${memmax}\
${goto 200}${fs_used /} / ${fs_size /}\
${goto 310}${totalup enp2s0} / ${upspeed enp2s0}\
${goto 410}${totaldown enp2s0} / ${downspeed enp2s0}
  Core 1 ${cpugraph cpu1 7,30 EEEEEE A8A8A8}\
${goto 100}${memgraph 6,60}\
${goto 200}${diskiograph 6,70 ffffff ffffff}\
${goto 310}${upspeedgraph enp2s0 6,60}\
${goto 410}${downspeedgraph enp2s0 6,60}
  Core 2 ${cpugraph cpu2 7,30 EEEEEE A8A8A8}\
${goto 200}HD I/O ${diskio}/s \
${alignr 25}LAN ${addr enp2s0}
  Core 3 ${cpugraph cpu3 7,30 EEEEEE A8A8A8}
  Core 4 ${cpugraph cpu4 7,30 EEEEEE A8A8A8}
  Fan ${alignc}${color3}${hwmon 1 fan 1}${color1} | ${color3}${hwmon 1 fan 2}${color1} | ${color3}${hwmon 1 fan 3}${color1} | ${color3} ${hwmon 1 fan 4}
 

Fan is determined with

ls -l /sys/class/hwmon/

A good idea is the 5 day weather down. I personally do not like the gray weather pictures. I will try with the conkyweather pictures.  wink

Offline

#447 2017-03-29 19:19:14

unklar
Member
Registered: 2015-10-31
Posts: 949

Re: Show us your conky

Temetka wrote:

I have specified "draw_borders no" and yet the membar still has a border aroound. Why is this happening?

...
${goto 100}${membar 6,60}\
...

  lol

Offline

#448 2017-03-29 19:37:42

Temetka
Member
From: Sol System, Western Spiral Arm
Registered: 2015-10-14
Posts: 545

Re: Show us your conky

unklar wrote:
Temetka wrote:

I have specified "draw_borders no" and yet the membar still has a border aroound. Why is this happening?

...
${goto 100}${membar 6,60}\
...

  lol

? I feel like I'm missing something obvious here.


The meaning of life is to just be alive. It is so plain and so obvious
    and so simple. And yet everybody rushes aroound in a great panic
             as if it were necessary to achieve something beyond themselves.
                                                                                                             - Alan Watts

Offline

#449 2017-03-29 20:15:50

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,666

Re: Show us your conky

Temetka wrote:

? I feel like I'm missing something obvious here.

Hi Temetka ....

draw_borders no # draw_borders 	Draw borders around text? 

means draw borders around the entire conky.

2017-03-29_165821_Scrot11.th.png

BARS; ie all conky native 'bar' commands below TEXT have 'borders' - always, sorry.

Graphs are different, those have a switch used above TEXT:

draw_graph_borders 	Draw borders around graphs?

conky v10: true/false or conky v9 yes/no or true/false


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#450 2017-03-29 20:17:30

damo
....moderator....
Registered: 2015-08-20
Posts: 5,253

Re: Show us your conky

---Deleted by damo, as useless information  ops

Last edited by damo (2017-03-29 20:18:42)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

Board footer

Powered by FluxBB