You are not logged in.

#126 2016-07-13 12:39:32

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

^ I think that setup of @MerlinElMago looks great, and it is going to be the next thing I start playing with wink


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#127 2016-07-13 19:27:01

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

OK, I've tried out the script, and there is an issue that needs resolving, IMO.

There is a "placeholder" image, 'None.png', which is used for Hibernate/HybridSleep when set to "always/maybe".
There is no indication in the gui that this is what will happen if you click on the buttons, which are (almost) blank! Ooops.

Apart from that, it looks great visually, especially with some transparency smile

Last edited by damo (2016-07-13 20:09:50)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#128 2016-07-13 20:55:23

hhh
Meep!
Registered: 2015-09-17
Posts: 8,609
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

@Doc, I hadn't seen that, that's gorgeous!

@damo, ditto!

Offline

#129 2016-07-13 21:30:47

hhh
Meep!
Registered: 2015-09-17
Posts: 8,609
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

I'll look for that when I test it later. Is his scripting solid/can that be fixed?

Offline

#130 2016-07-13 21:34:20

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

hhh wrote:

I'll look for that when I test it later. Is his scripting solid/can that be fixed?

The only thing that needs doing is having an appropriate image, instead of a 1px dot in the middle of a 100px square!


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#131 2016-07-13 21:50:00

hhh
Meep!
Registered: 2015-09-17
Posts: 8,609
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Ah, easy peasy lemon squeezy. smile

Offline

#132 2016-07-13 21:56:29

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,629

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

xaos52 wrote:

Created new PR with requested changes.
Please test.

Have you seen this, hhh?

I know Damo has.

Your thoughts?
Any one?

I'm an "anyone" ...  That's awesome ... I want it!
Must test ...

EDIT:  Errrrrr where is the code and images?


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#133 2016-07-13 22:26:12

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Sector11 wrote:

...

EDIT:  Errrrrr where is the code and images?

In that thread...Dropbox link


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#134 2016-07-14 03:05:07

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,943
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Another 'anyone' with another +1 for that wizard's suggested GUI. Very nice.  cool

Go xaos and damo!!


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

Offline

#135 2016-07-14 09:01:22

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

The  goal is to integrate his coding into the existing bl-exit and allow the user to choose a theme in the bl-exitrc config file. Absence of a [theme] section would then mean using the buttonbox that we are using now.

Offline

#136 2016-07-14 11:53:55

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Added another (cosmetic) commit to the deuterium branch.
Please test it.
More info in the PR log on github.

Thanks for the heads up, johnraff smile

Will now start on the integration of Merlin's code and images into bl-exit.
Will create a 'merlin' branch for it, if that is OK for everyone wink

Offline

#137 2016-07-14 14:20:16

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

xaos52 wrote:

The  goal is to integrate his coding into the existing bl-exit and allow the user to choose a theme in the bl-exitrc config file. Absence of a [theme] section would then mean using the buttonbox that we are using now.

I've been thinking about that. Would it mean shipping icons in the Bunsen icon themes?

The whole png set is only about 50kB, so it would be easy to include dark/light/tinted sets in a bunsen-exit theme package.

If they were svgs it allows the possibility that the tint could be scripted on a per-theme basis, which would only need to happen whenever the theme was changed.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#138 2016-07-14 16:44:52

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

The script expects one png file per possible action in the directory containing the config file.
We could make the default config file (shipped with package bunsen-utilities) a combination of button configs (old style) commented out and an active [theme] section.

The presence of the [theme] section will trigger bl-exit to use the new UI with that default theme and the necessary png files shipped with bunsen-utilities.

Then we could offer a new optional bunsen-exit-themes package with different themes.
If we decide on using one svg file per theme, we will need a 'theme setter' script which allows the user to:

1. Present previews of the shipped themes, et the user choose one of the shipped themes and generate a new config file in the users home directory  $HOME/.config/bl-exit/bl-exitrc

2. generate the necessary png files from the shipped svg for the chosen theme file and copy them to the script dir.

Could this be done with yad?
If you think it can, I would suggest you do that part.

If not, I will create a new python script for it. In that case I will need the commands to generate the png's from the svg.

Your thoughts?
Anyone's thoughts?
Don't feel excluded.
Just jump in with suggestions.

Offline

#139 2016-07-14 18:43:06

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

A first version is available at https://github.com/xaosfiftytwo/bunsen- … ree/merlin

clone the repo, copy the png images and bl-exitrc to ~/.config/bl-exit/ and test by cd-ing into dir bl-exit and running

bin/bl-exit

Known problem:
When using 2 monitors, configured for xinerama next to each other, the 'buttons' are spread over the combined width of both monitors.

PLease test.
Remarks are welcome.

Offline

#140 2016-07-14 18:48:25

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

^^ Isn't this getting unecessarily complicated for a briefly-visible exit panel?

How about just shipping 2 themes, with 2 sets of pngs: Dark and Light? And a selection of commented-out background colour hexcodes.

Anything more fancy can then be left to the user to play with.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#141 2016-07-14 19:01:17

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

^ OK with me smile

I sometimes get carried away with options and configurations and whatnot.
KISS principle may be advised here.
Thanks for holding me back, Damo.

Perhaps no new package is needed then?
Everything can be shipped with bunsen-utilities?

Offline

#142 2016-07-14 19:14:20

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Scrot:
Screenshot-140716-211121.th.png

Offline

#143 2016-07-14 19:22:40

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

If '~/config/bl-exit/' contains:

bl-exitrc
dark/*.png
light/*.png

then the code just needs to test for dark or light theme selected in bl-exitrc, and uses the *.png from the appropriate subdir.

And there needs to be a test for the primary monitor in use, to place the panel.

It is years since I've coded any python though  monkey


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#144 2016-07-14 21:31:22

hhh
Meep!
Registered: 2015-09-17
Posts: 8,609
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

^ Yes to merlin branch, perfect.

Offline

#145 2016-07-14 21:53:52

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Should this discussion be continued in Development?... The bunsenlabs 'exit' menu entry

In the meantime...

1)  Correction to one variable, and added others to be read from bl-exitrc (only hard-coded defaults are being read ATM):
Changed

                    print( 'Loading '+self.cp.get('theme', 'name')+' by ' + self.cp.get('theme', 'author'))
                    self.dialogHeight = int(self.cp.get('theme', 'dialogHeight'))
                    self.windowBackgroundColor = self.cp.get('theme', 'windowBackgroundColor')
                    self.buttonColorStateNormal = self.cp.get('theme', 'buttonColorStateNormal')
                    self.buttonColorStateActive = self.cp.get('theme', 'buttonColorStateActive')
                    self.buttonColorStatePrelight = self.cp.get('theme', 'buttonColorStatePrelight')
                    self.buttonSpacing = int(self.cp.get('theme', 'buttonSpacing'))
                    self.sleepDelay = float( self.cp.get('theme', 'sleepDelay') )

to

                    print( 'Loading '+self.cp.get('theme', 'name')+' by ' + self.cp.get('theme', 'author'))
                    self.dialogHeight = int(self.cp.get('theme', 'dialogHeight'))
incorrect -->       #self.windowBackgroundColor = self.cp.get('theme', 'windowBackgroundColor')
                    self.dialogBackgroundColor = self.cp.get('theme', 'windowBackgroundColor')
                    self.buttonColorStateNormal = self.cp.get('theme', 'buttonColorStateNormal')
                    self.buttonColorStateActive = self.cp.get('theme', 'buttonColorStateActive')
                    self.buttonColorStatePrelight = self.cp.get('theme', 'buttonColorStatePrelight')
                    self.buttonSpacing = int(self.cp.get('theme', 'buttonSpacing'))
                    self.sleepDelay = float( self.cp.get('theme', 'sleepDelay') )
added -->           self.overallOpacity = int(self.cp.get('theme','overallOpacity'))

2) To use bl-exitrc opacity value:

Change ->    #for o in range(1,100):
To ->        for o in range(1,self.overallOpacity):
                    sleep(self.sleepDelay)
                    while gtk.events_pending():
                        gtk.main_iteration(False)
                    self.set_opacity(float(o)/100)

I now have a set of inverted icons, so I'll see about how to use them as Dark/Light alternatives.
BTW, to invert the colours of all icons in a directory, keeping the same name, an imagemagick command is:

for i in *.png;do convert $i -negate $i; done

Light theme scrot:
Guhfnepg.jpg

Last edited by damo (2016-07-15 01:03:01)


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#146 2016-07-15 01:17:37

damo
....moderator....
Registered: 2015-08-20
Posts: 5,152

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Could alternative themes be set with bl-exitrc, using something like...

[theme]
theme=Light
   [[Light]]
     name=Light
     etc
   [[Dark]]
     name=Dark
     etc

Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#147 2016-07-15 01:18:48

hhh
Meep!
Registered: 2015-09-17
Posts: 8,609
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

The whole thread should have been posted in Dev. Merging, since @damo and @xaos52 are adopting this into bunsen-utilities.

Offline

#148 2016-07-15 01:25:13

hhh
Meep!
Registered: 2015-09-17
Posts: 8,609
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

Offline

#149 2016-07-15 05:39:52

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 5,943
Website

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

damo wrote:

Isn't this getting unecessarily complicated for a briefly-visible exit panel?

I was wondering the same, but maybe if the methods and processes developed here can then be re-used in other user interface windows then it will be worth the effort.

Last edited by johnraff (2016-07-15 05:40:26)


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

Offline

#150 2016-07-15 11:43:54

xaos52
The Good Doctor
From: Planet of the @pes
Registered: 2015-09-30
Posts: 695

Re: [OBSOLETE] The bunsenlabs 'exit' menu entry

I created the bunsenlabs/bunsen-utilities merlin branch and posted my first version of it.

@damo,
I have not included your corrections from post #145.
You can do that yourself now.

I suggest we merge our changes into merlin frequently so that we can keep our local versions of the merlin branch synchronized.

I will be working on:
1. Making the script more robust to typo's in the config file.
2. Cheching how to implement getting the primary screen dimensions in python
3. Checking how to implement your proposed bl-exitrc layout suggestion in post #146

Damo wrote:

if '~/config/bl-exit/' contains:

bl-exitrc
dark/*.png
light/*.png

then the code just needs to test for dark or light theme selected in bl-exitrc, and uses the *.png from the appropriate subdir.

OK. Will do that.

BTW:
We need 2 more images per set for actions hybernate and hybridsleep.
Up to you for obvious reasons wink

Offline

Board footer

Powered by FluxBB