Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 29 Jan 2020, 00:49
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
YAD - Tips
Post new topic   Reply to topic View previous topic :: View next topic
Page 53 of 56 [837 Posts]   Goto page: Previous 1, 2, 3, ..., 51, 52, 53, 54, 55, 56 Next
Author Message
fredx181


Joined: 11 Dec 2013
Posts: 4261
Location: holland

PostPosted: Sat 30 Nov 2019, 13:38    Post subject:  

@misko
Quote:
Fredx, If you move the current time to the window title bar, can you think of anything that you would use the first tab for?

Thanks, on itself it's nice, but I'm not sure about it because on my setup the text in the title bar is moving so much (probably depends on font type used for title bar, if it would be Monospace type it should be ok)

@vovchik
Quote:
I like the idea of the current time in the window bar. As for the empty area, what about a checkbox (relative time) and spinbox for relative time-setting (i.e. in fifteen mintues)?

Something to keep in mind, thanks.

@Argolance
Quote:
I had fun internationalizing the first version.... Maybe a little too soon?

Yes probably Wink
Quote:
As for the empty area, what about a checkbox (relative time) and spinbox for relative time-setting (i.e. in fifteen mintues)?

Sorry, I do not understand what you mean.

I think vovchik refers to misko's example where the top part of the GUI is sort of useless (as current time is already displayed on title bar) and can be used for some other options like spinbox for setting relative time (e.g. alarm after 15 min).

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3732
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 30 Nov 2019, 14:06    Post subject:  

Bonsoir,
Thank you!
Right click menu doesn't seem to work here.
IMO, self containing is great from a coding point of view but less from a visual point of view.
May I make a suggestion: I think that the window title: Alarm, the head text "S e t A l a r m" and the button text "Set alarm" are redundant. "S e t A l a r m" as window title, no "S e t A l a r m" before current time and just OK for the button?
And what about "aplay" and "/usr/share/audio/2barks.wav" as defaults?

Cordialement.
191130_192142_619x168_easyshot.jpg
 Description   
 Filesize   14.63 KB
 Viewed   299 Time(s)

191130_192142_619x168_easyshot.jpg


_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4261
Location: holland

PostPosted: Sat 30 Nov 2019, 14:30    Post subject:  

Argolance wrote:
Right click menu doesn't seem to work here.

Strange... works for me, could it be because you directly paste the code in terminal ?
Then it doesn't work because of the menu code contaning "!"
Quote:
IMO, self containing is great from a coding point of view but less from a visual point of view.

My reason to like self containing in general is because it works OOTB copying the code into a script and run it without needing extras.
But we can make later on a .pet containing icons with your setup of course.
Quote:
May I make a suggestion: I think that the window title: Alarm, the head text "S e t A l a r m" and the button text "Set alarm" are redundant. "S e t A l a r m" as window title, no "S e t A l a r m" before current time and just OK for the button?

Yes, fine for me.
Quote:
And what about "aplay" and "/usr/share/audio/2barks.wav" as defaults?

Not sure, aplay cannot play all audio types (2barks.wav should be ok, although not available in all systems)

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3732
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sat 30 Nov 2019, 14:49    Post subject:  

Quote:
could it be because you directly paste the code in terminal ?
Then it doesn't work because of the menu contaning "!"

Sorry, yes it is! Wink
Quote:
But we can make later on a .pet containing icons with your setup of course.

I don't particularly like "my" icons but I find that the red circles are less explicit: you can't guess what it is, it could be any other warning. IMO, it's not slight enough (I mean a bit too noticeable) and we don't know what it's about.
Quote:
Not sure, aplay cannot play all audio types (2barks.wav should be ok, although not available in all systems)

Not sure simple user know where and how to find/type any other player than mplayer which may not be present on all Puppies. Select one of the players installed on the system and listed in the box (using the command "which" or something else)?
Regarding the famous Puppy "waw waw", I was convinced that it was present on all puppies... Confused

Something else: repeat value=0 > repeat endlessly?

Cheers!

Cordialement.

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4261
Location: holland

PostPosted: Sun 01 Dec 2019, 07:33    Post subject:  

Hi all, Re: alarm script, just to let you know, I'm struggling Wink with it, trying to keep support for multiple alarms set and at the same time adding extra options, such as canceling and stopping the alarm (from tray) makes it extra complicated, but I'll probably come up with something within the next days (including some suggestions, thanks Argolance).

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3732
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 01 Dec 2019, 08:17    Post subject:  

@fredx181
See you soon and good luck! Smile

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
misko_2083


Joined: 08 Nov 2016
Posts: 101

PostPosted: Sun 01 Dec 2019, 08:50    Post subject:  

fredx181 wrote:
Hi all, Re: alarm script, just to let you know, I'm struggling Wink with it, trying to keep support for multiple alarms set and at the same time adding extra options, such as canceling and stopping the alarm (from tray) makes it extra complicated, but I'll probably come up with something within the next days (including some suggestions, thanks Argolance).

Fred

Well, you could try "at" command instead of sleep.
That at daemon survives reboot even.

Code:
at -l       # will list pending jobs (or atq)
at -r <num> # will remove job <num>  (or atrm)


Vovchik, relative time is a good idea.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3732
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 01 Dec 2019, 10:59    Post subject:  

misko_2083 wrote:
Vovchik, relative time is a good idea.

I asked above what this means: "relative" time? Rolling Eyes

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
misko_2083


Joined: 08 Nov 2016
Posts: 101

PostPosted: Sun 01 Dec 2019, 11:24    Post subject:  

@Agrolemon, At Sunset, at dawn, at full moon, tomorrow afternoon, at lunchtime, when the fat lady sings...
Well, something like that Laughing
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3732
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 01 Dec 2019, 11:51    Post subject:  

@misko_2083
Don't laugh: I didn't understand because in French, the word "relative" can be understood as the opposite of "absolute" whereas in English, it means "which is related to"! Very Happy
We call them false or fake friends! Wink
Cheers.

_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
vovchik


Joined: 23 Oct 2006
Posts: 1515
Location: Ukraine

PostPosted: Sun 01 Dec 2019, 11:59    Post subject:  

Dear argolance et al.,

Here is a version using your icon style - but as a self-contained tiny svg. What do you think?

With kind regards,
vovchik
yadalarm-tray-argolance.tar.gz
Description 
gz

 Download 
Filename  yadalarm-tray-argolance.tar.gz 
Filesize  2.1 KB 
Downloaded  37 Time(s) 
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3732
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Sun 01 Dec 2019, 12:30    Post subject:  

Bonsoir,
vovchik wrote:
What do you think?

I think it's all good, using these icons or any others! Cool
Thank you a lot.
The fact that the icons are contained in the script itself is a real plus. As fredx181 points out, it works "out of the box"! I thought the possible forms were limited, but I was wrong.
On my side, just for fun, I played with the script - this lets me to better understand how yad works - and possible icon themes (... that maybe be changed into svg files?)

Cordialement.
191201_165429_604x449_easyshot.jpg
 Description   
 Filesize   34.5 KB
 Viewed   165 Time(s)

191201_165429_604x449_easyshot.jpg

191201_161402_639x263_easyshot.jpg
 Description   
 Filesize   21.28 KB
 Viewed   165 Time(s)

191201_161402_639x263_easyshot.jpg

191201_155608_647x665_easyshot.jpg
 Description   
 Filesize   59.84 KB
 Viewed   165 Time(s)

191201_155608_647x665_easyshot.jpg


_________________

A second life for your PCs...
Back to top
View user's profile Send private message Visit poster's website 
fredx181


Joined: 11 Dec 2013
Posts: 4261
Location: holland

PostPosted: Sun 01 Dec 2019, 13:57    Post subject:  

Very nice, Argolance and vovchik !! Cool , looks like you have a similar degree of obsession with this as I have Laughing

Fred

_________________
Dog Linux website
Tinylinux blog by wiak
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1515
Location: Ukraine

PostPosted: Sun 01 Dec 2019, 15:05    Post subject:  

Dear all,

Here is the script with a throbbing alarm bell svg. Smile

With kind regards,
vovchik
yadalarm-tray-bell.tar.gz
Description 
gz

 Download 
Filename  yadalarm-tray-bell.tar.gz 
Filesize  2.61 KB 
Downloaded  33 Time(s) 
Back to top
View user's profile Send private message 
misko_2083


Joined: 08 Nov 2016
Posts: 101

PostPosted: Sun 01 Dec 2019, 17:19    Post subject:  

Argolance wrote:
@misko_2083
Don't laugh: I didn't understand because in French, the word "relative" can be understood as the opposite of "absolute" whereas in English, it means "which is related to"! Very Happy
We call them false or fake friends! Wink
Cheers.

English, French are two crazy languages in which the pronunciation doesn't match the written word. Laughing

Freddie "at" command?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 53 of 56 [837 Posts]   Goto page: Previous 1, 2, 3, ..., 51, 52, 53, 54, 55, 56 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2093s ][ Queries: 12 (0.0401s) ][ GZIP on ]