You are not logged in.

#21 2018-05-14 04:47:08

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: fortune notifications?

i thought about what i wrote yesterday and most of it does not apply to making a (precompiled) debian package. sad
i'm sure you'll figure it out.

there was talk about an icon a while back, i like this, but copyright issues.

Here's one that's likely not copyrighted. no really, i like it.

more copyright-free options:
an actual fortune cookie - examples: https://play.google.com/store/apps/deta … od.fortune
a stylised chemical glass thingie (that's not actually a beaker, but i think it looks
better): https://st3.depositphotos.com/4177785/1 … r-icon.jpg

to clarify, these are just examples, but these sort of images are definitely available at openclipart or so.
https://openclipart.org/search/?query=beaker
https://openclipart.org/search/?query=fortune
etc.
i'm sure it's possible to gimp/inkscape something from there, that would go well with the paper icon theme, maybe:
Beaker.svg

Last edited by ohnonot (2018-05-14 04:58:16)

Offline

#22 2018-05-14 05:15:24

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: fortune notifications?

ohnonot wrote:

i like this, but copyright issues

I like that one too... make a bunsen-nonfree package to hold stuff like this?

The lab flask is OK but has a watermark. Maybe something from openclipart would be safest.
As you say, we have gimp wiz's here who could improve on anything we pulled in.

Last edited by johnraff (2018-05-14 05:16:44)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#23 2018-05-14 05:55:06

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: fortune notifications?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

#24 2018-05-14 18:35:39

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: fortune notifications?

^ 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...

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

Last edited by ohnonot (2018-05-14 18:36:10)

Offline

#25 2018-05-14 20:13:40

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

Re: fortune notifications?

As a sidenote it's a bit unfortunate if a fortune is too long and the notification disappeares before someone finished reading. Sometimes I get the feeling that certain messages appear very often, others rarely, but it has been working fine so far.

Offline

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

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,032
Website

Re: fortune notifications?

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


No, he can't sleep on the floor. What do you think I'm yelling for?!!!

Offline

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

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
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.


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

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

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
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


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

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: 5,592

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: 12,550
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


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

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

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

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: 12,550
Website

Re: fortune notifications?

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


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

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

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: fortune notifications?

@ohnonot how shall we move this forward?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

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

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

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: 12,550
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)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

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

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

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: 5,592

Re: fortune notifications?

I have moved all my repositories

Last edited by ohnonot (2021-06-07 16:20:34)

Offline

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

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,550
Website

Re: fortune notifications?

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


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

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

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

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

Board footer

Powered by FluxBB