Originally Posted by
wlourf
As I post my entry for the January's CotM here, I just want to say
THANKS to all people who vote for my conky script because I won this contest !!
Also I updated this script, with :
- today's date can now be set anywere in the arc :
yoffset
- today's date can now have an offset (positive or negative) :
xoffset
- the main thing is that
the calendar is draw only at the start of the conky and when the date change (i.e. the calendar is saved in a PNG file and this is this file that will be displayed in the conky) or if the PNG file is deleted : so the conky become really really fast ...
- it can be drawn on the right side of the screen
(more info on my blog)
See you in February maybe
Some great work , but unfortunately it does not work without some fixing :
Code:
~/Desktop/calendar_wheel_1.2a$ conky -c conky-calendar
>>>>>> Conky: conky-calendar: 19: config file error
>1. >> Conky: llua_load: cannot open /home/airtonix/scripts/cal1.2/calendar.lua: No such file or directory
Conky: desktop window (1e00276) is subwindow of root window (157)
Conky: window type - normal
Conky: drawing to created window (0x5000001)
Conky: drawing to double buffer
> 2. >> Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
Conky: llua_do_call: function conky_main execution failed: attempt to call a nil value
...
etc
etc
etc
...
Code:
$ conky -v
Conky 1.7.2 compiled Fri Oct 23 15:55:48 UTC 2009 for Linux 2.6.24-23-server (i686)
Compiled in features:
System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky
X11:
* Xdamage extension
* XDBE (double buffer extension)
* Xft
Music detection:
* MPD
* MOC
General:
* math
* hddtemp
* portmon
* Curl
* RSS
* Weather (METAR)
* Weather (XOAP)
* wireless
* support for IBM/Lenovo notebooks
* nvidia
* eve-online
* config-output
* Imlib2
* ALSA mixer support
* apcupsd
* iostats
* Lua
Lua bindings:
* Cairo
* Imlib2
also two things :
1. conky-calendar
@line48 :
Code:
lua_load ~/scripts/cal1.2/calendar.lua
change to :
Code:
lua_load ./calendar.lua
>> assume the lua file will sit in the same place as the conky script.
>> otherwise you'll need to start creating a README file. to explain why the files need to be split all over the drive and what happens if you do or don't.
2. calendar.lua
@ line31 :
Code:
calendar_file="/home/wlourf/scripts/cal1.2/calendar.txt"
change to :
Code:
local current_directory=assert( io.popen('pwd'):read("*l") )
calendar_file= current_directory .. "/calendar.txt"
>> again, assume all required files to make mod/addon/widget/etc work are to be in the same directory.
all the required files in the same place make the thing more portable... with these changes I was able to get it working.
Bookmarks