MX-Fluxbox

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
PPC
Posts: 362
Joined: Tue Sep 11, 2018 8:22 am

Re: MX-Fluxbox

#201 Post by PPC »

@ Buck Fankers - Thanks! I have the same "problem" as you...
Just because you (or any other user) may benefit from having a "quick and dirty" way to add the applications you want to the start of the Fluxbox menu, and because I don't want to waste the work that went into patching together that script, here goes the code to "add_quicklauncher_to_menu.sh"...
Before running it, please back up your "~/.fluxbox/menu-mx" file.
This is the fastest way ( scroll down the list, if needed, then a double click) that I thought of for adding a quick launcher, easy to access, to the start of the menu, without digging around for the application you want.
The menu entry name is extracted from the .desktop file name (not parsed from the .desktop file contents), so, if you want, manually edit the menu-mx file to edit the entry's name...
Depending on your resolution you can add as many "pinned" apps to the top of Fluxbox as you like. In my case I have j4-dmenu, Firefox, File Manager, Terminal, Writer, Recent Files, All Categories, and then it's basically the stock menu, with a few alterations...
Note: If you want to delete/change the order of any menu entries, do so manually (it's pretty intuitive, editing the text file) or using the "FluxBox menu editor" I previously mentioned. that allows non "geek" users to add and remove applications to the MX-Fluxbox menu without having to know how to edit a single line of the configuration files...

Example: if you use Libre Office Writer a lot and want a quick way to access it without manually editing the menu: run this script, scroll down until you find "libreoffice-writer" and double left click it (or click once and then the "ok" button). A entry that launches writer, called "libreoffice-writer" is added to the start of the menu.
Now to start LibreOfice Writer just open the menu and click the very first entry... If you are using the keyboard to summon the FluxBox menu it's insanely fast: summon the menu - down key - enter. If using the mouse, it's not as fast as clicking a quick launch icon on the toolbar (yeah, I also have those on my personalized Fluxbox toolbar- see how to do that in my older posts): summon the menu (a rootmenu icon on the toolbar is useful) and then click the name of your application.

EDIT: @Buck- you can have the same functionality as having quick launch icons on the toolbar, using idesk icons- create the icon you want,using a icon the size of your toolbar or smaller (see one of my previous posts about creating idesk "icons", if needed). Use a toolbar that is not 100% size (the stock is not) and drag the icon(s) of your app(s) just near enough to the bar so it looks almost part of it (see post viewtopic.php?f=143&t=54848&start=180#p551009 ). That way you can always click the apps icon to start it even if running a maximized application.

Code: Select all

#! /bin/bash
#Application to pin and unpin applications to the top of Fluxbox menu
# requeriments: yad and exo-open (both are included out of the box in MX-Linux 19)
# By PPC - 15/01/2020 - GPL licence- do what you want with this script, please keep this comments about the author and date
# TO DO: a option reorder the "pinned" applications
# -- idea1- present the list of pinned applications, like in the "unpin" funtion. When user clicks on, use sed or whatever, to get the selections line number, a new yad window pops up, presenting the line number, allowing to user to increase or decrease the number. Delete current entry, create one at the chosen line number - This will take more work than the pin and unpined functions combined!
#idea2- simply create a button that executes flux menu editor, the user can then move the pinned applications using drag and drop! 
#
#Declare Functions

pin()
{
# creates a list of all installed .dekstop files, saved in .apps.txt
cd /usr/share/applications/
find *.desktop > ~/.apps.txt
# Use a Yad window to select file to be added to the menu
EXEC=$(yad --title="Select Application to pin to Menu" --width=470 --height=400 --center --separator=" " --list  --column=  < ~/.apps.txt)
#generate menu entry
foo="[exec] ("
foo="${foo}"${EXEC//.desktop}""")"" {exo-open /usr/share/applications/${EXEC}}"
# insert this generated new line at line 2, but first check, and only add a entry if something was selected"
if test -z "$EXEC" 
then
      echo "nothing was seleted"
else
      sed  -i "2 i\\$foo" ~/.fluxbox/menu-mx
fi
}
################################################
unpin()
{
# generate a list of all pinned aplications (searchs for the string #.desktop ", created by the pinning script
			grep -E '.desktop ' ~/.fluxbox/menu-mx > ~/current_apps_pinned_to_menu.txt
### make choices easier to read- show just app.desktop:
# show only everything betwenn brakets
cat ~/current_apps_pinned_to_menu.txt | cut -d "{" -f2 | cut -d "}" -f1 > ~/temp0
# remove the first 33 characters from each line, the "exo-open /path" part
sed -i 's/\(.\{33\}\)//' ~/temp0
# Use a Yad window to select file to be added to the menu
EXEC=$(yad --title="Select Application to unpin from the Menu" --width=470 --height=400 --center --separator=" " --list  --column=  < ~/temp0)
# delete selected pinned application from the menu, but first check, and only add a entry if something was selected
if test -z "$EXEC" 
then
      echo "nothing was seleted"
else
#remove selected pinned application
	cat ~/.fluxbox/menu-mx | grep -v $EXEC > ~/filename.1
	mv ~/filename.1 ~/.fluxbox/menu-mx
fi	
}
##########################################################
# Main part of the script
# makes the previous created funtions available
export -f pin unpin
# menu to select options:
yad \
    --title "Pin and unpin apps to MX-Fluxbox menu" \
    --center --text="  This is a quick way to add or remove Applications to the top of the menu,  \n for faster access, using the application's .desktop files, and, according to the MX-Fluxbox \n visual style,no icon is used.\n \n The 'Pin' button shows a list of the applications .desktop files installed on your system.\n  Scroll down until you see the app you want to pin, double left click it.\n \n The 'Unpin' button shows a list of the applications .desktop files pinned to the menu. \n This does remove any 'normal' menu entries, only the ones related to .desktop files. \n \n IMPORTANT: Always have a back up copy of your  ~/menu-mx file!" \
    --button="Pin":"bash -c pin" \
    --button="Unpin":"bash -c unpin" \
    --button="Exit":0
echo $?

#####

@Jerry, I really have no time to work on any other suggestions I may have, but I'll be checking for news here on the forum for any development on this very nice idea you started!

P.

User avatar
gsm
Posts: 120
Joined: Wed Dec 19, 2018 9:16 am

Re: MX-Fluxbox

#202 Post by gsm »

I like to have different wallpapers for each workspace. This is one reason i am using MX-Linux (XFCE).
There seems to be an utility called Fluxspace that could do the job
What about adding a tested and working Fluxspace to the repository, to make some settings possible including setting different wallpapers?

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

Re: MX-Fluxbox

#203 Post by Jerry3904 »

Never heard of it but I'll take a look, thanks.
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: MX-25 Fluxbox, ThinkPad X1 Carbon gen 9 with i7
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

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

Re: MX-Fluxbox

#204 Post by Jerry3904 »

There's only an alpha from 15 years ago as far as I can tell. Not holding my breath...
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: MX-25 Fluxbox, ThinkPad X1 Carbon gen 9 with i7
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
Adrian
Developer
Posts: 9264
Joined: Wed Jul 12, 2006 1:42 am

Re: MX-Fluxbox

#205 Post by Adrian »

One thing I'm missing is a calendar when I click on the clock, is it possible to add such a thing? (sorry, it's 21 pages of stuff here, maybe this is discussed somewhere)

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

Re: MX-Fluxbox

#206 Post by Jerry3904 »

Orage is the calendar under Accessories, and you can leave it in systray
Production: MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: MX-25 Fluxbox, ThinkPad X1 Carbon gen 9 with i7
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
i_ri
Posts: 1144
Joined: Tue Jun 30, 2015 12:26 am

Re: MX-Fluxbox

#207 Post by i_ri »

Hello Jerry3904 and Everyone
On fresh MX-19_64 installed <xfdashboard> 0.7.7.
XFCE4 set key board to open it with Control+d. works.
Installed mx-fluxbox for overlay session. Set fluxbox keys to open xfdashboard with Control+d.
Log-into MX-19 fluxbox session press Control+d and there is xfdashboard. works.
edit: updated the shortcut to Shift+Alt+f for all sessions.

"Maybe a Gnome shell like dashboard for Xfce"
Xfdashboard pager, launcher, application menu. at about 38MiB[anyone else? With or]. It can run without a daemon; close and gone.(?)
This mx-fluxbox session screen , look , so ,
see image attach thdashnodae.jpg
Shift+Alt+f
xfdashboard windows view. click or drop a [favorite]/launcher.
see image attach thxfdashboardwin.png
xfdashboard applications menu view (the theme is -wine(the red).) click or drop a menu item or favorite.
see image attach thxfdashboardapp.png
You do not have the required permissions to view the files attached to this post.
Last edited by i_ri on Tue Feb 11, 2020 10:58 pm, edited 1 time in total.

User avatar
i_ri
Posts: 1144
Joined: Tue Jun 30, 2015 12:26 am

Re: MX-Fluxbox

#208 Post by i_ri »

Hello Jerry3904 and Everyone
This fresh install MX-19_64 adding mx-fluxbox
found a niggle with nomacs. the fluxbox session first use of a not-responsive nomacs did not show Language Select message dialogue. In xfce session the nomacs language select appears. select. Now nomacs works systemwide.

User avatar
i_ri
Posts: 1144
Joined: Tue Jun 30, 2015 12:26 am

Re: MX-Fluxbox

#209 Post by i_ri »

Hello Jerry3904 and Everyone
MX-19_64 mx-fluxbox
A Main menu a Look menu a Settings menu.
The Look > Look executes xeyes; for fun.

Right-click upper desktop to have pointer poised near top of main menu.
Right-click low on desktop to have pointer poised near bottom of main menu.
This should weight the most used entries near top and bottom of main menu. Least used in the middle.
In this case the menu got so long that it is closer to put a link to all apps in the accessories tab than to mouse travel to the top of the main menu from the bottom. F6, okay.

Having no icons in menu is really smooth except one place. The kill zone strike area out of sight can use some big red x stop sign stop process icons next to each Menu item executing kill. (?) No, the big hammer is for file-manager.
You do not have the required permissions to view the files attached to this post.

User avatar
i_ri
Posts: 1144
Joined: Tue Jun 30, 2015 12:26 am

Re: MX-Fluxbox

#210 Post by i_ri »

Hello Jerry3904 and Everyone
idesk
Is it not ethical to copy command0 into command1 to make the left or right click inescapable same result?
Is there icon no-nos?
For the fluxhelp.lnk added Command[1]: /usr/bin/xmessage --msgbox "IDESK documents; opening browser" & xdg-open https://mxlinux.org/wiki/help-files/help-mx-idesktool/
two helps in one. (?) left FAQ, right wiki.

Fair share. here is sample-data icon lnk for a happy, personal, small computer:
table Icon
Caption: watch MX
ToolTip.Caption: MX on Distrowatch
Icon: /usr/local/share/icons/start-menu/mx-icons-start-squarecolour6.png
Width: 48
Height: 60
Command[0]: xdg-open https://distrowatch.com/table.php?distribution=mx
Command[1]: /usr/bin/xmessage --msgbox "Visit mxlinux.org/ for info."
X: 500
Y: 500
end
change right-click into link to forum or anything you want to run. Open multiple actions like group with either-click on one idesk icon.

added : Hello Jerry3904 and Everyone
idesk
image format. Have had working .xpm and .png.
not yet a .svg is not working here.
.
table Icon
Caption:
ToolTip.Caption: text and symbols
Icon: /usr/share/icons/Faenza/apps/48/accessories-character-map.png
Width: 48
Height: 48
X: 500
Y: 400
Command[0]: gucharmap
Command[1]: mx-idesktool
end

Post Reply

Return to “MX Fluxbox Official Release”