You are not logged in.

#101 2016-11-02 20:37:58

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky - Calendars / Clocks / Time

Yeah!

...ncal -bhM...

I would never have been there! A true Conky-Master! O:)

Thank you so much!  smile

Offline

#102 2016-11-02 21:50:16

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

Re: Conky - Calendars / Clocks / Time

But 'ncal -M' isn't conky, it's from "man ncal", not to be confused with Mann, which we both are.  big_smile

You're welcome. Greetings to all.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#103 2016-11-03 09:44:54

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

But 'ncal -M' isn't conky, it's from "man ncal", not to be confused with Mann, which we both are.  big_smile

Still you are a conky master.   cool

as well greetings   smile

Offline

#104 2016-11-03 12:36:31

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

Re: Conky - Calendars / Clocks / Time

smile  smile OK, OK, I concede. 

Free Beer for everyone! And give that man ^ a shot of the best whisky in the house!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#105 2016-11-03 23:00:02

ututo
Member
Registered: 2015-09-29
Posts: 326

Re: Conky - Calendars / Clocks / Time

Horizontal Calendar
calendar.md.png

conkyrc

background yes
use_xft yes
xftfont 123:size=8
xftalpha 0.2
update_interval 30
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 1020 50
maximum_width 1020
no_buffers yes
cpu_avg_samples 2
net_avg_samples 2
use_spacer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
border_inner_margin 0
border_outer_margin 0 
override_utf8_locale yes
default_color white  
alignment br
uppercase no
text_buffer_size 2048
imlib_cache_size 0 
gap_x 10
gap_y -50
TEXT

${execpi 1800 /home/ututo/.config/conky/scripts/horical.sh}${color}
${color CBCDC0}${voffset -49}${font Roboto:Thin:size=33}${goto 60}${time %B}
#${voffset 5}${goto 198}${color}${hr 1}
#${color 72A4DB}${voffset -64}${goto 46}${font Liberation Sans:bold:size=18}${time %A}${font Liberation Sans:bold:size=40}${goto 175} ${color}${voffset 0}${time %d}$color
#${color 72A4DB}${voffset -50}${font Liberation Sans:bold:size=24}${goto 46}${time %b}${font Liberation Sans:bold:size=16}${goto 128}${color}${voffset 4}${time %Y}$color
#
#${voffset -32}${font Liberation Sans:italic:size=15}${goto 280}${color E0EBF1}${execi 30 fortune fran}

script

#!/bin/bash
# a script to display a horizontal calendar on conky (hence the name horical :D)
# if you need to ask something, contact me via email nhianho@gmail.com
TODAY=`date +%d`
TOPLINE=" "
OVER=" "
REST=" "
# -------- This part is to find out the number of days in a month to display-----------#
a=`date +%-Y`
e1=`expr $a % 400`
e2=`expr $a % 100`
e3=`expr $a % 4`
if [ $e1 == 0 ]
  then c=1
  elif [ $e2 == 0 ]
  then c=0
  elif [ $e3 == 0 ] 
  then c=1
  else c=0
fi
p=`date +%-m`
# if the current year is not a leap one, c = 0
if [ $c == 0 ] 
  then
	if [ $p == 2 ]
	then b=28 # this is the number of days in Febuary 
	elif [ $p == 11 ] || [ $p == 4 ] || [ $p == 6 ] ||  [ $p == 9 ]
	then b=30
	else b=31
	fi
  else
	if [ $p == 2 ]
	then b=29 # the number of days in Febuary in a leap year
	elif [ $p == 11 ] || [ $p == 4 ] || [ $p == 6 ] ||  [ $p == 9 ]
	then b=30
	else b=31
	fi
fi
#--------------------- The bottom line which displays the days of month ----------#
i=1
if [ $TODAY -ne 1 ]
then
    while [ $i -lt $TODAY ]; do
        if [ $i -lt 10 ]
        then
            OVER="$OVER 0$i"
        else
            OVER="$OVER $i"
        fi
        i=$[$i+1]
    done
fi
i=$[$i+1]
if [ $TODAY -ne $b ]
then
    while [ $i -ne $[$b] ]; do
        if [ $i -lt 10 ]
        then
            REST="$REST 0$i"
        else
            REST="$REST $i"
        fi
        i=$[$i+1]
    done
    REST="$REST $b"
fi
#------------- the top line which displays the abbreviated weekday names-------#
k=`date +%u`
j=`date +%e`
f=`expr $j % 7`
if [ $k -lt $f ]
then 
	y=$[$k+8-$f]
else
	y=$[$k-$f+1]
fi
while [ $b -gt 0 ]; do
    case "$y" in
    1) TOPLINE="$TOPLINE Mo";;
    2) TOPLINE="$TOPLINE Tu";;
    3) TOPLINE="$TOPLINE We";;
    4) TOPLINE="$TOPLINE Th";;
    5) TOPLINE="$TOPLINE Fr";;
    6) TOPLINE="$TOPLINE Sa";;
    7) TOPLINE="$TOPLINE Su";;
    esac
    b=$[$b-1]
    y=$[$y+1]
    if [ $y -eq 8 ]
    then
        y=1
    fi
done
echo '${goto 270}''${color 84877D}''${font mono:Bold:size=10}'$TOPLINE | sed 's/Su/${color D1876B}Su${color 84877D}/g' | sed 's/Sa/${color D1876B}Sa${color B2B7A9}/g'
echo '${goto 270}''${font mono:bold:size=10}''${color D1876B}'$OVER '${color C1C3B7}'$TODAY'${color 84877D}'$REST

P.S. I took it from here


BunsenLabs on deviantArt
Don't touch my git!

Offline

#106 2016-11-04 00:05:03

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

Re: Conky - Calendars / Clocks / Time

ututo wrote:

Horizontal Calendar

In the Screenshot thread, I made reference to:

Sector11 wrote:

but saved by mobilediesel's conky calendar.  smile

Looks like I was wrong.

mobilediesel's calendar, which is already here, is horizontal or vertical and with the "lang" file multi-lingual.  It also has a fixed width; 31 days - filling in what is necessary depending on the length of a month.

Nice to see a new script on the block.  Grabbing that now.  Thanks for sharing ututo!

NOTE:  I keep saying mobilediesel, but really it's by "ans" - just heavily tweaked by mobilediesel.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#107 2016-11-04 00:52:43

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

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

.....
NOTE:  I keep saying mobilediesel, but really it's by "ans" - just heavily tweaked by mobilediesel.

Isaac Newton wrote:

If I have seen further, it is by standing on the shoulders of giants conkymeisters


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

Offline

#108 2016-11-04 02:56:59

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

Re: Conky - Calendars / Clocks / Time

Ahhh, but if he had been standing on the shoulders of conkymeisters he would have plucked the apple and not discovered the law of gravity, and then where would we be.

Gravityless I tell you!  Gravityless!!!  O:)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#109 2016-11-25 01:10:50

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

Re: Conky - Calendars / Clocks / Time

Ooooooooooooo I found a few old ones here that I had never really looked at played with until yesterday.

This is a really nice LUA "flipclock".  The original has hours 1 to 12 AM/PM and minutes, so it only has two "flippers"
Being a 24 hour man and wanting seconds I GIMPed the images (did ya hear that damo??) and tweaked the code.

The original looks like this:
mCgAjMek.jpg
The "black line" image is inserted with an "overlay" LUA script.  First time I have seen it - even though it's been here in an archived file forever it seems.

And my tweaked version looks like this, notice the conky window is a bit tighter to the images:
fhHJajqp.jpg

The original archive is: flipclock_by_blitz_bomb-d5ydsbd.zip so I would guess blitz_bomb is the author if not the person that at least .ZIPped it.  So credit to blitz_bomb for this and wlourf for the text.lua.  The overlay.lua has no known author.

Be careful /with/the/paths in the archive: flipclock.tar.gz - I've redone it to include my tweaks and images and I must admit another reason for the "3xflippers" with HH:MM:SS is a second conky could be done to show DD MM YY or MM DD YY or YY MM DD depending on where you live and or preference.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#110 2016-11-25 01:39:59

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

Re: Conky - Calendars / Clocks / Time

And yet another flipclock type conky although it doesn't look like a flip clock..  With lua and again with the overlay.lua that puts the two dots and the shaded areas in the numbers.
5GKLsMgJ.jpg

Now I don't particularly like this one because of the way it does things.  I'm going to work on a tweak of this to redo it without the bash script.  Mclock.tar.gz has the original "archive file" in it as well.  The dot in the lower left = PM - oh how that will change here.  big_smile

I can see a LOT of uses for the overlay.lua script though.  Ideas are forming, unfortunately I'm not up with GIMP like some around there so I'll just have to 'find the images"  I want to use.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#111 2016-11-25 10:48:35

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky - Calendars / Clocks / Time

^ Nice, Sector11 O:)

Well, I was not idle. I found the crunch and wanted to know if it works.

It has come out
sapristi_bunsen.th.png

-I only found your 24 hour clock (the time is so wrong)
-lua throws an arithmetic error

Conky: desktop window (2c5) is root window
Conky: window type - normal
Conky: drawing to created window (0x1600002)
Conky: drawing to double buffer
Conky: llua_do_call: function conky_main execution failed: /home/unklar/.conky/applets/gauges.lua:64: attempt to perform arithmetic on local 'innerload' (a nil value)
Conky: llua_do_call: function conky_main execution failed: /home/unklar/.conky/applets/gauges.lua:64: attempt to perform arithmetic on local 'innerload' (a nil value)
Conky: llua_do_call: function conky_main execution failed: /home/unklar/.conky/applets/gauges.lua:64: attempt to perform arithmetic on local 'innerload' (a nil value)
Conky: llua_do_call: function conky_main execution failed: /home/unklar/.conky/applets/gauges.lua:13: attempt to perform arithmetic on a nil value

My curiosity is satisfied.


Thanks to @ututo for the background image.  smile

Offline

#112 2016-11-25 15:10:10

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

Re: Conky - Calendars / Clocks / Time

Well, I am getting the same errors you get unklar:

 25 Nov 16 @ 11:32:18 /media/5/conky/sapristi
  $ /media/5/conky/sapristi
Conky: desktop window (265) is root window
Conky: window type - normal
Conky: drawing to created window (0x4800001)
Conky: drawing to double buffer
Conky: llua_do_call: function conky_main execution failed: /media/5/conky/sapristi/gauges.lua:69: attempt to perform arithmetic on local 'innerload' (a nil value)
Conky: llua_do_call: function conky_main execution failed: /media/5/conky/sapristi/gauges.lua:69: attempt to perform arithmetic on local 'innerload' (a nil value)
Conky: llua_do_call: function conky_main execution failed: /media/5/conky/sapristi/gauges.lua:18: attempt to perform arithmetic on a nil value

I cannot find the "function conky_" in a few of the LUA files:

See this
mrpeachy - You ROCK ON!

Specifically this part:

function conky_main()

This is our main function and the one we will set in the conkyrc for lua_draw_hook. If you open a lua script and not sure which function to set in conkyrc, look for conky_ in the function name.

In my test conky:

lua_load /media/5/conky/sapristi/global.lua
lua_draw_hook_pre conky_main
  ## function conky_main()
#lua_load /media/5/conky/sapristi/clock.lua
#lua_draw_hook_pre conky_clock_applet

#lua_load /media/5/conky/sapristi/clock_text.lua
#lua_draw_hook_pre clock_text_applet

#lua_load /media/5/conky/sapristi/functions.lua
#lua_draw_hook_pre   ## function conky_something() does NOT EXIST

#lua_load /media/5/conky/sapristi/conf.lua
#lua_draw_hook_pre   ## function conky_something() does NOT EXIST

#lua_load /media/5/conky/sapristi/gauges.lua
#lua_draw_hook_pre  ## function conky_something() does NOT EXIST

## -- NOT USED
#lua_load /media/5/conky/sapristi/battery.lua
#lua_draw_hook_pre conky_batt

Notice the error is in guages ... and ## function conky_something() does NOT EXIST


RE: Time displayed - the 2 LUA clock scripts that sapristi is using show time in 2 formats:

  • clock.lua - shows time in a 12 hour AM/PM format - you are using my 24Hour image behind it.  smile

  • clock_text.lua - shows the time in 24 hour format.

Change the clock_text.lua to use AM/PM time ( %I vs %H ) unless you change the "clock.lua" itself to one that can use 24 hour time.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#113 2016-11-25 17:06:14

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

Re: Conky - Calendars / Clocks / Time

Some 12 hour clock faces to play with: Jy6Hmj2C.jpg

Top Left - Tpp Right

Middle Left - Middle Right

Bottom Left - Bottom Right

Bottom Centre

I don't think I have ever used these being a 24HR man  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#114 2016-11-26 10:46:08

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky - Calendars / Clocks / Time

^ El Conkystador,

many cordial thanks!

Especially for the link to the lua-functions. Mrpeachy is everywhere. wink

You did not need to do the work. It was just my curiosity and it was satisfied.  smile

Offline

#115 2016-11-26 15:24:26

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

Re: Conky - Calendars / Clocks / Time

Oh I did that because I'm interested too, and the 12 hour clock faces I have here were really old and well not do good.  What really nice is that mrpeachy's work lives on and in the conky creator's own blog as well.

BTW: I had some more 'offline' time again yesterday so I worked on some 24 hour clock faces.

I start off with the International Conkystadors Clock: aO1EaDxX.jpg
and then I got serious.

This bLcSbFDO.jpgbecame this EkMLsMQb.jpg

Because I'm not good enough with GIMP to delete the hands and reconstruct the clock itself.

But another one worked out fairly well.

This 2coiBrGh.jpgbecame this TWpE8m3g.jpg

And last but not least

This JbJ1dNMT.jpgbecame 3Rmkll5E.jpg.

So there are a few more options now.

And for anyone that wants 12 hour clock faces with 24 hour notations as well:
EL33bktV.jpg N9Op5xJR.jpg


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#116 2016-11-26 20:20:43

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky - Calendars / Clocks / Time

Wow you're a gold boy! O:)
Tell me when you have "offline time" again...  lol lol cool

The two are good
http://imgbox.com/3Rmkll5E
http://imgbox.com/TWpE8m3g
Exquisite, Thanks

and this allowed not see my wife  roll
http://imgbox.com/aO1EaDxX

Offline

#117 2016-11-26 22:07:36

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

Re: Conky - Calendars / Clocks / Time

^ lol  lol  lol  lol

Yea, my favourites as well.

And I don't allow my wife to see it either.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#118 2016-12-04 21:25:37

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Conky - Calendars / Clocks / Time

Howdy from Texas to the many talented conky coders on this forum!

This forum looks just right for the following request. In error I posted this in the weather scripts forum. I apologize for the incorrect forum post.

I am really fond of the following chronographs and would like to see if I can get the scripts for these.

chrono1.jpg
chrono2.jpg
chrono3.jpg

Thanks in advance.

Last edited by rwyarbrough (2016-12-04 22:05:14)

Offline

#119 2016-12-05 01:45:19

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

Re: Conky - Calendars / Clocks / Time

They are all mine, and I've been looking for them.  smile

The top one is one that was tweaked by DiderT over on the FR-Ubuntu forum and a French version of it can be found at ConkyPitStop if you want to try it before I find mine.

It's REALLY bothering me that I can't fine them.
The bottom three are just different tweaks of the same chronograph.

I WILL FIND THEM ... I WILL FIND THEM ... I WILL FIND THEM ... I WILL FIND THEM ...
I WILL ... I WILL ... !!!  big_smile


This is the first time I've not been able to find something.
------
Please note: thumbnails  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#120 2016-12-05 07:28:17

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

ConkyPitStop

Is the site http://conky.pitstop.free.fr ?
When I try to access it I receive the error:
"This site can’t be reached: conky.pitstop.free.fr took too long to respond. ERR_CONNECTION_TIMED_OUT"
I can get to http://free.fr ok

Sector11 wrote:

I WILL FIND THEM ... I WILL FIND THEM ... I WILL FIND THEM ... I WILL FIND THEM ...
I WILL ... I WILL ... !!!  big_smile

I have all the confidence in the world that you will find them and as awesome as they are - I can wait until you do.

Sector11 wrote:

This is the first time I've not been able to find something.

I think I have to look for stuff I can't find when I need it the most (thinking I put it somewhere where I couldn't possibly lose it) at least once a week... I'm seriously looking into some type of disk cataloging program/database where I can make sure all of my drives over all the different systems and external drives I have are included where I can search that database to find stuff...

Last edited by rwyarbrough (2016-12-05 07:29:24)

Offline

Board footer

Powered by FluxBB