MXFB Tips n Tricks

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
Jerry3904
Administrator
Posts: 23230
Joined: Wed Jul 19, 2006 6:13 am

MXFB Tips n Tricks

#1 Post 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.
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

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

Re: MXFB Tips n Tricks

#2 Post 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.
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

User avatar
kobaian
Posts: 369
Joined: Fri Jan 03, 2020 5:49 am

Re: MXFB Tips n Tricks

#3 Post 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
Last edited by kobaian on Sun Nov 07, 2021 8:17 am, edited 1 time in total.
Desktop PC: AMD Ryzen 5 5600 3.5GHz, MSI B550M PRO-VDH, 32GB RAM, Gigabyte RX 570. Laptop: MacBook Late 2008, Core2Duo 2.0GHz, 8GB RAM. Netbook: Asus EEEPC Intel Atom 1.6GHz, 2GB RAM. System: MX23 64bit/32bit Fluxbox.

User avatar
Paul..
Posts: 1787
Joined: Sun Mar 18, 2007 6:34 pm

Re: MXFB Tips n Tricks

#4 Post by Paul.. »

Great thread, @Jerry3904 !!

Asus Prime X570-Pro | AMD Ryzen 7 3700X
16 Gig DDR4 3600 | Radeon RX 5600 XT Graphics
Samsung 860 500GB SSDs (2)

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

Re: MXFB Tips n Tricks

#5 Post 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.
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

User avatar
Paul..
Posts: 1787
Joined: Sun Mar 18, 2007 6:34 pm

Re: MXFB Tips n Tricks

#6 Post 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).

Asus Prime X570-Pro | AMD Ryzen 7 3700X
16 Gig DDR4 3600 | Radeon RX 5600 XT Graphics
Samsung 860 500GB SSDs (2)

PPC
Posts: 362
Joined: Tue Sep 11, 2018 8:22 am

Re: MXFB Tips n Tricks

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

User avatar
kobaian
Posts: 369
Joined: Fri Jan 03, 2020 5:49 am

Re: MXFB Tips n Tricks

#8 Post 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
Desktop PC: AMD Ryzen 5 5600 3.5GHz, MSI B550M PRO-VDH, 32GB RAM, Gigabyte RX 570. Laptop: MacBook Late 2008, Core2Duo 2.0GHz, 8GB RAM. Netbook: Asus EEEPC Intel Atom 1.6GHz, 2GB RAM. System: MX23 64bit/32bit Fluxbox.

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

Re: MXFB Tips n Tricks

#9 Post by Jerry3904 »

Interesting, let's look at that!
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

User avatar
darknetmatrix
Posts: 79
Joined: Mon Sep 28, 2015 2:59 am

Re: MXFB Tips n Tricks

#10 Post by darknetmatrix »

HP Z400 Workstation HP Z210 Workstation
Intel Xeon W3565 (4) @ 3.1GHz & Intel Xeon E31225 (4) @ 3.4Ghz

Post Reply

Return to “MX Fluxbox Official Release”