SEARCH

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

You are not logged in.

#5776 2013-07-21 22:42:18

Inodoro Pereyra
#! Die Hard
From: Back in Buenos Aires
Registered: 2013-07-01
Posts: 844

Re: Conky v1.9 Thread

Sector11 wrote:

@ Inodoro Pereyra - dollars to donuts a script could do that but ... not my strength.   sad
Looks neat ... get it and I'll play with it too.   8o

Thank you. Unfortunately, scripts are "not my thing" (which, in my case, it's an elegant way to say I don't know squat about them) also.

Does anybody else have a way to get that?

Offline

Be excellent to each other!

#5777 2013-07-21 23:07:06

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

^ I seem to recall mrpeachy having something similar to that in a post... you might want to look up his blog and see if it is there


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#5778 2013-07-21 23:37:31

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

Re: Conky v1.9 Thread

Inodoro Pereyra wrote:
Sector11 wrote:

@ Inodoro Pereyra - dollars to donuts a script could do that but ... not my strength.   sad
Looks neat ... get it and I'll play with it too.   8o

Thank you. Unfortunately, scripts are "not my thing" (which, in my case, it's an elegant way to say I don't know squat about them) also.

Does anybody else have a way to get that?

mrpeachys "vcal.lua" isn't what your looking for either:
vcal.jpg

I'll check and see is Crinos512 is still around... he's like mobilediesel ... can do anything with a bash script!

Last edited by Sector11 (2013-07-21 23:38:11)


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

Offline

#5779 2013-07-22 00:14:02

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

Re: Conky v1.9 Thread

@Inodoro -

I have seen what you are looking for - may be the same one vastone saw - so it does exist.

Might want to check the monster conky thread at ubuntu and search for "vertical calendar" or something along those lines.

Edit - Scratch that whole ubuntu suggestion; when you need a script, go see the kiddies at the Arch forums:

https://bbs.archlinux.org/viewtopic.php?id=84654

Last edited by PackRat (2013-07-22 00:17:54)


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

Offline

#5780 2013-07-22 02:00:27

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

PackRat wrote:

@Inodoro -

I have seen what you are looking for - may be the same one vastone saw - so it does exist.

Might want to check the monster conky thread at ubuntu and search for "vertical calendar" or something along those lines.

Edit - Scratch that whole ubuntu suggestion; when you need a script, go see the kiddies at the Arch forums:

https://bbs.archlinux.org/viewtopic.php?id=84654

Got to love Arch and all they provide


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#5781 2013-07-22 02:02:09

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

Re: Conky v1.9 Thread

@ PackRat

You've seen a vertical calendar that splits into 14 day sections as Inodoro Pereyra requested or just vertical calendars?

The code at the ARCH Linux site you pointed to is 4 years old and does months in single lines - with errors (top left).

There is conkycal.sh that does work - defaults to horizontal, does vertical with a -v option and does language translations.
2013_07_21_22_41_25_1920x1080_Sector11.jpg

Not what he wanted though .... which is:

      2013
Sun      14  28
Mon  01  15  29
Tue  02  16  30
Wed  03  17  31
Thu  04  18
Fri  05  19
Sat  06  20
Sun  07  21
Mon  08  22
Tue  09  23
Wed  10  24
Thu  11  25
Fri  12  26
Sat  13  27
       Jun

I'll be searching Ubuntu when they come back online and I'll be closing my account at UBU - as of 1 minute ago:

Ubuntu Forums is down for maintenance

There has been a security breach on the Ubuntu Forums. The Canonical IS team is working hard as we speak to restore normal operations. This page will be updated regularly with progress reports.
What we know

    Unfortunately the attackers have gotten every user's local username, password, and email address from the Ubuntu Forums database.
    The passwords are not stored in plain text, they are stored as salted hashes. However, if you were using the same password as your Ubuntu Forums one on another service (such as email), you are strongly encouraged to change the password on the other service ASAP.
    Ubuntu One, Launchpad and other Ubuntu/Canonical services are NOT affected by the breach.

Last edited by Sector11 (2013-07-22 14:53:44)


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

Offline

#5782 2013-07-22 02:06:06

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#5783 2013-07-22 03:01:22

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

Re: Conky v1.9 Thread

@Sector11, Inodoro -

I have seen the vertical calendar for an entire month, and shortened. The command

ncal

will place the days vertical (screenshot); getting the output parsed into two weeks can probably be done with awk.

adrqGr5o.jpg


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

Offline

#5784 2013-07-22 04:06:55

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

Re: Conky v1.9 Thread

Well, I only saw it tonight.


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

Offline

#5785 2013-07-22 04:31:36

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

Re: Conky v1.9 Thread

PackRat wrote:

@Sector11, Inodoro -

I have seen the vertical calendar for an entire month, and shortened. The command

ncal

will place the days vertical (screenshot); getting the output parsed into two weeks can probably be done with awk.

http://t.imgbox.com/adrqGr5o.jpg

Yes I know about ncal.  I use it for my calendar and to get the yearly date of Easter.  It does more than "cal".

TEXT
${font monofur:size=20}${alignc}${color6}Easter${color}${font}
${alignc}${pre_exec ncal -e}
${color7}${hr 1}${color}
${goto 20}SU MO ${color6}${time %b %Y}${color} FR SA
${goto 20}${color}${execpi 7200 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color6}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 20}/g'}${color}
${color7}${hr 1}${color}
${font monofur:size=20}${alignc}${color6}Today${color}${font}
${pre_exec remind -q -r ~/.reminders | fold -sw70 | sed -e "/.*(today):/d" -e '/^$/d'}
${color7}${hr 1}${color}

2013_07_22_01_16_14_1920x1080_Sector11.jpg

The code is old ... and modified from a line I got years ago.  I simply do not understand the sed/awk kung-fu stuff.

gcal -i does the same "vertical" display, and even prints out the full weekday names:

 22 Jul 13 | 01:07:35 ~
    $ gcal -i

July 2013

Sunday          7 14 21 28   
Monday       1  8 15 22 29   
Tuesday      2  9 16 23 30   
Wednesday    3 10 17 24 31   
Thursday     4 11 18 25      
Friday       5 12 19 26      
Saturday     6 13 20 27      
 
 22 Jul 13 | 01:07:40 ~
    $ 

Like I said:

@ Inodoro Pereyra - dollars to donuts a script could do that but ... not my strength.   sad
Looks neat ... get it and I'll play with it too.

scripts are not my strength and IP knows, what was his word "squat"!

Inodoro Pereyra wrote:

Thank you. Unfortunately, scripts are "not my thing" (which, in my case, it's an elegant way to say I don't know squat about them) also.

Does anybody else have a way to get that?

and again the question that everyone seems to be avoiding.

It can be done ... I'd bet $$ on it ... however neither I nor Inodoro Pereyra have the know how, that's why he's asking and I'm watching.


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

Offline

#5786 2013-07-22 12:02:09

hebangs
#! CrunchBanger
Registered: 2013-06-05
Posts: 107

Re: Conky v1.9 Thread

hi guys, how do i make the height shorter? i want it stay nicely below the the TEXT
thanks.

2EMtc3x.png?1

C6kxLrp.png

my conky script:

#avoid flicker
double_buffer yes
update_interval 1.0

#own window to run simultanious 2 or more conkys
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 

#borders
draw_borders no
border_margin 1
#border_inner_margin 0
#border_outer_margin 0

#shades
draw_shades yes

#position
gap_x 0
gap_y 34
alignment top_left

#behaviour
update_interval 1

#colour
default_color  8f8f8f
#default_shade_color 000000
own_window_colour 262626

#font
use_xft yes
xftfont bauhaus:pixelsize=10

#to prevent window from moving
use_spacer no
minimum_size 1024 0


TEXT
${voffset -1} Machine: ${color e0e0e0}${font}Thinkpad x61s ${color} | Host: ${color e0e0e0}${font}$nodename ${color} | Cpu: ${color e0e0e0}${font}${cpu}% ${color} Core1: ${color e0e0e0}${font}${platform coretemp.0 temp 2} ${color} Core2: ${color e0e0e0}${font}${platform coretemp.0 temp 3} ${color} | Mem: ${color e0e0e0}${font}${mem} ${color}  Swap usage:${color e0e0e0}${font}$swap / $swapmax ${color} | ${color} Net: ${color e0e0e0}${font}${downspeed eth0} Kb/s ${color} ${totaldown eth0} downloaded${color} | ${color} ${color e0e0e0}${upspeed eth0} Kb/s ${color} ${totalup eth0} uploaded${color}

Last edited by hebangs (2013-07-22 12:03:31)

Offline

#5787 2013-07-22 13:23:37

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

Re: Conky v1.9 Thread

Start by removing the ${voffset -1} - that raises the test one line.

Without voffset (quick hack - little more readable on my mnitor:)

July_1374505357_1600x900.jpg

Last edited by PackRat (2013-07-22 15:04:53)


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

Offline

#5788 2013-07-22 14:10:36

IamFuzzles
Member
Registered: 2013-02-16
Posts: 32

Re: Conky v1.9 Thread

I wrote a script to read a file one line at a time, and will read the next line of the file next time it's called, and loop around when it's reached the end of the file. However, when I use the conky command

${execi 10 path/to/my/script

it doesn't work properly. It will read the line, but fail to increment the line number. Here's the script I wrote below to explain how it works.

#! /bin/bash

## .linenum is a file that holds the current linenumber
linenumber=`cat /home/myname/.conky/.linenum`

##the file I want to read
sed -n $linenumber\ p /home/myname/.todo.txt

##grabbing the line count
linecount=`wc -l < /home/myname/.todo.txt`


##reset linenumber if we've reached the last line in the file
if [ "$linenumber" -ge "$linecount" ]
then
    linenumber=0
fi

((linenumber++))
rm .linenum
touch .linenum
echo $linenumber > .linenum

Offline

#5789 2013-07-22 14:47:05

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

Re: Conky v1.9 Thread

hebangs wrote:

hi guys, how do i make the height shorter? i want it stay nicely below the the TEXT
thanks.

At the tail end of your line add a ${voffset -10}, the -10 being the arbitrary number - I don't have your font ... that makes a difference ...  I found a ${voffset -3} worked just fine.  Then for the third example, I increased the first ${voffset -1} to  ${voffset -3} for a nice tight line.

Top: your unaltered line
Centre: ${voffset -3} added to the end.
Bottom: starts with ${voffset -3} and ends with ${voffset -3}

2013_07_22_11_26_03_1920x1080_Sector11.jpg

I also found some ${font} and ${color} calls in your line that were not needed.

Adjust the ${voffset} commands to suit your needs

TEXT
${voffset -3} Machine: ${color e0e0e0}Thinkpad x61s ${color} | Host: ${color e0e0e0}${nodename} ${color} | Cpu: ${color e0e0e0}${cpu}% ${color} Core1: ${color e0e0e0}${platform coretemp.0 temp 2} ${color} Core2: ${color e0e0e0}${platform coretemp.0 temp 3} ${color} | Mem: ${color e0e0e0}${mem} ${color}  Swap usage:${color e0e0e0}$swap / $swapmax ${color} |  Net: ${color e0e0e0}${downspeed eth0} Kb/s ${color} ${totaldown eth0} downloaded | ${color e0e0e0}${upspeed eth0} Kb/s ${color} ${totalup eth0} uploaded${voffset -3}

Last edited by Sector11 (2013-07-22 14:51:23)


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

Offline

#5790 2013-07-22 15:03:46

hebangs
#! CrunchBanger
Registered: 2013-06-05
Posts: 107

Re: Conky v1.9 Thread

i've removed the ${voffset -1} or added ${voffset -1} to the beginning and at the end, still didnt work.

MJv037z.png

double_buffer yes
update_interval 1.0
own_window  yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorate,sticky,skip_taskbar,skip_pager 
draw_borders no
border_margin 1
draw_shades yes
gap_x 0
gap_y 34
alignment top_left
update_interval 1
default_color  8f8f8f
own_window_colour 262626
use_xft yes
xftfont bauhaus:pixelsize=10
use_spacer no
minimum_size 1024 0

TEXT
Machine: ${color e0e0e0}${font}Thinkpad x61s ${color} | Host: ${color e0e0e0}${font}$nodename ${color} | Cpu: ${color e0e0e0}${font}${cpu}% ${color} Core1: ${color e0e0e0}${font}${platform coretemp.0 temp 2} ${color} Core2: ${color e0e0e0}${font}${platform coretemp.0 temp 3} ${color} | Mem: ${color e0e0e0}${font}${mem} ${color}  Swap usage:${color e0e0e0}${font}$swap / $swapmax ${color} | ${color} Net: ${color e0e0e0}${font}${downspeed eth0} Kb/s ${color} ${totaldown eth0} downloaded${color} | ${color e0e0e0}${upspeed eth0} Kb/s ${color} ${totalup eth0} uploaded

Offline

#5791 2013-07-22 15:07:48

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

Re: Conky v1.9 Thread

^ do you have conky residing in the openbox dock? If so, is there a setting for the width of the dock?

And make sure there is no blank line at the end of your conkyrc from hitting the enter key - I've had issues from that in the past, but that was a long time ago -- EDIT - I can produce that extra width if I hit enter and put a blank line at the end of your comkyrc

Are you using a compositor?

Your new code works on my system; fluxbox, no compositor.

Last edited by PackRat (2013-07-22 17:21:15)


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

Offline

#5792 2013-07-22 15:21:38

Crinos512
Member
Registered: 2013-07-22
Posts: 14

Re: Conky v1.9 Thread

Inodoro Pereyra wrote:

Thank you. Unfortunately, scripts are "not my thing" (which, in my case, it's an elegant way to say I don't know squat about them) also.

Does anybody else have a way to get that?

and again the question that everyone seems to be avoiding.

It can be done ... I'd bet $$ on it ... however neither I nor Inodoro Pereyra have the know how, that's why he's asking and I'm watching.


OK Sector11 brought this challenge to me and this is what I've come up with so far...

ncal | sed -e 's/     /  --  /g' | awk  '{if (length($2)==1) { $2 = "0"  $2 ; }print $1, $2, $5}' &&  ncal | sed -e 's/     /  --  /g' | awk  '{if (length($3)==1) { $3 = "0"  $3 ; }print $1, $3, $6}' |tail -n7 &&  ncal | sed -e 's/     /  --  /g' | awk  '{if (length($7)<1) { $7 = "--"  $7 ; }print $1, $4, $7}' |tail -n7

which returns the following for me.

July 2013 
Su -- 21
Mo 01 22
Tu 02 23
We 03 24
Th 04 25
Fr 05 26
Sa 06 27
Su 07 28
Mo 08 29
Tu 09 30
We 10 31
Th 11 --
Fr 12 --
Sa 13 --
Su 14 --
Mo 15 --
Tu 16 --
We 17 --
Th 18 --
Fr 19 --
Sa 20 --

*note this is actually 3 commands connected with '&&'.... I'll post again when I have the date hilighting correctly.

**Updated a bit more to get the formatting right and to handle months that stretch across 5 weeks.

Last edited by Crinos512 (2013-07-22 16:05:53)

Offline

#5793 2013-07-22 16:08:35

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

Re: Conky v1.9 Thread

Welcome Crinos512, nicely done.  Nice to see a familiar face tackling and hopefully resolving Inodoro Pereyra's issue


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#5794 2013-07-22 16:16:53

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

Re: Conky v1.9 Thread

Crinos512 wrote:

*note this is actually 3 commands connected with '&&'.... I'll post again when I have the date hilighting correctly.

**Updated a bit more to get the formatting right and to handle months that stretch across 5 weeks.

Welcome to #! Crinos512 ... really nice first post!

Glad you could make it ... I could get a headache reading that line   big_smile

But you know I'm going to play with it!   cool


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

Offline

#5795 2013-07-22 17:01:41

Crinos512
Member
Registered: 2013-07-22
Posts: 14

Re: Conky v1.9 Thread

It's not too bad for a oneliner... My conky is a bit rusty but you could just run the whole thing as:

{exec 60 ncal | sed -e 's/     /  --  /g' | awk  '{if (length($2)==1) { $2 = "0"  $2 ; }print $1, $2, $5}' &&  ncal | sed -e 's/     /  --  /g' | awk  '{if (length($3)==1) { $3 = "0"  $3 ; }print $1, $3, $6}' |tail -n7 &&  ncal | sed -e 's/     /  --  /g' | awk  '{if (length($7)<1) { $7 = "--"  $7 ; }print $1, $4, $7}' |tail -n7}

as a bash script it's more readable:

#!/bin/bash

ncal | sed -e 's/     /  --  /g' | awk  '{if (length($2)==1) { $2 = "0"  $2 ; }print $1, $2, $5}' 
ncal | sed -e 's/     /  --  /g' | awk  '{if (length($3)==1) { $3 = "0"  $3 ; }print $1, $3, $6}' | tail -n7
ncal | sed -e 's/     /  --  /g' | awk  '{if (length($7)<1)  { $7 = "--"  $7 ; }print $1, $4, $7}' | tail -n7

...then you could just do the

{execpi 60 ./nameofscript.sh}

This should also allow you to pull the current date into a variable (inside the script) with

date '+d%'

which you can then sed to add your day's formatting. Easy right? smile

I'll try to wrap it all up together in a bit... have a sick server to look at right quick.

Last edited by Crinos512 (2013-07-22 17:02:30)

Offline

#5796 2013-07-22 17:31:33

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

Re: Conky v1.9 Thread

Crinos512 wrote:

It's not too bad for a oneliner... My conky is a bit rusty but you could just run the whole thing as:

which you can then sed to add your day's formatting. Easy right? smile

I'll try to wrap it all up together in a bit... have a sick server to look at right quick.

Yea, well, your rust is another man's gold  lol lol lol   MINE!!!!!
Give the server a couple of aspirins and tell it to see a doctor in the morning.  hahahahahahahaha
{hope it's not bad ...}

ncal look like this:

 22 Jul 13 | 13:40:12 ~
    $ ncal
    July 2013         
Su     7 14 21 28   
Mo  1  8 15 22 29   
Tu  2  9 16 23 30   
We  3 10 17 24 31   
Th  4 11 18 25      
Fr  5 12 19 26      
Sa  6 13 20 27      
 
    $ 

I trimmed your lines and started playing with the "print" part because the request is 14 days down ... he's on a laptop with limited space.

I can get this:

 22 Jul 13 | 14:18:57 ~
    $ ncal | sed 1d | sed -e 's/     /  --  /g' | awk  '{if (length($7)<1) { $7 = "--"  $7 ; }print $1, $2, $4, $6, $7}' |tail -n7
Su -- 14 28 --
Mo 1 15 29 --
Tu 2 16 30 --
We 3 17 31 --
Th 4 18 -- --
Fr 5 19 -- --
Sa 6 20 -- --
 
 22 Jul 13 | 14:19:40 ~
    $ ncal | sed 1d | sed -e 's/     /  --  /g' | awk  '{if (length($7)<1) { $7 = "--"  $7 ; }print $1, $3, $5, $6, $7}' |tail -n7
Su 7 21 28 --
Mo 8 22 29 --
Tu 9 23 30 --
We 10 24 31 --
Th 11 25 -- --
Fr 12 26 -- --
Sa 13 27 -- --
 
 22 Jul 13 | 14:20:08 ~
    $

That might look like this:

Su -- 14 28 --
Mo 1 15 29 --
Tu 2 16 30 --
We 3 17 31 --
Th 4 18 -- --
Fr 5 19 -- --
Sa 6 20 -- --
Su 7 21 28 --
Mo 8 22 29 --
Tu 9 23 30 --
We 10 24 31 --
Th 11 25 -- --
Fr 12 26 -- --
Sa 13 27 -- --
 
 22 Jul 13 | 14:20:08 ~
    $

Agggggggghhhhhhhh... I see an "Oops!" in there.  lol

But for the life of me I can't get a "0" in for single digit days  sad

The:

| awk  '{if (length($2)==1) { $2 = "0"  $2 ; }
| awk  '{if (length($3)==1) { $3 = "0"  $3 ; }

eludes me...

But it's AWESOME!!!!!

EDIT:  I popped that first

| sed 1d |

in there to get rid of the "july 2013"
- September is a bit wider than May    big_smile
Besides like you said the date command works well in bash scripts as you pointed out ...

Would the colouring of the date work the same as what I use?

${execpi 7200 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color6}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 20}/g'}

Last edited by Sector11 (2013-07-22 17:57:25)


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

Offline

#5797 2013-07-22 17:54:42

Crinos512
Member
Registered: 2013-07-22
Posts: 14

Re: Conky v1.9 Thread

OK, July spans 5 weeks, does he want it in 2 columns, or 14 rows?

And yes, you are dead on with the coloring for the current date.  big_smile

Last edited by Crinos512 (2013-07-22 17:55:36)

Offline

#5798 2013-07-22 18:00:40

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

Re: Conky v1.9 Thread

Crinos512 wrote:

OK, July spans 5 weeks, does he want it in 2 columns, or 14 rows?

And yes, you are dead on with the coloring for the current date.  big_smile

14 rows ...   big_smile

dead on!  heheheheh that came from someone else ... but the "idea" is the same.

Will be interesting implementing that color command in a multi-line bash script.
I'll play til I break it.  big_smile


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

Offline

#5799 2013-07-22 18:14:15

Crinos512
Member
Registered: 2013-07-22
Posts: 14

Re: Conky v1.9 Thread

Sector11 wrote:
Crinos512 wrote:

OK, July spans 5 weeks, does he want it in 2 columns, or 14 rows?

And yes, you are dead on with the coloring for the current date.  big_smile

14 rows ...   big_smile

dead on!  heheheheh that came from someone else ... but the "idea" is the same.

Will be interesting implementing that color command in a multi-line bash script.
I'll play til I break it.  big_smile

OK, The following gives you 14 columns regardless.

ncal | sed -e 's/     /  --  /g' | awk  '{if (length($2)==1) { $2 = "0"  $2 ; }print $1, $2, $4, $6}' &&  ncal | sed -e 's/     /  --  /g' | awk  '{if (length($3)==1) { $3 = "0"  $3 ; }print $1, $3, $5, $7}' |tail -n7

Like so.

July 2013  
Su -- 14 28
Mo 01 15 29
Tu 02 16 30
We 03 17 31
Th 04 18 --
Fr 05 19 --
Sa 06 20 --
Su 07 21 
Mo 08 22 
Tu 09 23 
We 10 24 
Th 11 25 
Fr 12 26 
Sa 13 27 

Offline

Be excellent to each other!

#5800 2013-07-22 18:25:24

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

Re: Conky v1.9 Thread

hebangs wrote:

i've removed the ${voffset -1} or added ${voffset -1} to the beginning and at the end, still didnt work.

I retested your code after installing your "bauhaus" font, and adding the "cal.C512.sh" I'm looking at under it and added a ${voffset -160} to cover the calendar.

PackRat's right make sure you don't have an extra line at the end.

Debian SID - OpenBox & compton

With ${voffset -160}
2013_07_22_15_16_04_1920x1080_Sector11.jpg

Without ${voffset -160}
2013_07_22_15_16_40_1920x1080_Sector11.jpg


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
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