LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 11-05-2018, 01:08 PM   #1
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 148

Rep: Reputation: Disabled
Shelf Clock - modifying? author?


This is a non-issue but I'm curious.

I want to get rid of the commas and periods in the date on my tray clock.
For example right now it says "Mon, 5 Nov, ..."

I believe this is some result of my scaling setting and tray size or something that makes it not fit the year, and so puts ellipses instead. And to my knowledge there's no way to adjust width. So, I was thinking, who needs commas anyway, probably without the commas the year would fit, so that's one idea, although maybe not on two digit days. But I would be happy enough with just "Mon 5 Nov" - remove all punctuation.

How would I go about fixing this myself? I'm certainly no expert programmer, but is there source code I can just modify and recompile with available tools? If so I'd think I could handle finding and changing a little text...

Or who is it that maintains that program, or how would I figure that out myself, if I wanted to contact the author myself?
 
Old 11-05-2018, 01:59 PM   #2
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
Hello

I am a maintainer

Send a screenshot and theme name. I will tell ya how to do that.

Stefan
 
1 members found this post helpful.
Old 11-05-2018, 02:24 PM   #3
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
OK, I have just played with the clock gadget. The easiest way is to turn on the seconds in the clock settings dialog. Now whole date is shown.

http://www.enlightenment.org/ss/e-5b...1.84538642.jpg

Stefan
 
1 members found this post helpful.
Old 11-05-2018, 06:51 PM   #4
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 148

Original Poster
Rep: Reputation: Disabled
I realize that, and it does make it wider and show the year. However I rarely forget which year it is so don't need that displayed. Nor do I really like seconds constantly changing, and actually would prefer it as narrow as possible. I also wouldn't mind playing with the time text also, removing the AM/PM and the leading 0 on PM times, as I rarely mix up 11am with 11pm or noon with midnight. That's why I wondered if maybe its some open source thing I could play with.
 
Old 11-06-2018, 07:54 AM   #5
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
OK

I understand what you need. It is "just" a matter of knowledge, time and effort. It is not so hard to decompile the theme to see source scripts. The phase 2 is much harder. It is hacking. You have to be familiar with edc scripts and module source code which is emiting or receiving signals. In case you are interested, tell me. I will show you how to do that. At least decoding

Stefan
 
1 members found this post helpful.
Old 11-06-2018, 01:48 PM   #6
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 148

Original Poster
Rep: Reputation: Disabled
Hmmmm. I was hoping it was just some type of code like c or python or something I could just hack at easily by trial & error, since I only wanted to change displayed text. Maybe more complicated than I imagined. I would be interested if there is a tutorial or instructions but I wouldn't want to have to ask you step-by-step, etc. I do have some experience programming although certainly no expert, and only "language" I've ever written full programs from scratch is something called VEE and used for instrument control at a previous job. (Well I mean technically I've written programs from scratch in basic and c but nothing useful.)
 
1 members found this post helpful.
Old 11-06-2018, 02:10 PM   #7
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
Yes, you are right, it is not as easy as it seems to be. Theming was a big mystery for me in the beginnings and I still not feel like an expert. I just did what you said. Trial and errors. But this method did not work as I expected. I had to find some doc and start learning. I also had to learn C because I wanted to hack some modules and create a new one (moksha-module-stickynotes is its name). This way I have to thank Robert Wiley (ylee) for leading me.
I am not sure I am a good teacher in this stuff. I can send some links if you want but don't expect I can provide whole support. I have no time for this. We are too tiny crew and we still have big to-do list. Anyway new active and creative members would be fine. I provided some support to bob01 user by mail. We are working on MokshaSeven theme. He made some icons and color changes. He also has got some interesting ideas with CPU module. All this needs lots of time and effort.

Anyway,

bright GreenTheme menu is gone after recompiling under BL 5.

https://i.imgur.com/72IoJk2.jpg

Stefan
 
1 members found this post helpful.
Old 11-06-2018, 04:52 PM   #8
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
Hello there again

I am pretty sure, this could be fine for you.
https://i.imgur.com/ELn4Ezs.jpg

clock.edc theme file

set_min_size(tot * mul, 16);
to
set_min_size(tot * mul * 1.5, 16);

It was all what I should do. This hack took me "just" 4 hours
Anyway, good catch. I will commit this to MokshaGreen as well as the default theme. Thx

Stefan

Last edited by the_waiter; 11-06-2018 at 05:02 PM.
 
1 members found this post helpful.
Old 11-08-2018, 03:38 PM   #9
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
OK, deb package with last MokshaGreen theme ready for uploading to our repository.
I am waiting for Jeff or Ylee to have some spare time to upload.

Enjoy

Stefan
 
Old 11-09-2018, 12:57 AM   #10
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 148

Original Poster
Rep: Reputation: Disabled
Thanks. I hate to seem ungrateful after you spending 4 hours, and honestly what you did is better than showing elipses instead of the year of course so you did "fix" somethiing. In my case I wanted to get rid of the year and the commas completely, in my opinion they are unneeded.
 
Old 11-09-2018, 09:32 AM   #11
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
NO, it is OK. I understand your point of view. Anyway my fix will stay as it is. Many users can stand the year in the date. As far as you are concerned I can suggest you a solution. It is called tclock module in moksha-module-tclock package. You can configure your time and date format as you wish according the strftime commands.

this is the reference:
http://www.cplusplus.com/reference/ctime/strftime/

and here the screenshot with TClock on the desktop as well as on the shelf
https://i.imgur.com/yyV6ovT.jpg

Moreover I added the size and color text features to the module as well as time shift possibility.
I hope this will fulfil your needs

EDIT: tclock module with your need
https://i.imgur.com/L5Ztw8y.jpg

Stefan

Last edited by the_waiter; 11-09-2018 at 05:21 PM.
 
1 members found this post helpful.
Old 11-10-2018, 04:22 AM   #12
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 148

Original Poster
Rep: Reputation: Disabled
Well yes, of course, your fix should stay as is, you did fix it, you made it show year instead of ellipses. Again I hate to seem ungrateful and based on the capitol NO I think I annoyed you. I really am sorry. I honestly was just curious to see if I could play with it myself, this really was a non-issue for me in the first place.

Yeah I played with tclock once before. Maybe I'll try again, can't remember exactly why I didn't like it, maybe if I recall correctly it didn't bring up a calendar? Anyways, I like the default clock, just wanted to eliminate the punctuation in the date, and if I was lucky eliminate leading zeros on PM times and drop the AM/PM indicator..
 
Old 11-10-2018, 05:31 AM   #13
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
Everything is possible. Maybe after all these words you are a real candidate for playing with the edje code and hack it by yourself. If you are interested just let me know. I can explain basics.

Stefan
 
Old 11-10-2018, 05:35 AM   #14
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 9,957
Blog Entries: 7

Rep: Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448Reputation: 2448
just out of curiosity, isn't there a setting to use a "custom date format"?
almost every panel i ever used has that.
no need to hack source & recompile executables, i'd think???
 
Old 11-10-2018, 05:51 AM   #15
the_waiter
Bodhi Developer
 
Registered: Jun 2018
Location: Banská Bystrica, Slovakia
Distribution: Bodhi Linux
Posts: 146

Rep: Reputation: 82
Yes, there are some date settings but they are limited.

https://i.imgur.com/DXHolnb.jpg

The tclock module has all strftime possibilities but as enigma said and he is right there is not calendar popup. BTW, there is also a standalone calendar module available in our repo.

Stefan
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shelf Clock not updating after return from screen blank. enigma9o7 Bodhi 3 08-12-2018 04:15 PM
LXer: Putting SOPA on a shelf LXer Syndicated Linux News 3 01-16-2012 10:21 AM
rsync to an off-the-shelf NAS JacekZ Linux - Networking 3 08-21-2006 09:32 PM
Is there any off the shelf wlan cards for FC5? tds2000_us Linux - Wireless Networking 1 07-30-2006 02:55 PM
Off the Shelf Desktop and Laptop PC's fieldyweb Linux - Hardware 6 02-18-2006 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration