![]() ![]()
So I created two small Python scripts that add those features I wanted:ġ) Launch the digital clock with a custom message specified on the command lineĢ) If the clock was already launched, running the script again will terminate the existing clock One problem with xclock is that it's strftime format does not handle the newline characther '%n', so I couldn't fit a message properly in the display. I also wanted to display a message so I would know why the clock poped up. ![]() I wanted to use this from my mail client's calendar as an alarm that will get my attention. (Been looking for an excuse to learn Gambas anyways.) But, if you'd like me to pursue this, I've got some free-time available for a fun little side-project. I'm thinking someone could do this better in C++. #Digital desktop clock download for ubuntu code#(I'd like to be able to do that w/o linking in some external code libraries, but might not work.) When alarm goes off, could make screen blink a few times, or (not sure how yet w/o working in more lib's) have it play a sound. EG: You could set alarms for 6am, 12pm & 6pm, but only have the 12pm one set to go off. On options menu, allow user to adjust the following.Ģ) Background / Foreground colors of clockģ) Allow various date / time formats (military time, standard time, date + time, date only, time only, hh:mm, hh:mm:ss, milliseconds, etc)Ĥ) Allow several 3 alarm times, and let use set which ones will chime off and which won't. I'm thinking the following options might be interesting to pursue.ġ) first & foremost, add an "Options" button, preferably something that's invisible until moused-over in the corner or something. You wanted an alarm in it, which I could probably do given more time. It's a dinky little program that just updates the clock / timer each second. (Translation: it works fine for me.then again, I have Gambas fully installed. I guess everything it needs to run is right there. But, after dumping the project into an executable, I noticed a JAVA form and such. I know Gambas installed all kinds of crap on my system, and uses QT-based GUI's for development. While it's an executable shell script, I'm not sure if it requires some dependencies to work. (You'll also see an annoying console window popup, which, if you close it, will kill the time window. If it works right, you should see is a black window popup with green time on it (see attached screenshot). The "Clock.zip" contains the "Clock" project folder, and the "Clock.sh" is the executable, which you run like a shell script (IE: usually by just double-clicking on it and selecting "Run" instead of "Display"). I've attached something I whipped together in Gambas real fast (Gambas is Linux's Pseudo Visual Basic IDE).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |