Fluxbox Toolbar - default config for mxfb?

Help for MX Fluxbox
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
siamhie
Global Moderator
Posts: 3338
Joined: Fri Aug 20, 2021 5:45 pm

Re: Fluxbox Toolbar - default config for mxfb?

#11 Post by siamhie »

Melber wrote: Sat Apr 19, 2025 3:14 am
siamhie wrote: Fri Apr 18, 2025 7:58 pm On the menu side of things, will it be easy to switch back to the default fluxbox toolbar?
I would presume so
Thanks. I know I'm thinking into the future with that question.

Melber wrote: Sat Apr 19, 2025 3:11 am
ceeslans wrote: Fri Apr 18, 2025 2:20 pm Even tho I can understand your concerns in respect of font-setting in ~/.fluxbox/overlay, I'd be hesitant to edit each and every style theme.cfg... I'd still be in favour to set the font in overlay, but with the necessary emphasis not to change the font type.
My problem is that setting font-awesome in the overlay file breaks buttons with text labels, or at least I can't get it to display normal letters. On the other hand, if user knows enough to edit the init file entries they should also be capable of editing overlay.
One would assume that the user has an understanding of how styles work. Here's my working overlay file at the moment.

Code: Select all

! The following line will prevent styles from setting the background.
background: none

#Example settings for font name, size, etc., for menu and toolbar


# Fonts
toolbar.clock.font: bookman-13:regular
toolbar.workspace.font: bookman-12:regular
toolbar.iconbar.focused.font: bookman-10:regular
toolbar.iconbar.unfocused.font: bookman-10:regular
toolbar.button.*.font: expansiva-12:bold:regular
window.font: monofur-13:bold:italic
menu.title.font: monofur-17:bold:italic
menu.frame.font: monofur-15:bold:italic
menu.title.justify: center

#menu.title.textColor: #9d6800
#menu.frame.textColor: #9d6800
#menu.title.textColor: #FFFFFF
#menu.frame.textColor: #FFFFFF
#menu.title.color:  #0F0F0F
#menu.frame.color:  #0F0F0F
#menu.borderColor: #ff0000
#toolbar.button.picColor: #3ebdff
#toolbar.workspace.textColor: #3ebdff
#toolbar.clock.textColor: #3ebdff

# menu border
menu.borderWidth: 2

# window border
window.borderWidth: 2

# window border color
#window.borderColor: #ff0000

# menu title halo effect
#menu.title.font.effect: halo
#menu.title.font.halo.color: #750805

# menu frame halo effect
#menu.frame.font.effect: halo
#menu.frame.font.halo.color: #750805

# window label color
#window.label.focus.textColor: #FFFF00
#window.label.unfocus.textColor: #750805

# menubar height
#menu.titleHeight: 30

# menu item height
# menu.itemHeight: 18

# titlebar height
window.title.height: 25

# double menu width
menu.bevelWidth: 2

# force elements to un-autohide correctly on MX-23
slit.borderWidth: 0
slit.bevelWidth: 2


# menu bullet
menu.bullet: triangle
menu.bullet.position: right

# position titlebar text
window.justify: right

# toolbar borders
toolbar.borderWidth: 2
#toolbar.bevelWidth: 3

# rounded corners
#menu.roundCorners: TopRight TopLeft BottomRight BottomLeft
#window.roundCorners: TopRight TopLeft BottomRight BottomLeft
#toolbar.shaped: true

# set grip size
window.handleWidth: 5
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
ceeslans
Posts: 828
Joined: Sun Apr 14, 2019 3:48 am

Re: Fluxbox Toolbar - default config for mxfb?

#12 Post by ceeslans »

Lately I've added a 'calendar' button to my fluxbox' native toolbar. This button executes a toggle-script that sets a simple yad-calendar near this button.
The script checks the current value set for session.screen0.toolbar.placement in ~/.fluxbox/init (i.e top|bottom|left|right) and uses the preset 'tbheight' offset value to set its location (--posX|--posY) accordingly. And xdotool takes care of the toggle function, based on the unique --class name, whilst leaving other open yad window(s) intact. See the result in below mockup screenshot.

Image

tbcalendar:

Code: Select all

#!/bin/bash

### Offset in pixels (top or bottom toolbar)
tbheight='32'

###=========================================

CONF_FILE="$HOME/.fluxbox/init"

WINDOW_CLASS="tbcalendar"
WINDOW_ID=$(xdotool search --class "$WINDOW_CLASS")

if [ -z "$WINDOW_ID" ]; then

	if grep -q '.toolbar.placement:	Top' ${CONF_FILE} ; then
		Offset="y=${tbheight}"
	elif grep -q '.toolbar.placement:	Bottom' ${CONF_FILE} ; then
		Offset="y=-${tbheight}"
	elif grep -q '.toolbar.placement:	Left' ${CONF_FILE} ; then
		Offset="x=${tbheight}"
	elif grep -q '.toolbar.placement:	Right' ${CONF_FILE} ; then
		Offset="x=-${tbheight}"
	else
		exit 0
	fi

	yad --calendar --class="tbcalendar" --width=215 --pos${Offset} --mouse --skip-taskbar \
	--title="Calendar" --title-align=center --window-icon="calendar" \
	--no-buttons --undecorated --escape-ok \

else
    xdotool windowkill "$WINDOW_ID"
fi

exit 0

Sony Vaio VPCF23P (2011), Intel Core i7-2670, 6gb RAM, 240gb SSD, MX-Linux 23 based Fluxbox v/1.3.7+
Lenovo Thinkpad L560 (2016), Intel Core i5-6200, 16gb RAM, 240gb SSD, Devuan Daedalus based Fluxbox v/1.3.7+

DeepDayze
Posts: 137
Joined: Tue Jan 18, 2022 3:34 pm

Re: Fluxbox Toolbar - default config for mxfb?

#13 Post by DeepDayze »

That looks quite nice a Fluxbox desktop @ceeslans..so now I may try out Fluxbox again !

Looks very GNOME like and the Conky is quite snazzy as well.
Real Men Use Linux

User avatar
Melber
Developer
Posts: 1303
Joined: Tue Mar 23, 2021 4:19 pm

Re: Fluxbox Toolbar - default config for mxfb?

#14 Post by Melber »

ceeslans wrote: Sat Jun 14, 2025 7:33 am Lately I've added a 'calendar' button to my fluxbox' native toolbar. This button executes a toggle-script that sets a simple yad-calendar near this button.
interesting, will check it out.

User avatar
Jerry3904
Administrator
Posts: 23194
Joined: Wed Jul 19, 2006 6:13 am

Re: Fluxbox Toolbar - default config for mxfb?

#15 Post by Jerry3904 »

That is interesting, thanks for posting
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

Post Reply

Return to “MX Fluxbox Official Release”