Page 1 of 4

MXFB Tips n Tricks

Posted: Sat Oct 30, 2021 6:44 am
by Jerry3904
I thought it might be useful and fun to run a thread on small and handy tips and tricks that are not in the documentation.

Re: MXFB Tips n Tricks

Posted: Sat Oct 30, 2021 6:50 am
by Jerry3904
So here's what made me think of this: I often want to turn off the monitor but leave everything else running. A web search quickly gave me code that works:

Code: Select all

sleep 1 ; xset dpms force off
I mapped it to a free Fn key like this in the keys file:

Code: Select all

# turn off monitor
none F12 :Exec sleep 1 ; xset dpms force off
To restore the monitor: press Esc, move the mouse or tap the touchpad.

Re: MXFB Tips n Tricks

Posted: Sun Nov 07, 2021 4:04 am
by kobaian
What if you like to use the standard window decorations, but to remove only the titlebar from apps that have their own minimize/maximize/close buttons?

Here's my tip for Firefox:
Right click on the toolbar and select Customize toolbar
Uncheck the Title Bar checkbox.

Edit your ~/.fluxbox/apps file.
Under:

Code: Select all

[app] (class=Firefox)
add the line:

Code: Select all

[Deco]	{0x6}
And now you've got this - Firefox with borders, grip and handle on the bottom, but without the titlebar.

Image

Re: MXFB Tips n Tricks

Posted: Sun Nov 07, 2021 6:59 am
by Paul..
Great thread, @Jerry3904 !!

Re: MXFB Tips n Tricks

Posted: Sun Nov 07, 2021 7:10 am
by Jerry3904
Hi @Paul.., thanks! Have you had a chance to look at MX-21 Fluxbox? I'd be interested in your reaction, if yes.

Re: MXFB Tips n Tricks

Posted: Sun Nov 07, 2021 7:17 am
by Paul..
Not yet, @Jerry3904 ...will get a moment during this coming week...I was a big fan of crunchbang#!...they also had a wonderfully helpful forum (while it lasted).

Re: MXFB Tips n Tricks

Posted: Sun Nov 07, 2021 11:22 am
by PPC
I already shared this on the forum, but here it goes:
A on-liner script that displays the current weather in your location, in your language:

Code: Select all

geoip="$(wget -O- -q http://geoip.ubuntu.com/lookup)" ; area="$(sed -r 's/.*<RegionName>(.*?)<\/RegionName>.*/\1/g' <<< $geoip)"; corrected_area=$(echo "${area// /_}"); langu=$(locale | grep LANG | cut -d= -f2 | cut -d. -f1); l1=$(echo $langu |cut -d_ -f1); curl http://wttr.in/$corrected_area?lang=$l1
@kobaian
-great tip, any for users that have netbooks with tiny screens!

P.

Re: MXFB Tips n Tricks

Posted: Sun Nov 07, 2021 2:34 pm
by kobaian
PPC wrote: Sun Nov 07, 2021 11:22 am @kobaian
-great tip, any for users that have netbooks with tiny screens!
Thanks!
So if we are talking about the low-screen-resolution netbooks, why not get rid off the titlebar for all applications and move the minimize/maximize/close buttons to the panel?

All you need is just to add to the tint2-panel buttons with the following commands:
fluxbox-remote minimize
fluxbox-remote maximize
fluxbox-remote close


Here are the buttons I have added to the top tint2-panel on my own EEEPC-netbook:

Code: Select all

#-------------------------------------
# Button 2
button = new
button_icon = /usr/share/icons/Papirus-Dark/16x16/actions/xfce-wm-minimize.svg
button_text = 
button_tooltip = Minimize
button_lclick_command = fluxbox-remote minimize
button_rclick_command = 
button_mclick_command = 
button_uwheel_command = 
button_dwheel_command = 
button_font_color = #000000 100
button_padding = 0 0
button_background_id = 0
button_centered = 0
button_max_icon_size = 16

#-------------------------------------
# Button 3
button = new
button_icon = /usr/share/icons/Papirus-Dark/16x16/actions/xfce-wm-maximize.svg
button_text = 
button_tooltip = Maximize
button_lclick_command = fluxbox-remote maximize
button_rclick_command = 
button_mclick_command = 
button_uwheel_command = 
button_dwheel_command = 
button_font_color = #000000 100
button_padding = 0 0
button_background_id = 0
button_centered = 0
button_max_icon_size = 16

#-------------------------------------
# Button 4
button = new
button_icon = /usr/share/icons/Papirus-Dark/16x16/actions/xfce-wm-close.svg
button_text = 
button_tooltip = Close
button_lclick_command = fluxbox-remote close
button_rclick_command =
button_mclick_command =
button_uwheel_command = 
button_dwheel_command = 
button_font_color = #ffffff 100
button_padding = 0 0
button_background_id = 0
button_centered = 0
button_max_icon_size = 16

Image

Re: MXFB Tips n Tricks

Posted: Sun Nov 07, 2021 3:06 pm
by Jerry3904
Interesting, let's look at that!

Re: MXFB Tips n Tricks

Posted: Mon Nov 08, 2021 3:38 am
by darknetmatrix