You are not logged in.

#1 2017-12-08 18:34:50

dobl
Member
Registered: 2017-12-08
Posts: 35

Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

Hi,
I am using Helium (installed according to forum guidelines, thanks a lot!) and would like to incorporate some CBPP gtk-2.0 elements to Bunsenlabs-He-flatish.

Is someone able to help me with this? I don't know which lines of gtkrc file are responsible for changes as on screenshot - it's about spacing in left panel especially but also two other things if possible...
https://imgur.com/a/YmA95

Last edited by dobl (2017-12-08 20:08:21)

Offline

#2 2017-12-08 20:44:00

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,740

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

Not sure what a good folder diff method is, one could do

git diff --no-index a b

if a and b are folders.

https://stackoverflow.com/questions/167 … s-in-linux

Last edited by brontosaurusrex (2017-12-08 20:44:29)

Offline

#3 2017-12-09 02:57:08

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

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

Meld (GUI) is good sometimes for comparing two similar folder trees, and pushing changes from one to the other.


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

#4 2017-12-09 07:43:48

dobl
Member
Registered: 2017-12-08
Posts: 35

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

guys, question really was not about file (folder) compare tools, if it was it would be asked at compare-forum ; )
This 2 gtkrc files differ too much, question remains targeted at someone who know the content

Last edited by dobl (2017-12-09 12:07:50)

Offline

#5 2017-12-09 07:50:33

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

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

it's mostly about spacing, yes?
it shouldn't be too hard to figure out.
if i were you i would either just replace the bunsen gtk2 theme with its cbpp counterpart (*), or try to tighten the spacing a little on the bunsen gtk2 theme. for gtk2, x-thickness and y-thickness often helped there.

(*) best to create a third theme that combines the desired elements

Offline

#6 2017-12-09 13:24:05

dobl
Member
Registered: 2017-12-08
Posts: 35

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

spacing and 2 other things (thunar columns "separator" line style & columns heading row background color).

Replacing is not an option, from those 2 themes I prefer new one but the same time Helium color styling and some minor elements are a slight regression in my opinion.
Anyway I can not complain at all, there is a serious problem in Linux world with GUI & desktops (too many of them and no one polished even for rating 4 of 5 what is however understandable taking into account amount of money & human resources being spent by Apple for its relatively highly polished GUI and Microsoft for its never polished enough GUI) - so I was really delighted when I found Debian & Openbox based distro derived in some way from Crunchbang.
Have to say that as my main Linux system I use customized Xubuntu with XFCE systray and tint2 panel (it is hard to use nice vertical panels for laptop screens in Linux) but customized Bunselabs is a superb, very space efficient & very fast second system.

If I can suggest sth here I would suggest to use Papirus icons in Helium - this theme is a gold in Linux, much better than higly paid Windows icons and comparable to higly paid macOS and Android icons, and all these for free.

Going back to subject^^ I will make some trials with this gtkrc file and thickness definitions. If any dev can help with this then please do.
Btw. gparted theming could be improved:
https://imgur.com/a/7IoO2
and Gnome-Disks has double top-bar but this problem in Helium-Dev was already mentioned somewhere on the forum as I remember.

Last edited by dobl (2017-12-09 16:09:30)

Offline

#7 2017-12-09 16:21:05

tknomanzr
BL Die Hard
From: Around the Bend
Registered: 2015-09-29
Posts: 1,057

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

^ gparted, running as root is picking up root's theme, which would be Raleigh.

Offline

#8 2017-12-09 16:41:25

dobl
Member
Registered: 2017-12-08
Posts: 35

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

so better change content of Raleigh folder with content of another theme or is there any way to define theme for root?

Offline

#9 2017-12-09 17:35:09

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

dobl wrote:

If I can suggest sth here I would suggest to use Papirus icons in Helium - this theme is a gold in Linux, much better than higly paid Windows icons and comparable to higly paid macOS and Android icons, and all these for free.

+1

In fact, that is such a good suggestion that we have retrospectively implemented it in our Helium-dev branch and our hard-working development team are already polishing the results ready for the release big_smile

gparted theming could be improved

That is a feature rather than a bug and is intended to alert the user that a graphical application has been opened with root privileges.

Try this to set root's GUI preferences[1]:

pkexec lxappearance

[1] yikes

EDIT: changed `sudo` to `pkexec`

Last edited by Head_on_a_Stick (2017-12-09 17:37:41)

Offline

#10 2017-12-09 17:54:19

dobl
Member
Registered: 2017-12-08
Posts: 35

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

;p

But then this feature makes gparted looking as from ~1995, the same time in thunar we have nice warning line.
Anyway solved, thanks.

edit: exactly pkexec instead of sudo, lxappearance cant open display with pkexec, lets hope no problems from sudo made, probably symlink or system-wide conf as in arch wiki is best

Last edited by dobl (2017-12-09 18:12:24)

Offline

#11 2017-12-10 02:22:46

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

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

gksu lxappearance

---

Re: Papirus - while at one time we were thinking of using that in Helium by default, at the moment we're leaning towards the Paper icons. The discussion is here: https://forums.bunsenlabs.org/viewtopic.php?id=4316
Both papirus-icon-theme and paper-icon-theme have been packaged and are available in the helium-dev repository.


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

#12 2017-12-10 02:34:28

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

johnraff wrote:
gksu lxappearance

I think that method is considered obsolete by some — check

cat $(which gparted-pkexec)

That command is what gparted.desktop calls so I think it is the "correct" technique.

EDIT: for clarity: I _do not_ recommend running GUI applications as root at all but `pkexec` command does seem to be the best way of doing that.

Last edited by Head_on_a_Stick (2017-12-10 02:57:51)

Offline

#13 2017-12-10 04:17:20

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

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

[off-topic again]@HoaS agreed pkexec is superior, and it may well be time to consider replacing all the gksu calls in our menu with pkexec - after testing that they work. Gksu is on the way out.

The argument that no GUI should run as root, bypasses the real issue that developers should write apps so that the GUI runs as user and calls root only for the small subset of operations that need it.

Meanwhile back in Real Life™ it is rather convenient to be able to use GUI tools like gparted which, by their very nature, require some root powers. That raises the related case of how to set root's graphic theming, hence the need for lxappearance to work as root sometimes.

Unfortunately 'pkexec lxappearance' fails, so I suggested gksu as an alternative which works.
If you were able to get to the bottom of the problem with pkexec in this case it would be of value in moving BunsenLabs forward...[/off topic]


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

#14 2017-12-10 09:25:27

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

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

dobl wrote:

(something) is not an option

Well i guess it's a "no go" then.
roll

Offline

#15 2017-12-10 16:40:03

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

johnraff wrote:

'pkexec lxappearance' fails

Continued here:

https://forums.bunsenlabs.org/viewtopic.php?id=4437

Offline

#16 2017-12-11 22:11:41

dobl
Member
Registered: 2017-12-08
Posts: 35

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

Head_on_a_Stick wrote:

In fact, that is such a good suggestion that we have retrospectively implemented it in our Helium-dev branch and our hard-working development team are already polishing the results ready for the release big_smile

wink
I was thinking also about this bl-app thing. I understand the idea however when for example plank, which suits nicely as active window dodged transparent launcher, added we don't have proper icon there, instead of let's say Geany it is generic editor icon.
Maybe it would be possible to change this behaviour?

Last edited by dobl (2017-12-11 22:20:26)

Offline

#17 2017-12-11 22:22:37

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

^ We have a help file about that:

"Bunsen Alternatives"
=====================
The "Bunsen Alternatives" are four groups added to the Debian Alternatives:

        bl-file-manager
        bl-text-editor
        bl-image-viewer
        bl-media-player

They can be used in menus, keyboard shortcuts, config files and scripts
just like any other command, and will call up whatever application has been
set as that alternative. Often the setting will be done automatically, but
even done manually it only needs to be done once to cover
all the calls to that command. (See "Editing Alternatives" below.)

The default settings in a new install of BunsenLabs are:

        bl-file-manager Thunar
        bl-text-editor  Geany
        bl-image-viewer Mirage
        bl-media-player VLC

The only difference from the other Debian alternatives is that they are
not automatically added by packages themselves.
For example, when xfce4-terminal is installed, it will add itself to the
available options for x-terminal-emulator. However, even though pcmanfm is
a possible alternative for bl-file-manager the pcmanfm package will not add
itself to that alternatives group. That job is done by the bl-alternatives
script which is called automatically by dpkg after each package install.
(It is very fast and does not significantly slow down the install.)

The applications which can be added by bl-alternatives are:
        bl-file-manager: thunar caja nautilus pcmanfm spacefm xfe
        bl-text-editor: geany emacs gedit jedit kate leafpad medit mousepad scite
        bl-image-viewer: mirage eog eom gpicview viewnior
        bl-media-player: vlc banshee dragonplayer gnome-mplayer gxine kaffeine parole smplayer totem

Note: gvim is also an option for bl-text-editor, but
is handled specially (wrapper and man page names differ).

You can change these by editing /usr/bin/bl-alternatives,
or add an app to an alternative group manually (see below).

Editing Alternatives
====================
You can edit any Debian Alternatives (including the bl-* BunsenLabs varieties)
with the command 'update-alternatives' (see 'man update-alternatives'), but
there is also a graphic front end called Galternatives which is easier to
use in some ways.

In the BunsenLabs menu, click "System" > "Edit Debian Alternatives".
You can scroll down the list to see what alternative groups have been
installed on your system, what options are available for each group
and if there is more than one option you can set a different one.

You can also add a new application to an existing alternative group,
so if the bl-alternatives script has failed to add your favourite
image viewer to bl-image-viewer you can add it manually here.

It is not possible to remove a whole group with galternatives,
but you can remove an individual option from some group.

NOTE: These settings are system-wide, affecting all users.
If you want a local version of bl-file-manager set to eg spacefm,
while leaving the system setting unchanged, then put a symbolic link
called 'bl-file-manager' in ~/bin which points to /usr/bin/spacefm.
If ~/bin is in your $PATH and comes before /usr/bin then your symlink
will override the system bl-file-manager.

See 'man update-alternatives' for details of the Debian Alternatives.
Or here:
https://www.debian-administration.org/a … ves_system

Openbox main menu → Help & Resources → Bunsen Help Files → About Bunsen Alternatives

Offline

#18 2017-12-12 06:44:49

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

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

dobl wrote:

I was thinking also about this bl-app thing. I understand the idea however when for example plank, which suits nicely as active window dodged transparent launcher, added we don't have proper icon there, instead of let's say Geany it is generic editor icon.
Maybe it would be possible to change this behaviour?

Yes, it's possible for you to change the default icon displayed by bl-text-editor.

cp /usr/share/applications/bl-text-editor.desktop ~/.local/share/applications
nano ~/.local/share/applications/bl-text-editor.desktop

and edit the Icon entry.


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

#19 2017-12-12 12:10:54

dobl
Member
Registered: 2017-12-08
Posts: 35

Re: Bunsen-He-flatish to use some gtk-2.0 elements from CBPP

thanks John

Offline

Board footer

Powered by FluxBB