SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#8201 2015-03-01 18:38:01

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

schwim wrote:

Quick question, folks.

Can I tell conky to slow refresh rate on just one part of the display or do I need to use a second instance of conky to do this?  In my conky setup, I would like the top processes and memory to be a 5 second refresh and not the 1 second refresh of everything above it.

You can use the execpi command :

conky setting wrote:

execpi    interval command    Same as execp but with specific interval. Interval can't be less than update_interval in configuration. Note that the output from the $execpi command is still parsed and evaluated at every interval.

Offline

Help fund CrunchBang, donate to the project!

#8202 2015-03-01 18:47:46

schwim
#! Die Hard
From: Interweb's #1 Devotee
Registered: 2012-10-11
Posts: 1,031
Website

Re: Conky v1.9 Thread

How do I use it in my particular setup?  I've tried placing execpi 600 (time just for testing), but no matter where I place it, it's breaking that line.

${font Denk One:bold:size=10}Top Processes ${hr 2}

CPU:
${top name 1} $alignr ${top cpu 1}
${top name 2} $alignr ${top cpu 2}
${top name 3} $alignr ${top cpu 3}
${top name 4} $alignr ${top cpu 4}
${top name 5} $alignr ${top cpu 5}

Memory:
${top_mem name 1} $alignr ${top_mem mem 1}
${top_mem name 2} $alignr ${top_mem mem 2}
${top_mem name 3} $alignr ${top_mem mem 3}
${top_mem name 4} $alignr ${top_mem mem 4}
${top_mem name 5} $alignr ${top_mem mem 5}

Offline

#8203 2015-03-01 19:19:34

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

Sorry, I have not read your request.
You should use execpi command with a shell command, not with conky command.

Offline

#8204 2015-03-01 19:21:14

schwim
#! Die Hard
From: Interweb's #1 Devotee
Registered: 2012-10-11
Posts: 1,031
Website

Re: Conky v1.9 Thread

That's what I had taken from the reading I had done.

So does that mean I need a second conky to make this happen?  Or is there some way to throw that stuff into a file somehow so I can use execpi?

Offline

#8205 2015-03-01 19:29:00

chepioq
#! Member
Registered: 2013-01-09
Posts: 79

Re: Conky v1.9 Thread

I think that the most easy is make a second conky,

Offline

#8206 2015-03-01 19:35:17

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

schwim wrote:

Quick question, folks.

Can I tell conky to slow refresh rate on just one part of the display or do I need to use a second instance of conky to do this?  In my conky setup, I would like the top processes and memory to be a 5 second refresh and not the 1 second refresh of everything above it.

Quick answer: two conkys. - in this case.

With commands that call in bash scripts or other bash/python commands where you need to use execi or execpi - if you want to parse the output - you can set the interval to what you want as long as it's NOT shorter than the update_interval.

BUT the ${top_} commands are native conky commands and as such do not take "exec" type commands.

So split your conky in two and put them inside a border to see the limits clearly:

###  Borders Section  ########################################################
draw_borders yes
# 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 Secton  ###

butt the processes conky, with an "update_interval of 5" up to the bottom of your top conky and then turn the boarders off.
Example:2015_03_01_16_22_35_234x431_Sector11.jpg

EDIT:  OH how I hate being called away from the computer and being slow ...  sad

Last edited by Sector11 (2015-03-01 19:36:43)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8207 2015-03-01 19:52:03

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

schwim wrote:

That's what I had taken from the reading I had done.

So does that mean I need a second conky to make this happen?  Or is there some way to throw that stuff into a file somehow so I can use execpi?

There is nothing in your conky that requires an execi command now ... therefore it's a very light conky - splitting it into two conkys isn't going to increase your CPU usage by much.  I run 9 conkys during the day - 13 at boot up - and with nothing else running my CPU average is between 3-5%.

Right now I have 4 tabs open in iceweasel, 3 tabs in medit and claws-mail open, as well as the 2 test conkys you see up there.

and my system conky is telling us: CPU Average = 4% --> 2015_03_01_16_51_03_58x878_Sector11.jpg


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8208 2015-03-01 23:22:10

arclance
#! Die Hard
Registered: 2012-03-29
Posts: 987

Re: Conky v1.9 Thread

@schwim
Trying to use a slower display rate for things like ${cpu} and ${mem} won't get you any performance improvements if that is why you wanted to do it.
This is because even if you are not displaying them once you have called them the first time conky will still collect the data every update so there won't be a delay if you call it again.
Running a second conky at a slower update interval probably would use more resources since you would be running two conkys.
Running a second blank conky window would probably use more resources than you would gain from updating the part you want at a slower interval.


If you only want to see the current value for them update every five seconds you could do it with a Lua script but I don't think it is worth the time it would take to write that script.
As Sector11 said conky is not very resource intensive so if this is not about finding a performance improvement running a second conky is nothing to worry about.

Offline

#8209 2015-03-01 23:41:25

schwim
#! Die Hard
From: Interweb's #1 Devotee
Registered: 2012-10-11
Posts: 1,031
Website

Re: Conky v1.9 Thread

arclance wrote:

@schwim
Trying to use a slower display rate for things like ${cpu} and ${mem} won't get you any performance improvements if that is why you wanted to do it.

No, it's just shifting too fast for me to easily track the processes and 10 lines blinking at 1 second intervals just looks spastic to me.

I will set up a second conky and appreciate everyone's help in the matter!

Offline

#8210 2015-03-02 01:58:10

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Conky v1.9 Thread

OK, someone needs to be the heretic.  I'll do it! ]:D

@schwim:  I assume you've tried the 5 second update interval in a single Conky and didn't like the way it slowed down everything above your top processes?

Offline

#8211 2015-03-02 02:05:11

schwim
#! Die Hard
From: Interweb's #1 Devotee
Registered: 2012-10-11
Posts: 1,031
Website

Re: Conky v1.9 Thread

Haha, I know this is going to sound ridiculously particular, but the processor and network graphs seem to be more graph-y at a second interval smile

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

Offline

#8212 2015-03-02 04:54:26

kbmonkey
#! Die Hard
From: South Africa
Registered: 2011-01-14
Posts: 879
Website

Re: Conky v1.9 Thread

@schwim, you can try this to use the system ps command:

${execpi 600 ps --sort=-pcpu -A -o "pcpu,cmd" | head -n6}

that's a roughly crafted command, you may want to tweak it to your liking. add "--no-headers" for example.
Edit: added a missing $ tongue

Last edited by kbmonkey (2015-03-02 04:56:29)

Offline

#8213 2015-03-02 13:29:55

PackRat
#! Die Hard
From: USA
Registered: 2011-03-03
Posts: 1,572

Re: Conky v1.9 Thread

^ that's some good information - gets pat the 10 process limit of the internal conky variable.


"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe

Offline

#8214 2015-03-03 17:13:28

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Anyone running " inxi " want a one liner current conditions weather conky?
2015_03_03_13_24_18_1920x1080_Sector11.jpg

TEXT
${alignc}${execi 900 inxi -wxxx | egrep -i -e conditions | cut -c 24-} ${execi 900 inxi -wxxx | egrep -i -e pressure | cut -c 12-40}

Travel from Paris  to Copenhagen with your laptop and it's still "weather - where you are".

@ dame - did I ever tell you my favourite colour is blue?


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8215 2015-03-04 13:03:51

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

schwim asked for it ...here it is.

My default ~/.conkyrc as is - no edits -> 2015_03_04_10_03_22_214x882_Sector11.jpg

# conky -c ~/.conkyrc &
# pkill -xf "conky -c $HOME/.conkyrc" &
## middle right - white text

###  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 My 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 200 0  # w|h
maximum_width 200

gap_x 10		### left &right
gap_y 10		### up & down

alignment tr
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Monofur:bold:size=12
#xftfont Monofur:size=12
xftfont Monofur:bold:size=10

# 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
default_shade_color black

draw_outline no # amplifies text if yes
default_outline_color black

default_color DCDCDC # Gainsboro
color0 B0E0E6 # PowderBlue
#color1 778899 # LightSlateGray
color1 C0C0C0 #192 192 192 Silver
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 Color 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 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 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  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
#TEXT
# ${lua conky_draw_bg 125 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 0 0 0 0 0 0x000000 0.2
#lua_draw_hook_post draw_bg 20 0 0 0 0 0x000000 0.2
#
# TEXT
# ${lua conky_draw_bg 20 0 0 0 0 0x000000 0.2}
##
#
############### V9000 ########################################################
#starts the lua weather data gathering function, call once at top of conkyrc
#lua_load ~/v9000/v9000.lua
#lua_draw_hook_post weather
#lua_load /media/5/Conky/templates/cF-2013.template.lua
#######################################################  End LUA Settings  ###

#   BsAs, ARG: ${execi 3600 accuweather.sh "SAM|AR|AR007|BUENOSAIRES"}
#   BsAs, ARG: ${execi 3600 accw_bsas}
# Toronto, ON: ${execi 3600 accw_tor}
#Some do not work
#  London, ON:			${execi 3600 accuweather.sh "NAM|CA|ON|LONDON"}  NO :(
#  Barrie, CA:			${execi 3600 accuweather.sh "NAM|CA|ON|BARRIE"}
#  Calgary, CA:		${execi 3600 accuweather.sh "NAM|CA|AB|CALGARY"}
#  Halifax, CA:		${execi 3600 accuweather.sh "NAM|CA|NS|HALIFAX"}
#  Kingston, CA:		${execi 3600 accuweather.sh "NAM|CA|ON|KINGSTON"}
#  Montreal, CA:		${execi 3600 accuweather.sh "NAM|CA|QC|MONTRÉAL"}
#  Oakville, CA:		${execi 3600 accuweather.sh "NAM|CA|ON|OAKVILLE"}
#  Ottawa, CA:			${execi 3600 accuweather.sh "NAM|CA|ON|OTTAWA"}
#  Regina, CA:			${execi 3600 accuweather.sh "NAM|CA|SK|REGINA"}
#  Saskatoon, CA:		${execi 3600 accuweather.sh "NAM|CA|SK|SASKATOON"}
#  Toronto, CA:		${execi 3600 accuweather.sh "NAM|CA|ON|TORONTO"}
#  Vancouver, CA:		${execi 3600 accuweather.sh "NAM|CA|BC|VANCOUVER"}
#  Victoria, CA:		${execi 3600 accuweather.sh "NAM|CA|BC|VICTORIA"}
#  Winnipeg, CA:		${execi 3600 accuweather.sh "NAM|CA|MB|WINNIPEG"}

update_interval 1

TEXT
${alignc}${execpi 3600 accw_bsas}
${alignc}${time %d/%m/%y}
#${image /media/5/Conky/images/CB_Logo_dalaio_glass_blue_2.png -p 50,30 -s 100x100}
#${image /media/5/Conky/images/BunsenLabs_Dark.png -p 50,30 -s 100x100}
${image /media/5/Conky/images/BunsenLabs_Light.png -p 50,30 -s 100x100}





${time %T}${alignr 5}${uptime_short}
${alignc}${kernel}
${membar 0}
         %${goto 120}Used${alignr 5}Total
 Root    ${fs_used_perc /}${goto 120}${fs_used /}${alignr 5}${fs_size /}
 Home    ${fs_used_perc /home}${goto 120}${fs_used /home}${alignr 5}${fs_size /home}
  M/5    ${fs_used_perc /media/5}${goto 120}${fs_used /media/5}${alignr 5}${fs_size /media/5}

  RAM    ${memperc}${goto 120}${mem}${alignr 5}${memmax}

 CPU % in use ${alignr 5}Avg ${if_match ${cpu cpu0}<10}${color1}00${color}${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}${color1}0${color}${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}
${alignc}1 ${if_match ${cpu cpu1}<10}${color1}00${color}${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100}${color1}0${color}${cpu cpu1}\
${else}$color9}${cpu cpu1}${endif}${endif}${color}\
  2 ${if_match ${cpu cpu2}<10}${color1}00${color}${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100}${color1}0${color}${cpu cpu2}\
${else}$color9}${cpu cpu2}${endif}${endif}${color}\
  3 ${if_match ${cpu cpu3}<10}${color1}00${color}${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100}${color1}0${color}${cpu cpu3}\
${else}$color9}${cpu cpu3}${endif}${endif}${color}

${alignc}${membar 0,25} Sensors ${membar 0,25}
 CPU ${platform f71882fg.2560 temp 1}°${alignr 10} MB ${platform f71882fg.2560 temp 2}°
 HDD ${hddtemp /dev/sda}°${alignr 10} GPU ${nvidia temp}°
${alignc}Fan ${platform f71882fg.2560 fan 1} RPM
${alignc}GPU ${nvidia gpufreq}  MEM ${nvidia memfreq} MHz

${alignc}${membar 0,25} Disk  Stats ${membar 0,25}
 R${goto 30}${diskiograph_read /dev/sda 12,130 00ffff ff0000 5 -lt}${alignr 5}${diskio_read /dev/sda}
 W${goto 30}${diskiograph_write /dev/sda 12,130 ff0000 00ffff 5 -lt}${alignr 5}${diskio_write /dev/sda}

${alignc}${membar 0,25} Net Stats ${membar 0,25}
 tx ↑ ${upspeed eth0}${alignr 10} ${downspeed eth0} ↓ rx

 Dn${goto 30}${downspeedgraph eth0 12,130 00ffff ff0000 5 -lt}${alignr 5}${downspeedf eth0}
 Up${goto 30}${upspeedgraph eth0 12,130 ff0000 00ffff 5 -lt}${alignr 5}${upspeedf eth0}

${alignc}S H O R T C U T    K E Y S
${hr}
[A] + F2${alignr}Run Dialog
[A] + F3${alignr}Alt Menu

[s] + Space${alignr}OpenBox
[s] + Tab${alignr}Client Menu

[s] + a${alignr}Addresses
[s] + c${alignr}ClawsMail
[s] + d${alignr}Desktop
[s] + e${alignr}Editor
[s] + f${alignr}Thunar
[s] + h${alignr}htops
[s] + m${alignr}Media Player
[s] + q${alignr}QasMixer
[s] + r${alignr}Ranger
[s] + t${alignr}Terminator
[s] + w${alignr}Web Browser

[C] + [A] + l${alignr}Logout
[C] + [A] + r${alignr}Reboot
[C] + [A] + s${alignr}Shutdown

PrtSc${alignr}Screenshot

The image direct link at the top.  Not quality but I like it.  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8216 2015-03-04 22:49:44

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Thinking about that inxi one line weather up there two posts up and the "generic" one-liner for BunsenLabs I thought I'd make a two liner...

A personalized one liner for my machine and the inxi one line weather code under it.

NOTE:  Use a mono font!

First comes the original generic code good for any machine (I think).
Then a hard coded line with max values for spacing.
2015_03_04_17_15_17_1920x1080_Sector11.jpg
And under that, the third line with ${goto}'s to set the spacing equal to the second line complete with working commands

After all that I realized I missed the temperatures so I added those and went through the spacing routine again.
2015_03_04_17_40_14_1920x1080_Sector11.jpg

Once the spacing was done I added the inxi weather under it to make the second line.
2015_03_04_17_52_17_1920x1080_Sector11.jpg

And removed the borders for the finished product.
2015_03_04_17_53_16_1920x1080_Sector11.jpg


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8217 2015-03-07 23:28:50

TadaSupotsu
New Member
Registered: 2015-03-07
Posts: 8

Re: Conky v1.9 Thread

my conky
original.jpg
Using conky-manager-gui from the Ubuntu PPA's
- not recommended for Debian

    background no
    use_xft yes
    xftfont HandelGotD:size=8
    xftalpha 0.5
    update_interval 4.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 200 5
    maximum_width 220
    draw_shades no
    draw_outline no
    draw_borders no
    draw_graph_borders no
    default_color blue
    default_shade_color black
    default_outline_color black
    alignment top_right
    gap_x 10
    gap_y 40
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
        TEXT
    Uptime $alignr $uptime
    eth0 $alignr ${addr eth0}
    wlan0 $alignr ${addr wlan0}
    Inbound $alignr ${downspeed wlan0} kb/s 
    ${downspeedgraph wlan0}
    Outbound $alignr ${upspeed wlan0} kb/s
    ${upspeedgraph wlan0}
    $processes processes ($running_processes running)
    CPU $alignr ${cpu cpu0}%${color dark green}
    ${cpubar cpu0}${color blue}
    MEM $alignc $mem / $memmax $alignr $memperc%${color dark green}
    $membar${color blue}
    HDD $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%${color dark green}
    ${fs_bar /}${color blue}
    SWAP $alignc $swap / $swapmax $alignr $swapperc%${color dark green}
    ${swapbar}${color blue}
   
    ${font Trebuchet MS:size=8}$BATTERY ${font}${color dark red}
    ${battery_bar 4,0}
    ${alignc 30}${color red}//////${color blue}/////////////${color dark green}//////////////////////////////// 
    ${color blue}             ${font Arial Black:size=20}${time %H:%M}${font}
    
     
    ${alignc } ${time %A %d.%m.%y}
      
    Name $alignr PID    CPU
    ${top name 1} $alignr ${top pid 1} ${top cpu 1}
    ${top name 2} $alignr ${top pid 2} ${top cpu 2}
    ${top name 3} $alignr ${top kpid 3} ${top cpu 3}
    ${top name 4} $alignr ${top pid 4} ${top cpu 4}
    
    
    
        
     ${font Trebuchet MS:size=10}
     Look at You,
     Hacker:
     Pathetic creature of meat and bone
     Panting and sweating 
     As you run through my corridors.
   
     How can you challenge a, 
     Perfect,
     Immortal Machine?

=== mod edit ===
Combined four post in Archive thread and brough them here.

Also --- 

Please use thumbnails

- To help those of us with slow connections and the CrunchBang server bandwidth.  Most image hosting sites will automatically generate thumbnail codes for you.

Of course use whatever service you wish, but please, get a thumbnail and use that or it will be changed by a moderator.

Avoid the large thumbnail www.imgur.com code, use the "medium" link thumbnail.  An example of the code:

[url=http://imgur.com/your_image_code][img]http://i.imgur.com/your_image_codem.jpg[/img][/url]

Notice the m in your_image_codem.jpg in the IMG code block

Users have been using www.postimage.org lately which does a nice job and is Multi-lingual as well.  Upload your image to the site and grab the Thumbnail for Forums (1) code.

Here is a generic piece of code if you need to create your own thumbnail:

[url=http://link.to.your.fullsized.image][img]http://link.to.your.thumbnail.image[/img][/url]

Please use the Report button to let moderators know of images that are too large. Thank you!

Last edited by Sector11 (2015-03-07 23:51:32)

Offline

#8218 2015-03-08 10:19:24

TadaSupotsu
New Member
Registered: 2015-03-07
Posts: 8

Re: Conky v1.9 Thread

red conky

    background no
    use_xft yes
    xftfont HandelGotD:size=8
    xftalpha 0.5
    update_interval 4.0
    total_run_times 0
    own_window yes
    own_window_type normal
    own_window_transparent yes
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    double_buffer yes
    minimum_size 200 
    maximum_width 200
    draw_shades no
    draw_outline no
    draw_borders no 
    draw_graph_borders no
    default_color #975757 
    default_shade_color black
    default_outline_color black
    alignment top_left
    gap_x 10
    gap_y 20
    no_buffers yes
    uppercase no
    cpu_avg_samples 2
    override_utf8_locale no
        TEXT
    ${color #FF0000}    
    Uptime $alignr $uptime 
    ${color #975757}
    eth0 $alignr ${addr eth0} 
    wlan0 $alignr ${addr wlan0} 
    
    Inbound $alignr ${downspeed wlan0} kb/s ${color #FF0000}
    ${downspeedgraph wlan0}${color #975757}
    Outbound $alignr ${upspeed wlan0} kb/s ${color red}
    ${upspeedgraph wlan0} ${color #975757}
    $processes processes ($running_processes running)${color #FF0000}
    Temp: ${alignr}${acpitemp}'C ${color #975757}
    CPU $alignr ${cpu cpu0}% ${color #FF0000}
    ${cpubar cpu0}${color #975757}
    MEM $alignc $mem / $memmax $alignr $memperc%${color #FF0000}
    $membar ${color #975757}
    
    HDD $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%${color #FF0000}
    ${fs_bar /}${color #975757}
    SWAP $alignc $swap / $swapmax $alignr $swapperc% ${color #FF0000}
    ${swapbar}${color #FF2400}
    ${font Trebuchet MS:size=10}
    Look at You,${color #975757}
     Hacker: ${color #FF0000}
    Pathetic creature of meat and bone
    Panting and sweating 
    As you run through my corridors.
    How can you challenge a, ${color #975757}
     Perfect,${color #FF0000}
    Immortal Machine ? ${color #975757}
    
    ${font Trebuchet MS:size=12}$BATTERY ${font} ${color #FF0000}
    ${battery_bar 8,0}
    ${alignc 30} ${color #975757}
                             ${font Arial Black:size=20}${time %H:%M}${font}
    
          ${alignc }${time %A %d.%m.%y} ${color #FF0000}
      
    Name $alignr PID    CPU
    ${color #975757}
    ${top name 1} $alignr ${top pid 1} ${top cpu 1}
    ${top name 2} $alignr ${top pid 2} ${top cpu 2}
    ${top name 3} $alignr ${top pid 3} ${top cpu 3}
    ${top name 4} $alignr ${top pid 4} ${top cpu 4}
    ${top name 5} $alignr ${top pid 5} ${top cpu 5}
    ${top name 6} $alignr ${top pid 6} ${top cpu 6}
    
    

red conky 2

Last edited by TadaSupotsu (2015-03-08 10:21:22)

Offline

#8219 2015-03-12 01:34:03

schwim
#! Die Hard
From: Interweb's #1 Devotee
Registered: 2012-10-11
Posts: 1,031
Website

Re: Conky v1.9 Thread

Heya folks,

I'm trying to learn about the speedometer graphs for the cpu, but I'm having absolutely no luck finding usable info on it although I've seen enough images to rub my nose in it..  I imagine I'm searching for the wrong terms.

Could someone point me towards some learnage on it?

Offline

#8220 2015-03-12 05:54:53

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 13,970

Re: Conky v1.9 Thread

^ Do you mean cpugauge?  I recall using that once or twice, and remember it looked kinda like a speedometer.  I think some people here have written Lua scripts that give much prettier speedometer-like displays as well.

Offline

#8221 2015-03-12 10:01:07

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

^ Not sure that is what schwim is talking about.

cpugauge     (cpuN) (height),(width)
    Elliptical gauge that shows CPU usage, height and width are gauge's vertical and horizontal axis respectively. See $cpu for more info on SMP.

... very rough that.

I think the answer lies in the LUA bars and graphs.  Check out The Peachy Blog or wlourf's Useful and Useless Scripts and/or check the Linux Archive thread here for links to live examples as well.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8222 2015-03-12 16:49:32

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ schwim

Did some testing this morning after getting back home.
2015_03_12_12_45_17_1920x1080_Sector11.jpg
The native conky gauges are simple enough, the code I used below TEXT is:

TEXT
 The time is: ${time %T}
 cpugauge
	(cpuN) (height),(width)
	Elliptical gauge that shows
	CPU usage, height and width
	are gauge's vertical and
	horizontal axis respectively.
	See $cpu for more info on SMP.

CPU${goto 50}0${goto 110}1${goto 165}2${goto 220}3
    ${cpugauge cpu0 25,50} ${cpugauge cpu1 25,50} ${cpugauge cpu2 25,50} ${cpugauge cpu3 25,50}
${goto 50}${cpu cpu0}%${goto 110}${cpu cpu1}%${goto 165}${cpu cpu2}%${goto 220}${cpu cpu3}%

And the conkyrc_HUD code:

#==============================================================================
#                            conkyrc_HUD
#
#  author  : SLK
#  version : v2011011601
#  license : Distributed under the terms of GNU GPL version 2 or later
#
#==============================================================================
# pkill -xf "conky -c /media/5/conky/conky_HUD/conkyrc_HUD" &

background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit celsius

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 0	# l|r
gap_y 220	# u|d

alignment tm
minimum_size 250 130
maximum_width 250
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
own_window_class Conky
own_window_title A HUD Test
border_inner_margin 0
border_outer_margin 0


draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color DCDCDC # Gainsboro
color0 8FBC8F #DarkSeaGreen
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed

lua_load /media/5/conky/conky_HUD/conky_HUD.lua
lua_draw_hook_post main

TEXT
${color7}${font ubuntu:size=10}${time %H:%M:%S}
${voffset 25}
${goto 100}${font Ubuntu:bold:size=8}${color}DISKS
${goto 110}${font Ubuntu:size=7}${color}size /
${goto 105}${font Ubuntu:size=9}${color}${offset 5}${voffset -4}${fs_size /}
${goto 105}${font Ubuntu:size=7}${color}size /home
${goto 105}${font Ubuntu:size=9}${color}${offset 5}${voffset -4}${fs_size /home}

${voffset -70}
${goto 30}${font Ubuntu:bold:size=8}${color}MEM

${voffset -15}
${goto 180}${font Ubuntu:bold:size=8}${color}CPU

... that I would have done differently but I wanted to show you something

It calls for:  /media/5/conky/conky_HUD/conky_HUD.lua

--==============================================================================
--                              conky_HUD.lua
--
--  author  : SLK
--  version : v2011062101
--  license : Distributed under the terms of GNU GPL version 2 or later
--
--==============================================================================

require 'cairo'

--------------------------------------------------------------------------------
--                                                                    gauge DATA
gauge = {
{
    name='cpu',                    arg='cpu0',                  max_value=100,
    x=180,                         y=120,
    graph_radius=50,
    graph_thickness=5,
    graph_start_angle=0,
    graph_unit_angle=0.9,          graph_unit_thickness=0.9,
    graph_bg_colour=0xB0E0E6,      graph_bg_alpha=0.3,
    graph_fg_colour=0xB0E0E6,      graph_fg_alpha=0.0,
    hand_fg_colour=0xB0E0E6,       hand_fg_alpha=1.0,
    txt_radius=40,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xB0E0E6,        txt_fg_alpha=0.8,
    graduation_radius=30,
    graduation_thickness=0,        graduation_mark_thickness=1,
    graduation_unit_angle=27,
    graduation_fg_colour=0xB0E0E6, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='cpu',                    arg='cpu1',                  max_value=100,
    x=180,                         y=120,
    graph_radius=60,
    graph_thickness=5,
    graph_start_angle=0,
    graph_unit_angle=0.9,          graph_unit_thickness=0.9,
    graph_bg_colour=0xB0E0E6,      graph_bg_alpha=0.3,
    graph_fg_colour=0xB0E0E6,      graph_fg_alpha=0.0,
    hand_fg_colour=0xB0E0E6,       hand_fg_alpha=1.0,
    txt_radius=70,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xB0E0E6,        txt_fg_alpha=0.8,
    graduation_radius=55,
    graduation_thickness=5,        graduation_mark_thickness=2,
    graduation_unit_angle=27,
    graduation_fg_colour=0xB0E0E6, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.3,
},
{
    name='memperc',                arg='',                      max_value=100,
    x=40,                          y=85,
    graph_radius=34,
    graph_thickness=5,
    graph_start_angle=180,
    graph_unit_angle=2,            graph_unit_thickness=2,
    graph_bg_colour=0xB0E0E6,      graph_bg_alpha=0.3,
    graph_fg_colour=0xB0E0E6,      graph_fg_alpha=0.0,
    hand_fg_colour=0xB0E0E6,       hand_fg_alpha=1.0,
    txt_radius=20,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xB0E0E6,        txt_fg_alpha=0.8,
    graduation_radius=24,
    graduation_thickness=6,        graduation_mark_thickness=2,
    graduation_unit_angle=10,
    graduation_fg_colour=0xB0E0E6, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=10.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/',                     max_value=100,
    x=120,                         y=70,
    graph_radius=40,
    graph_thickness=4,
    graph_start_angle=210,
    graph_unit_angle=2,            graph_unit_thickness=2,
    graph_bg_colour=0xB0E0E6,      graph_bg_alpha=0.3,
    graph_fg_colour=0xB0E0E6,      graph_fg_alpha=0.0,
    hand_fg_colour=0xB0E0E6,       hand_fg_alpha=1.0,
    txt_radius=32,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xB0E0E6,        txt_fg_alpha=0.8,
    graduation_radius=46,
    graduation_thickness=0,        graduation_mark_thickness=2,
    graduation_unit_angle=20,
    graduation_fg_colour=0xB0E0E6, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
{
    name='fs_used_perc',           arg='/home/',                max_value=100,
    x=120,                         y=70,
    graph_radius=50,
    graph_thickness=8,
    graph_start_angle=210,
    graph_unit_angle=2,            graph_unit_thickness=2,
    graph_bg_colour=0xB0E0E6,      graph_bg_alpha=0.3,
    graph_fg_colour=0xB0E0E6,      graph_fg_alpha=0.0,
    hand_fg_colour=0xB0E0E6,       hand_fg_alpha=1.0,
    txt_radius=60,
    txt_weight=1,                  txt_size=10.0,
    txt_fg_colour=0xB0E0E6,        txt_fg_alpha=0.8,
    graduation_radius=58,
    graduation_thickness=4,        graduation_mark_thickness=2,
    graduation_unit_angle=20,
    graduation_fg_colour=0xB0E0E6, graduation_fg_alpha=0.3,
    caption='',
    caption_weight=1,              caption_size=8.0,
    caption_fg_colour=0xFFFFFF,    caption_fg_alpha=0.5,
},
}

-------------------------------------------------------------------------------
--                                                                 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
    val = value % (max_value + 1)
    start_arc = 0
    stop_arc = 0
    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
    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_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_gauge_rings(display)
    end

    cairo_surface_destroy(cs)
    cairo_destroy(display)
end

On line 16 and 37 you'll see:

    name='cpu',                    arg='cpu0',                  max_value=100,

    name='cpu',                    arg='cpu1',                  max_value=100,

which seems silly to me.  cpu0 is an "average" output of multiple cores so if the author has a dual core he's missing one.

You can see the results of my triple core with native conky "cpuguage" command above: (7+4+4)/3 = 5  big_smile

Need more just ask, I'm horrible at LUA but I'll share what I know.  Can't build a LUA script but I can tweak them (a bit)


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8223 2015-03-15 14:25:15

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

@ smacz saw your little thread here and got curious.

What happened to your conkys when you turned on compton?  Did they/it get funny shadows around it?
Like one of two in the top middle tests
2015_03_15_10_58_02_1920x1080_Sector11.png

If not can you right click on it to get your OpenBox Menu or is it dead space?

Options with compton running:
1.  No shadows - conky is dead space for OpenBox or "centre-click" menu.
- you probably have:

own_window_type desktop

- are you happy with this
- YES - do nothing
- NO - change to - normal

own_window_type normal

If you changed to "normal" and have a shadow, and OpenBox opens over the conky and 'centre-click' works;
- Are you happy?
- YES - do nothing
- No - one more edit:
- add this to the /.config/compton/compton.conf file:

## Remove Shadow from CONKY WINDOW ##
## compliments mrpeachy and falldown
# use wininfo to determine window name -OR- in the conky:
#		own_window_class conky_logo
# Then just simply use:
#		shadow-exclude = "n:e:window-name";
# Use brackets and comma for more then one window
#		shadow-exclude = ["n:e:conky_logo","n:e:conkyw","n:e:S11","n:e:test"];
#####
shadow-exclude = "n:e:Conky";

and in the conky file change this line:

own_window_class Conky

You could use anything:

shadow-exclude = "n:e:smacz";

and

own_window_class smacz

if you want, as long as they are the same.

Results - conkys with or without shadows that are NOT deadspace.
2015_03_15_10_58_26_1920x1080_Sector11.png


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#8224 2015-03-23 10:39:11

Kino
#! CrunchBanger
Registered: 2010-07-29
Posts: 130

Re: Conky v1.9 Thread

Hi,

I have been using the calendar/reminder utilty called "remind" which I can invoke with conky and produce a calendar display on the desktop.

What I would like to do is to highlight some of the entries with coloured text but so far I have been unable to find a way to this.
The remind program does include a variable definition file (defs.rem) which has expressions to provide coloured text and this works if i run the program in the terminal.
However, if I run the program from within conky the display is either all messed up or I get "can't parse color X" error messages.

Has anybody been able to achieve coloured text using remind with conky?

Any help would be appreciated.

Thanks.

Offline

Be excellent to each other!

#8225 2015-03-23 13:56:24

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

Re: Conky v1.9 Thread

Kino wrote:

Hi,

I have been using the calendar/reminder utility called "remind" which I can invoke with conky and produce a calendar display on the desktop.

What I would like to do is to highlight some of the entries with coloured text but so far I have been unable to find a way to this.
The remind program does include a variable definition file (defs.rem) which has expressions to provide coloured text and this works if i run the program in the terminal.
However, if I run the program from within conky the display is either all messed up or I get "can't parse color X" error messages.

Has anybody been able to achieve coloured text using remind with conky?

Any help would be appreciated.

Thanks.

Hi Kino ...
First off I moved this to the conky thread.  You should have a redirect.

1.  Can you show the line your are talking about for the colour in terminal / conky?

I can't help you directly with your problem BUT....

I've been trying to get a "remind" calendar in conky for years since Mobilediesel's script conked out with today's date messed up.  sad
But not the "remind -c ~/.reminders" That's just too big for me anyway.

I just have no idea how to fix it.

#!/bin/bash
# calendar.sh
# copyright 2011 by Mobilediesel
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.

#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.

#You should have received a copy of the GNU General Public License
#along with this program.  If not, see <http://www.gnu.org/licenses/>.

# WARNING - No longer works
#m="m" # uncomment this line for starting the week on Monday instead of Sunday.
# WARNING - No longer works

dates=$(remind -s $HOME/.reminders | awk -F"[ /]+" '{if ( $3!=strftime( "%d" ) ) {DAYS=DAYS $3+0"|"}} END{sub("\\|$","",DAYS);printf DAYS}')
ncal -b -3$m | awk -v DAYS=${dates} '{
{if ( substr($0,1,20)!~/^ *$/ )
{PREV=substr($0,1,20)}}
{if ( NR==3 )
{NEXT=substr($0,45,20)} {sub(/^ */," ",NEXT)}}
{if ( NR==1 )
MONTH=substr($0,23,20)}
{if ( NR==2 )
DOW=substr($0,23,20)}
{if ( substr($0,23,20)!~/^ *$/ && NR!=1 && NR!=2 )
{tmp=substr($0,23,20);sub("^ +1\\>"," 1",tmp);sub(/[ ]+$/,"",tmp)
{if ( length(tmp)==20 || NR==3 )
CAL=CAL tmp"\n"
else
CAL=CAL tmp" "}}}}
END{
{gsub("\\<("DAYS")\\>","${color FFDEAD}&${color 778899}",CAL)}
{sub("\\<"strftime( "%-d" )"\\>","${color 7FFF00}&${color 778899}",CAL)}
sub(/[ ]+$/," ",PREV)
{if ( length(PREV)==20 )
PREV=PREV"\n"}
print "${color1 FFDEAD}"MONTH"\n${color FFDEAD}"DOW"\n${color 565656}"PREV"${color 778899}"CAL"${color 565656}"NEXT
}'
exit

And in conky it's a simple:

${execpi 3600 /media/5/Conky/scripts/remind-cal.sh}

So today I just use a calendar with remind stuff below it: 2015_03_23_10_33_04_1920x1080_Sector11.jpg

If you don't like the

ncal -b -3$m

call change it to

cal -3$m

result is the same, I just got use to using "ncal" because it does more.  - it's a part of the cal app.

TEXT
${font Fantasque Sans Mono:bold:size=14}${alignc}${color6}Easter${color}${font}
${alignc}${pre_exec ncal -e}
${color7}${hr}${color}
${goto 32}${color5}SU MO ${color}${time %b %Y}${color5} FR SA
${goto 32}${color5}${execpi 43200 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color}&${color5}/' | sed ':a;N;$!ba;s/\n/\n${goto 32}/g'}${color}
${color7}${hr}${color}
${font Fantasque Sans Mono:bold:size=14}${alignc}${color6}${execi 3600 date | awk '{print $1" "$3" "$2}'}${color}${font}
${pre_exec remind -q -r ~/.reminders | fold -sw70 | sed -e "/.*(today):/d" -e '/^$/d'}
${color7}${hr}${color}
${font Fantasque Sans Mono:bold:size=14}${alignc}${color6}${execi 3600 date | awk '{print $2" "$6}'}${color}${font}
${pre_exec rem -s | cut -c9-10,19-}
${color7}${hr}${color}
${execpi 43200 head /media/5/Conky/Days/all.txt -n 48}

If you can figure that out we'd both be good.
I use it basically for ßirthdays and @nniversaries plus other odds-n-sods


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo