extending an MX 19.2 XFCE Panel function to 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
User avatar
Jerry3904
Administrator
Posts: 23502
Joined: Wed Jul 19, 2006 6:13 am

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#11 Post by Jerry3904 »

I have an alternative to propose:

Code: Select all

#!/bin/bash

#produce set of Action Buttons on screen

yad --form --center --width=250 --title="Exit Actions" --skip-taskbar \
	--window-icon="/usr/share/icons/mxflux.png" \
--field="Refresh":fbtn "fluxbox-remote restart" \
--field="Logout":fbtn "fluxbox-remote 'Exit' | killall fluxbox" \
--field="Reboot":fbtn "sudo /sbin/reboot" \
--field="Shutdown":fbtn "sudo /sbin/halt" \
--field="Suspend":fbtn "sudo pm-suspend" \
--button=gtk-cancel:1 \

exit
Here is the result
You do not have the required permissions to view the files attached to this post.
Production: 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

AA BB
Posts: 393
Joined: Mon Nov 11, 2019 10:49 pm

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#12 Post by AA BB »

very helpful responses, Thanks to all

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

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#13 Post by PPC »

Jerry3904 wrote: Thu Jun 25, 2020 11:31 am I have an alternative to propose
This is more in line with the lack of icons that MXFB menu has. I do like icons, but not having icons in this exit menu follows more the rest of the design...
Suggestion: use --width=250 (the full title does not display in my resolution if I use --width=200).
Alternative suggestions: according to MXFB minimalist trend you could do away with the window decoration ( --undecorated) or keep the window decoration and remove the cancel button.
This will make the dock even more self sufficient, which is always handy: most of what a normal user may want to do with the computer is really just one click away, without any need for menus!
(Personal note- I use skippy-xd task switcher: with that I can perform any action, including switching tasks, from the dock! How minimalist is that?)

P.

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

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#14 Post by Jerry3904 »

Will change the width, thanks; but the cancel button stays, for now.
Production: 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
anticapitalista
Developer
Posts: 4315
Joined: Sat Jul 15, 2006 10:40 am

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#15 Post by anticapitalista »

Are you going to localise it?
anticapitalista
Reg. linux user #395339.

Philosophers have interpreted the world in many ways; the point is to change it.

antiX with runit - lean and mean.
https://antixlinux.com

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

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#16 Post by Jerry3904 »

I'm not totally sure, thanks for the question. With only 5 very common computer words...? In any case I will wait for things to settle a bit before making this hard and fast.
Production: 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
ceeslans
Posts: 862
Joined: Sun Apr 14, 2019 3:48 am

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#17 Post by ceeslans »

I like icons in the exit menu...

Image

but sure, 'no-icons' is more in line with the MXFB menu layout
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+

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

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#18 Post by Jerry3904 »

That looks pretty nice for sure, thanks. Have any code to share...?
Production: 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
ceeslans
Posts: 862
Joined: Sun Apr 14, 2019 3:48 am

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#19 Post by ceeslans »

sorry, here is the yad script:

Code: Select all

#!/bin/bash

yad --form --columns 1 --width=175 --title "Exit..." --borders=8 --window-icon="gtk-quit" --center --on-top \
    --field="<span font='Monospace'>Logout   </span>!system-log-out!_Logout":fbtn "fluxbox-remote 'Exit' || killall fluxbox" \
    --field="<span font='Monospace'>Suspend  </span>!system-suspend!_Suspend":fbtn "sudo 'pm-suspend' " \
    --field="<span font='Monospace'>Reboot   </span>!system-reboot!_Reboot":fbtn "sudo reboot" \
    --field="<span font='Monospace'>Shutdown </span>!system-shutdown!_Shutdown":fbtn "sudo poweroff" \
    --button=gtk-cancel:1 \
exit 0
note the use of a mono font; this is needed to get the icons+text aligned correctly.
please edit the --width | --title | --window-icon etc, as you feel fit

for layout consistency, it would be better to capture the "Cancel" item also in a 'field' --> but I dont know how to do that :)
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+

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

Re: extending an MX 19.2 XFCE Panel function to FluxBox

#20 Post by Jerry3904 »

Thanks. I kind of like the boxed Cancel button down and to the right, indicating that it is not an exit choice.
Production: 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”