How to replace a clock with Linux Mint?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read this

How to replace a clock with Linux Mint?

Postby ericramos1990 on Tue Sep 10, 2013 4:07 pm

Hey guys, I am pretty much a minimalist, and I recently got rid of my clock in my room to save electricity (not much but it still would make a difference!)
I am a minimalist, but I still own a desktop since it I use it for everything including movies, games, music, etc.

I have been using the awesome cron to play a sound every thirty minutes.

It looks like this:
00,30 * * * * aplay /home/eric/notifications/clocksound.wav

It has been working perfectly, but I want to step my game up and also have a visual notification that doesn't interrupt whatever I am doing, and closes in about 3 seconds or so.

Preferably, I would like to not install anything additional.
Perhaps display a zoomed in terminal output with the command: date '+%H:%M'

Does anyone have any suggestions?
Thanks guys, keep on Linuxing!
Keep on tuxin' =)
User avatar
ericramos1990
Level 3
Level 3
 
Posts: 129
Joined: Sun Jul 21, 2013 11:54 am

Linux Mint is funded by ads and donations.
 

Re: How to replace a clock with Linux Mint?

Postby WharfRat on Tue Sep 10, 2013 4:29 pm

ericramos1990,

Here's a minimalist approach:
Code: Select all
notify-send -u normal -t 6000 "$(date)"


Good luck :wink:
Image
User avatar
WharfRat
Level 10
Level 10
 
Posts: 3093
Joined: Thu Apr 07, 2011 8:15 pm

Re: How to replace a clock with Linux Mint?

Postby ericramos1990 on Tue Sep 10, 2013 4:31 pm

Hey thats perfect!!

However, would it be possible to make the text and box a bit larger?

Sometimes I watch movies, and I am a bit far from the screen, so I wouldn't be able to clearly see!

Thanks friend, that was really helpful!
Keep on tuxin' =)
User avatar
ericramos1990
Level 3
Level 3
 
Posts: 129
Joined: Sun Jul 21, 2013 11:54 am

Re: How to replace a clock with Linux Mint?

Postby WharfRat on Tue Sep 10, 2013 5:22 pm

You can't change the font for date, but you can format the output a little

Code: Select all
notify-send -u normal -t 6000 "It is now: $(date "+%n%n%A%n%n%B %d%n%n%r%n%n%Z")"


Maybe buy a wind-up clock if this doesn't work :D
Image
User avatar
WharfRat
Level 10
Level 10
 
Posts: 3093
Joined: Thu Apr 07, 2011 8:15 pm

Re: How to replace a clock with Linux Mint?

Postby ericramos1990 on Tue Sep 10, 2013 5:30 pm

haha nice!

I modified it to be simpler and just show the hour and time

Code: Select all
notify-send -u normal -t 6000 "$(date '+%H:%M')"


To each his own ^_^

I know I can change the icon too to a little clock perhaps lol.

But darn too bad we can't change the size of it or even the position. (LARGE and in the dead center for 3 seconds!)
I will keep searching for that and post if I find anything.
Keep on tuxin' =)
User avatar
ericramos1990
Level 3
Level 3
 
Posts: 129
Joined: Sun Jul 21, 2013 11:54 am

Re: How to replace a clock with Linux Mint?

Postby ericramos1990 on Tue Sep 10, 2013 5:55 pm

Yeah no luck =(

Would you know any other alternatives WharfRat?
Keep on tuxin' =)
User avatar
ericramos1990
Level 3
Level 3
 
Posts: 129
Joined: Sun Jul 21, 2013 11:54 am

Re: How to replace a clock with Linux Mint?

Postby WharfRat on Tue Sep 10, 2013 6:42 pm

ericramos1990 wrote:Yeah no luck =(

Would you know any other alternatives WharfRat?

Maybe take a look at zenity's options.
Image
User avatar
WharfRat
Level 10
Level 10
 
Posts: 3093
Joined: Thu Apr 07, 2011 8:15 pm

Re: How to replace a clock with Linux Mint?

Postby ericramos1990 on Tue Sep 10, 2013 7:26 pm

LOL good try I actually considered that as well!
However, I am limited to the same options with zenity too:

zenity --notification [--window-icon=path] [--timeout=seconds] [--text=text] [--listen]

Also xmessage, but it takes away focus, I would like something that doesn't get in the way of anything.

I probably won't find a SIMPLE solution, but that's okay thanks a bunch for the help
Keep on tuxin' =)
User avatar
ericramos1990
Level 3
Level 3
 
Posts: 129
Joined: Sun Jul 21, 2013 11:54 am

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: norm.h, Reorx, Yahoo [Bot] and 38 guests