You are not logged in.

#26 2018-05-14 20:55:37

hhh
That's easy!
Registered: 2015-09-17
Posts: 6,091
Website

Re: fortune notifications?

^ Of course, the notification timeout can be adjusted via the Main Menu>Preferences>Notifications

Online

#27 2018-05-15 01:18:27

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

ohnonot wrote:

^ copyright, i'd steer clear of it.
maybe the copyright holders have a lawyer-bot that has nothing better to do then crawl the web and sniff out fair use violations...

Yes, not worth the effort. I'll try and make it so custom icons can be easily added to the bl-fortune call, for users who don't care. cool

johnraff wrote:

The lab flask is OK but has a watermark. Maybe something from openclipart would be safest.

there's an svg of a chemical flask/beaker in my previous post, all grey, that does NOT have any watermark.
personally, i like the abstraction: beaker == beaker

Considering the number of people who miss the CrunchBang>Muppets>BunsenLabs connection, I wonder how many would pick up on flask>Beaker? Also, the grey image is a bit dry for an entertainment widget, no? Perhaps the beaker-flame by nore that you posted earlier? https://forums.bunsenlabs.org/viewtopic … 818#p50818

martix wrote:

As a sidenote it's a bit unfortunate if a fortune is too long and the notification disappeares before someone finished reading.

We discussed this a bit before:
https://forums.bunsenlabs.org/viewtopic … 741#p50741
https://forums.bunsenlabs.org/viewtopic … 781#p50781
https://forums.bunsenlabs.org/viewtopic … 801#p50801
https://forums.bunsenlabs.org/viewtopic … 873#p50873
but eventually decided to just leave it to the user's notification settings. We could set a time of, say, 20000 ms (or even longer) just for the fortunes though. It wouldn't affect other notifications.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#28 2018-05-15 10:01:21

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

Ohnonot, I forked your repo and added a debian/ directory: https://github.com/BunsenLabs/fortune-m … ree/helium
Next time you add something, I can do a 'git pull' to the master branch, merge that into 'helium', update the changelog and a new package will be ready to release.

Provisional deb: https://www.dropbox.com/s/9puk6z9vlsiqc … l.deb?dl=1

A few things:
*) Should we release this package, preserving its independence as 'fortune-mod-cbbl', or joining the BL family as 'bunsen-fortune'? (It doesn't depend on any BL packages.)
*) I've used bunsen-beaker.svg (many thanks @nore!) as a copyright-safe beaker icon - easy enough to change in the future if something else turns up, and users can set other icons when running bl-fortune. (See 'bl-fortune --help' or 'man bl-fortune'.)
*) The notify-send title is '...' , would something else be better?
*) Let's look how the messages appear and see if we should do any preformatting in bl-fortune before sending them to notify-send.
*) It's not necessary to use bl-fortune to see these; regular 'fortune cbbl' works too.
*) README.md is in the docs, although some of it doesn't apply to the Debian package. I've left out mk.sh, though, because it doesn't have anything to do now the files are installed to /usr/share/games/fortune.
*) This package isn't in the BL repo yet, but once the name is finalized, and the other devs agree, then it can surely go in. cool


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#29 2018-05-15 13:20:53

martix
Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: fortune notifications?

hhh wrote:

^ Of course, the notification timeout can be adjusted via the Main Menu>Preferences>Notifications

That's correct. However if it is set to a high number, it takes too long to disappear for short fortunes (if someone does not click on it).

Offline

#30 2018-05-15 18:35:20

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

^ the call to bunsen fortunes could easily be wrapped in a script that calculates the timeout. click the links johnraff provided, there has been some thoughts already. maybe that could be your contribution?


johnraff wrote:

Ohnonot, I forked your repo and added a debian/ directory: https://github.com/BunsenLabs/fortune-m … ree/helium
Next time you add something, I can do a 'git pull' to the master branch, merge that into 'helium', update the changelog and a new package will be ready to release.

yes, i'll keep posting soemthing like "added & pushed" to the quotes thread, just like i've been doing.
cool!


johnraff wrote:

Considering the number of people who miss the CrunchBang>Muppets>BunsenLabs connection, I wonder how many would pick up on flask>Beaker? Also, the grey image is a bit dry for an entertainment widget, no?

i think you're absolutely right there.
how about this one then?

Perhaps the beaker-flame by nore that you posted earlier? https://forums.bunsenlabs.org/viewtopic … 818#p50818

yes, why not!

Offline

#31 2018-05-16 06:23:03

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

ohnonot wrote:

^ the call to bunsen fortunes could easily be wrapped in a script that calculates the timeout.

The script bl-fortune already exists, so it would be easy to put a bit of extra code in there.

For that matter, randomly chosen icon, randomly chosen notification title...

(For the title, I first tried 'meep' but somehow it didn't look so great.)

@ohnonot I was going to ask if the deb worked OK for you, but forgot you use Arch. roll


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#32 2018-05-23 06:48:59

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

^ have to fire up my virtual machine for that, maybe tonight.

Offline

#33 2018-05-23 07:20:04

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

As this is your project @ohnonot, I'll leave the final choices to you, and just apply them. smile


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#34 2018-06-20 07:18:57

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

@ohnonot how shall we move this forward?


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#35 2018-06-21 05:46:06

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

sorry, i think i misread your previous post here; the final choices about what?

i can write a wrapper that calculates the time out.
i just had a look; the bl-fortune script does not seem to exist yet.
i can write that.

i have not gotten around to testing the .deb yet :redface:, but my sommer holiday starts today and i certainly have more time now.

and the icon, too?
i favor this one: https://openclipart.org/download/210252 … ortune.svg
i think it goes fairly well with the paper icon theme and a dark background.

afaiu, i don't have to do anything about the .deb packaging.

btw, johnraff, i'm moving away from github. definitely.
sources will be available on framagit.org/ohnonot or notabug.org/ohnonot - both use git - which would bunsenlabs prefer?

Offline

#36 2018-06-21 06:04:41

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

In reverse order:

Any git repo which can be accessed via the web from a local git will be OK - so probably either of those.

You don't have to write anything new - I think the .deb does the job now as it is, it just needs tweaking in accordance with your preferences! smile

Icon: OK it shall be done.

The bl-fortune script is in debian/bin: https://github.com/BunsenLabs/fortune-m … bl-fortune All your files are imported as-is with a 'git pull' and all the packaging is done in the debian directory. The fortune data-base is automatically compiled from the current cbbl at the time the package is built.

If you think the display time needs to be adjusted in accordance with the length of the quote, then if you'd like to write a bit of code we can add it to bl-fortune. Now the default is 20s - the question is whether that would be annoyingly long for short quotes, or not enough for long ones?

Other questions and details were here: https://forums.bunsenlabs.org/viewtopic … 862#p71862

Last edited by johnraff (2018-06-21 06:08:43)


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#37 2018-06-21 06:31:46

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

johnraff wrote:

Other questions and details were here: https://forums.bunsenlabs.org/viewtopic … 862#p71862

that's all fine.
i think the package should be called "bunsen-fortune" or whatever is in accordance with bunsenlabs naming.

i think the fortune notification works best without a title. But i can make this an option in the bl-fortune script.

as i said, starting in less than 24h i'll have more time for this.

Last edited by ohnonot (2018-06-21 06:32:09)

Offline

#38 2018-06-21 23:40:30

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

I have moved all my repositories to https://framagit.org/ohnonot and https://notabug.org/ohnonot
currently i'm trying to use notabug as the main one, so the fortunes should now be pulled form here: https://notabug.org/ohnonot/fortune-mod-cbbl

Offline

#39 2018-06-22 01:08:26

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

^OK I'll reconfigure the BL repo to pull from notabug.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#40 2018-06-22 03:53:25

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

I added the modified bl-fortune script to my repo, in a separate bl/ folder.
works well for me, but please test some more because i use dunst which might behave somewhat differently to bunsenlabs' notifier.
there's very likely to be more commits to that, stay tuned!

in the end, i think i prefer nore's beaker icon.

Last edited by ohnonot (2018-06-22 09:53:14)

Offline

#41 2018-06-22 07:45:03

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

OK I'll hold off doing anything else till your repo has settled into its final form.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#42 2018-06-22 10:02:21

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

preliminary tests in a Helium VM turned out fine so far.
I installed your provisional .deb: https://www.dropbox.com/s/9puk6z9vlsiqc … l.deb?dl=1(*)
cloned my repo.
symlinked the bl-fortune script to ~/bin.
uncommented the last line in autostart.
and logged out/in a couple of times.
it seems to be working fine.

here's a manual testing scrot:
https://i.imgur.com/8w40QFs.png

i don't see any problems here; the rest is discussion:
- are the timeout values ok?
- is the icon ok?

and, more general:
- why are notifications on the top right, where they cover the conky?
- are there enough cbbl fortunes so that this doesn't get old really fast?

(should the recent discussion in this thread be split off, and pushed to the top somehow, to get more people testing/answering?)

(*) i decided to split the notification summary off at the first colon ':' - this required very slightly editing a few fortunes, and me to stick to that format from now on.
so maybe your provisional .deb is out of date now.

Last edited by ohnonot (2018-06-22 10:08:28)

Offline

#43 2018-06-23 03:22:36

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

Thanks for testing and improvements!

ohnonot wrote:

cloned my repo.
symlinked the bl-fortune script to ~/bin.

You did this to override the package's bl-fortune with your more recent one from the repo, so you could test your changes, right?

here's a manual testing scrot:
https://i.imgur.com/8w40QFs.png

Looks good - I like your change to the message formatting. Did the display times work out OK for you? I'll give your new bl-fortune script a run here too.

- why are notifications on the top right, where they cover the conky?

Default notification position - easily user editable though. Surely conky is getting covered by something all the time? (I use an on-demand conky myself, tied to a key and coming on top, in the centre,  with an opaque background.)

- are there enough cbbl fortunes so that this doesn't get old really fast?

I did wonder this myself to be honest. I can offer a Tao-te-ching database to expand it a bit (ancient discussion with Rhowaldt on #!) and maybe we need to quickly drum up some more contributions, or look elsewhere for some more fortune files to add?
(fortune can pick from multiple databases, right?)

(should the recent discussion in this thread be split off, and pushed to the top somehow, to get more people testing/answering?)

Doesn't recent posting do that anyway? We're still on the original topic, I guess.

maybe your provisional .deb is out of date now.

Yes I'll put up a newer one for people to test soon.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#44 2018-06-23 08:42:13

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

johnraff wrote:

You did this to override the package's bl-fortune with your more recent one from the repo, so you could test your changes, right?

yes.
the fortunes used are the ones from the .deb.

Did the display times work out OK for you?

after some testing, i came up with this:

#~ It is said that average reading speed is ~250 words per minute for adults.
#~ That means 4.166667 words per second.
#~ I think it's fair to assume that the text should linger quite a bit longer,
#~ almost twice as long. make that 2.5 words per second, that's a delay of 400ms
#~ per word:
delay=400
add=5000 # let's add a few extra seconds to message expiry time

'delay' is configurable, 'add' not (yet), and beyond that one can still choose the -t option for a fixed expiry time.
actually now i think about it i'm not sure 'add' is really necessary, i guess i'll do some more testing to feel that out.

- are there enough cbbl fortunes so that this doesn't get old really fast?

I did wonder this myself to be honest. I can offer a Tao-te-ching database to expand it a bit (ancient discussion with Rhowaldt on #!) and maybe we need to quickly drum up some more contributions, or look elsewhere for some more fortune files to add?
(fortune can pick from multiple databases, right?)

yes, fortune can pick from multiple databases.
the option is alreadythere in bl-fortune.
maybe something to mention in ~/.config/openbox/autostart.

so nore's beaker face it is, then?
i think they effectively already gave permission to use it, but i'll pm them nevertheless.

Offline

#45 2018-06-23 09:10:12

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

ohnonot wrote:

'delay' is configurable, 'add' not (yet), and beyond that one can still choose the -t option for a fixed expiry time.
actually now i think about it i'm not sure 'add' is really necessary, i guess i'll do some more testing to feel that out.

I tend to think a certain added fixed time will be needed just for the time to notice that a notification has popped up, before even starting to read it. In fact, if the fixed time is long enough, I'm not sure if it's really necessary to adjust it for fortune length at all. Would a bit of lingering be that annoying? It's your call though.

yes, fortune can pick from multiple databases.
the option is alreadythere in bl-fortune.
maybe something to mention in ~/.config/openbox/autostart.

That sounds like the easiest way to go.

so nore's beaker face it is, then?
i think they effectively already gave permission to use it, but i'll pm them nevertheless.

Sounds good.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#46 2018-06-23 09:19:13

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

johnraff wrote:

In fact, if the fixed time is long enough, I'm not sure if it's really necessary to adjust it for fortune length at all. Would a bit of lingering be that annoying? It's your call though.

we had that discussion here on the forums.
the quotes differ a lot in length.
of course one can always click on them if they linger too long, but the default 20s isn't really enough for the longest.
in any case, it's all user configurable - both the per-word delay, or the fixed timeout.

Offline

#47 2018-06-24 02:55:20

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,669
Website

Re: fortune notifications?

ohnonot wrote:
johnraff wrote:

In fact, if the fixed time is long enough, I'm not sure if it's really necessary to adjust it for fortune length at all. Would a bit of lingering be that annoying? It's your call though.

we had that discussion here on the forums.

And I thought the consensus then was not to bother? But anyway:

the quotes differ a lot in length.
of course one can always click on them if they linger too long, but the default 20s isn't really enough for the longest.
in any case, it's all user configurable - both the per-word delay, or the fixed timeout.

Fair enough - let's do it.


John
--------------------
( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.

Offline

#48 2018-06-24 06:43:44

nore
>2⁹
From: blueberry bush
Registered: 2015-09-29
Posts: 389

Re: fortune notifications?

ohnonot wrote:

so nore's beaker face it is, then?
i think they effectively already gave permission to use it, but i'll pm them nevertheless.

From my point of view, do what you like with it (CC0), it was just a quick scratch made during conversation. But as it is recognizably  based on a trademarked character owned by Disney, I hope it counts as a "derivative work" or "transformative use".

Offline

#49 2018-06-24 07:10:16

hhh
That's easy!
Registered: 2015-09-17
Posts: 6,091
Website

Re: fortune notifications?

nore wrote:
ohnonot wrote:

so nore's beaker face it is, then?
i think they effectively already gave permission to use it, but i'll pm them nevertheless.

From my point of view, do what you like with it (CC0), it was just a quick scratch made during conversation. But as it is recognizably  based on a trademarked character owned by Disney, I hope it counts as a "derivative work" or "transformative use".

Screw it, they can sue us.

Online

#50 2018-06-24 09:34:50

ohnonot
...again
Registered: 2015-09-29
Posts: 3,190
Website

Re: fortune notifications?

i just wrote this to nore in a pm:

oh, i never thought about that.
i just researched if we're violating anyone's rights, and it's messy.
assuming we're talking about fan art here, i found:
https://www.quora.com/Is-fan-art-fan-fi … yrightable
https://www.plagiarismtoday.com/2010/05 … copyright/
https://www.youtube.com/watch?v=utM2q5XE7z4
of course most articles talk about US laws.
each of them states that for most cases there's absolutely no reason to worry, but essentially you cannot be 100% sure that the law is on your side...
nevertheless i will rename the icon to something not beaker, and that is that for me.

if you don't mind, i'd prefer to not put a seperate license on the icon?

how about bunsen_face.svg?

Offline

Board footer

Powered by FluxBB