Page 2 of 2

Re: Fluxbox Toolbar - default config for mxfb?

Posted: Sat Apr 19, 2025 11:48 am
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

Re: Fluxbox Toolbar - default config for mxfb?

Posted: Sat Jun 14, 2025 7:33 am
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


Re: Fluxbox Toolbar - default config for mxfb?

Posted: Sat Jun 14, 2025 9:47 am
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.

Re: Fluxbox Toolbar - default config for mxfb?

Posted: Sat Jun 14, 2025 5:46 pm
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.

Re: Fluxbox Toolbar - default config for mxfb?

Posted: Sat Jun 14, 2025 5:55 pm
by Jerry3904
That is interesting, thanks for posting