bs - button shell

Forum rules
General talk about software - if the program is not in the repos, please links to the developer's page or github.
pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

bs - button shell

Unread post by pidsley » Sun Dec 21, 2014 6:16 am

Mentioned in the documentation for miwm, bs (for "button shell") is 134 lines of C (written in 1992) that can create simple panels consisting of labels and buttons.

http://lhf.impa.br/bs/

Image

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: bs - button shell

Unread post by Dr_Chroot » Sun Dec 21, 2014 6:19 am

Fantastic; this is actually quite handy! Thanks, pids :D
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bs - button shell

Unread post by machinebacon » Sun Dec 21, 2014 7:07 am

xdialogs on dope :) I have just seen it before (miwm) and thought: 1980's yad :)
..gnutella..

pidsley
Hermit
Posts: 2539
Joined: Wed Oct 17, 2012 12:31 pm

Re: bs - button shell

Unread post by pidsley » Sun Dec 21, 2014 7:31 am

^ exactly. It shows how simple a dialog-creation program can be.

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bs - button shell

Unread post by machinebacon » Sun Dec 21, 2014 8:46 am

We should revive it in future implementations. I'd like to have it as easily customizable pop-up, for example for shutdown/reboot/suspend.
..gnutella..

User avatar
GekkoP
Emacs Sancho Panza
Posts: 5878
Joined: Tue Sep 03, 2013 7:05 am

Re: bs - button shell

Unread post by GekkoP » Sun Dec 21, 2014 8:52 am

Look at that. Yes, a good one.

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: bs - button shell

Unread post by stark » Sun Dec 21, 2014 8:57 am

Something more to hack on :D Thanks for the share pidsley :)

Delusional thoughts from the mind of a uber-noob:

I'm wondering if I can pipe stuff into it like current song from mpc and maybe a neat notification system ( like osd_cat ? )
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bs - button shell

Unread post by machinebacon » Sun Dec 21, 2014 9:03 am

If mpc has the output, yes. mpg123 does. You pipe into a tmp file first and read the last line of it. It should work. Try it, if you get stuck call us :)
..gnutella..

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: bs - button shell

Unread post by stark » Sun Dec 21, 2014 4:45 pm

^ Thanks, I will :)

/Offtopic ( sorry pidsley ):

I couldn't keep mpg123 and mpg321 in one place as mpg321's binary is named mpg123 so both of them are conflicting.Is it even possible to keep'em together ?
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bs - button shell

Unread post by machinebacon » Sun Dec 21, 2014 5:10 pm

At least in Debian 321 does not replace 123. No idea why there's a naming conflict. You might try to rename the binary (making a renamed copy). Built from source? Then check the Makefile. If you want to discuss this issue, we better split it off.
..gnutella..

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: bs - button shell

Unread post by stark » Fri Dec 26, 2014 11:38 am

Apologies for the late reply. I haven't tried it in debian but no need to open another topic for this, i'll send you a pm when i can't get around this. Thank you :)
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bs - button shell

Unread post by machinebacon » Fri Dec 26, 2014 12:33 pm

No PMs for support, thank you :)
..gnutella..

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: bs - button shell

Unread post by stark » Fri Dec 26, 2014 2:40 pm

^ Noted :)
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

machinebacon
Baconator
Posts: 10253
Joined: Thu Sep 16, 2010 11:03 am
Location: Pfälzerwald
Contact:

Re: bs - button shell

Unread post by machinebacon » Fri Dec 26, 2014 5:26 pm

^ simple reason: a problem with solution might be interesting for others, so rather share a "i tried this and got this working and that not" than having a solution (or a problem) and keeping it for yourself. ;) KISS the FOSS of the GNU, you know :D
..gnutella..

User avatar
stark
MILF
Posts: 521
Joined: Sat Sep 27, 2014 6:38 pm
Location: Arpanet
Contact:

Re: bs - button shell

Unread post by stark » Sat Dec 27, 2014 4:34 pm

No problem :) Very few people gladly suggest opening threads for someone's minor problem so gotta get used to this ;) And the problem is happening on arch ( pkgbuild from aur ) so i don't know if its relevant enough :)
If you can do it go ahead and do it, if you can't do it then don't even criticize it. - gingerdesu

Post Reply