You are not logged in.

#1 2020-11-01 16:54:30

Su1_Gener1s
Member
Registered: 2020-11-01
Posts: 10

New Lithium Install - Finishing Touches Help?

Hello everyone,

I've just, more or less, finished setting up a VM to clone over to my laptop but have run into some minor annoyances that I can't seem to figure out how to fix.

First being the primary highlight colour (bc4b4f) in jgmenu and (I think?) the GTK theme.
I'd like to change this to a less..intense colour (107dac) which I have done successfully with jgmenu by editing the settings but I can't figure out how to do it to the general theme. Going through the main menu to "Preferences > Appearance > Color" simply tells me that "Setting color scheme is not available without lxsession as session manager", I'm stumped!

Second, very minor, annoyance is the logout menu. Is there any way of changing it back to the classic (minimalist) icons? I remember doing this on Helium but I can't seem to find what I need to change to get it back on Lithium, unless it has been removed?

I used #! years ago and have been a huge fan of BunsenLabs for the last 2-3 releases, you guys do amazing work that just keeps getting better every iteration. You have my utmost admiration!

Su1

Offline

#2 2020-11-01 17:29:43

damo
....moderator....
Registered: 2015-08-20
Posts: 6,404

Re: New Lithium Install - Finishing Touches Help?

To change a specific colour in a theme you need to edit the theme files (I suggest copying them to ~/.local/share/themes and naming them appropriately - the system will pick them up at that location).

The gtk and openbox theme files are in /usr/share/themes/<theme>.


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2020-11-01 17:45:35

damo
....moderator....
Registered: 2015-08-20
Posts: 6,404

Re: New Lithium Install - Finishing Touches Help?

For bl-exit you could either replace it with a copy of the original cb-exit, or modify the existing file. (Again I suggest you copy /usr/bin/bl-exit to ~/bin/bl-exit and work on the copy, then make it executable.)

You can get an approximation of the #! python gtk dialog by editing out the text on the buttons. Change

yad_gui() {
    yad --class=WmanExit --title "Exit" --close-on-unfocus --undecorated --center --on-top --borders=10 --window-icon=system-log-out \
        --button=" _Logout!system-log-out!Logout":'bash -c "logoutctl terminate-session"' \
        --button=" L_ock Screen!system-lock-screen!":'bash -c "logoutctl lock-session"' \
        --button=" _Suspend!system-suspend!":'bash -c "logoutctl suspend"' \
        --button=" Re_boot!system-reboot!":'bash -c "logoutctl reboot"' \
        --button=" _Power Off!system-shutdown!":'bash -c "logoutctl poweroff"'
}

to...

yad_gui() {
    yad --class=WmanExit --title "Exit" --close-on-unfocus --undecorated --center --on-top --borders=10 --window-icon=system-log-out \
        --button="!system-log-out!Logout":'bash -c "logoutctl terminate-session"' \
        --button="!system-lock-screen!":'bash -c "logoutctl lock-session"' \
        --button="!system-suspend!":'bash -c "logoutctl suspend"' \
        --button="!system-reboot!":'bash -c "logoutctl reboot"' \
        --button="!system-shutdown!":'bash -c "logoutctl poweroff"'
}

If you want text-only then it should be obvious which bits to remove. You could also specify whichever icons you like wink

Here is a copy of cb-exit if you want to try it (AT YOUR OWN RISK!):

#!/usr/bin/env python

import pygtk
pygtk.require('2.0')
import gtk
import os
import getpass

class cb_exit:
	def disable_buttons(self):
		self.cancel.set_sensitive(False)
		self.logout.set_sensitive(False)
		self.suspend.set_sensitive(False)
		self.reboot.set_sensitive(False)
		self.shutdown.set_sensitive(False)

	def cancel_action(self,btn):
		self.disable_buttons()
		gtk.main_quit()

	def logout_action(self,btn):
		self.disable_buttons()
		self.status.set_label("Exiting Openbox, please standby...")
		os.system("openbox --exit")

	def suspend_action(self,btn):
		self.disable_buttons()
		self.status.set_label("Suspending, please standby...")
		os.system("cb-lock")
		os.system("dbus-send --system --print-reply --dest=\"org.freedesktop.UPower\" /org/freedesktop/UPower org.freedesktop.UPower.Suspend")
		gtk.main_quit()

	def reboot_action(self,btn):
		self.disable_buttons()
		self.status.set_label("Rebooting, please standby...")
		os.system("sudo reboot")

	def shutdown_action(self,btn):
		self.disable_buttons()
		self.status.set_label("Shutting down, please standby...")
		os.system("sudo poweroff")

	def create_window(self):
		self.window = gtk.Window()
		title = "Log out " + getpass.getuser() + "? Choose an option:"
		self.window.set_title(title)
		self.window.set_border_width(5)
		self.window.set_size_request(500, 80)
		self.window.set_resizable(False)
		self.window.set_keep_above(True)
		self.window.stick
		self.window.set_position(1)
		self.window.connect("delete_event", gtk.main_quit)
		windowicon = self.window.render_icon(gtk.STOCK_QUIT, gtk.ICON_SIZE_MENU)
		self.window.set_icon(windowicon)


		#Create HBox for buttons
		self.button_box = gtk.HBox()
		self.button_box.show()

		#Cancel button
		self.cancel = gtk.Button(stock = gtk.STOCK_CANCEL)
		self.cancel.set_border_width(4)
		self.cancel.connect("clicked", self.cancel_action)
		self.button_box.pack_start(self.cancel)
		self.cancel.show()

		#Logout button
		self.logout = gtk.Button("_Log out")
		self.logout.set_border_width(4)
		self.logout.connect("clicked", self.logout_action)
		self.button_box.pack_start(self.logout)
		self.logout.show()

		#Suspend button
		self.suspend = gtk.Button("_Suspend")
		self.suspend.set_border_width(4)
		self.suspend.connect("clicked", self.suspend_action)
		self.button_box.pack_start(self.suspend)
		self.suspend.show()

		#Reboot button
		self.reboot = gtk.Button("_Reboot")
		self.reboot.set_border_width(4)
		self.reboot.connect("clicked", self.reboot_action)
		self.button_box.pack_start(self.reboot)
		self.reboot.show()

		#Shutdown button
		self.shutdown = gtk.Button("_Power off")
		self.shutdown.set_border_width(4)
		self.shutdown.connect("clicked", self.shutdown_action)
		self.button_box.pack_start(self.shutdown)
		self.shutdown.show()

		#Create HBox for status label
		self.label_box = gtk.HBox()
		self.label_box.show()
		self.status = gtk.Label()
		self.status.show()
		self.label_box.pack_start(self.status)

		#Create VBox and pack the above HBox's
		self.vbox = gtk.VBox()
		self.vbox.pack_start(self.button_box)
		self.vbox.pack_start(self.label_box)
		self.vbox.show()

		self.window.add(self.vbox)
		self.window.show()

	def __init__(self):
		self.create_window()


def main():
    gtk.main()

if __name__ == "__main__":
    go = cb_exit()
    main()

Last edited by damo (2020-11-01 17:51:03)


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#4 2020-11-02 04:21:39

Su1_Gener1s
Member
Registered: 2020-11-01
Posts: 10

Re: New Lithium Install - Finishing Touches Help?

Thank you so much for the quick reply!

I still can't figure out the colour change, but I never even considered pulling the old bl-exit from another install, that is genius! Happen to have an old Helium install that runs my media PC, bonus!

Next thing to try & figure out is why I'm getting no thumbnails for pictures or video through network shares. Have it enabled to always draw thumbnails in Thunar and tumbler installed, thumbs for local files work just fine, but nothing across the network.

Or how to get my onboard WiFi working - it's using the rtl8xxxu driver, sees WiFi points but refuses to connect. Working on Mint 20 with kernel 5.4.0-26 though. Can't even pick up any info as to what the card might be! inxi just says "No Device data found". Useful!

Last edited by Su1_Gener1s (2020-11-02 05:28:53)

Offline

#5 2020-11-02 05:31:58

damo
....moderator....
Registered: 2015-08-20
Posts: 6,404

Re: New Lithium Install - Finishing Touches Help?

There may be a one-liner in Handy command-line stuff for terminals or scripts for swapping colour codes. Basically you loop through the theme files and use sed to replace every occurrence. Something like (off the top of my head):

sed -i 's/bc4b4f/107dac/' filename

BL Helium doesn't have the #! style exit dialog, but you can install it with

sudo apt-get install bunsen-exit-python

This will remove the current yad dialog version at the same time. You can choose the colour schemes by setting the dialog theme to whatever you like. Full instructions in /usr/share/bunsen/docs/helpfile-bl-exit.txt

Debian wiki: https://wiki.debian.org/rtl818x


Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#6 2020-11-02 06:39:27

Su1_Gener1s
Member
Registered: 2020-11-01
Posts: 10

Re: New Lithium Install - Finishing Touches Help?

bunsen-exit-python was exactly what I was after, thank you! Don't know why but I always preferred that version, it's the little things! big_smile

This WiFi issue is driving me absolutely bonkers though. A WindowsPE boot with the WiFi working says it is using the RTL8723B Realtek driver which would tally up with the working RTL8xxxu driver in Mint.

Lithium is using the same driver (older version maybe?) but no dice. Even tried removing the Buster version of firmware-realtek and shoving the Sid version in there, still won't play. sad

I've read some reports of it being a multi-facet module that runs the WiFi and the Bluetooth and people not having either work, but my Bluetooth is working just fine (listening to the entire Two Steps From Hell Mindtracer album while I've been working on this is testament to that!).

On the plus side BunsenLabs is doing better than some things I've tried to run on this obscure little laptop (Arka Book), HBCD won't even give me a mouse pointer. big_smile

Offline

#7 2020-11-02 07:05:51

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

Re: New Lithium Install - Finishing Touches Help?

Su1_Gener1s wrote:

I still can't figure out the colour change

Considering [BL-Litihium](https://github.com/BunsenLabs/bunsen-th … BL-Lithium), it should be fairly trivial (editing text files) for gtk-2.0, openbox-3 and xfce-notofications.
Edit these files:
BL-Lithium/gtk-2.0/gtkrc
BL-Lithium/openbox-3/themerc
BL-Lithium/xfce-notify-4.0/gtk.css
GTK3 is a different matter though; the file in question is compiled (gtkresource). Maybe hhh can tell you how to deal with that.

edit: your WiFi issues should go to a separate thread IMO.

Last edited by ohnonot (2020-11-02 07:06:18)


Search youtube without a brwoser: repo | thread
BL quote proposals to this thread please.
my repos / my repos

Online

Board footer

Powered by FluxBB