MX Fluxbox Screenshots

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: 23051
Joined: Wed Jul 19, 2006 6:13 am

Re: MX Fluxbox Screenshots

#841 Post by Jerry3904 »

What exactly is the object in the upper right corner?
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
Amiga-MX
Posts: 233
Joined: Sun Jan 23, 2022 4:27 pm

Re: MX Fluxbox Screenshots

#842 Post by Amiga-MX »

In the very very right top, there is an artefact caused by 2nd monitor when screenshot near conky, if is that what you mean.

The panel below that artefact is a conky instance.


MXMLGO

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

Re: MX Fluxbox Screenshots

#843 Post by kobaian »

I hope this solution will end the eternal war between the House of Rofi and the House of Appfinder. ;)

Image



Image



Image


How does it work?

I have created three files in the ~/.config/tint2/scripts directory: tint2launcher, defaultlauncher and switchlauncher.
The first one - tint2launcher is a short bash script that replaces the command under the MX-Logo on the Tint2 panel:

Code: Select all

#!/bin/bash

tint2launch=$(cat ~/.config/tint2/scripts/defaultlauncher)

if [[ $tint2launch -eq 1 ]] ; then

rofi -show drun && exit 0

else

xfce4-appfinder & exit 0

fi
The second one - defaultlauncher - stores the variable that indicates the preferred application-launcher:

Code: Select all

1
The third one - switchlauncher - is the bash script that allows to switch between the two launchers:

Code: Select all

#!/bin/bash

tint2launch=$(cat ~/.config/tint2/scripts/defaultlauncher)
TITLE=$"Change your app-launcher"
MESSAGE1=$"Your current application-launcher is <b>Rofi</b>.
  Do you want to switch to <b>XFCE4-Appfinder</b>?"
MESSAGE2=$"Your current application-launcher is <b>XFCE4-Appfinder</b>.
  Do you want to switch to <b>Rofi?</b>"
BUTTON1=$"Yes"
BUTTON2=$"No"

if [[ $tint2launch -eq 1 ]] ; then

yad --title="$TITLE" --borders=18  --center --on-top --image=dialog-question-symbolic --skip-taskbar  --window-icon=dialog-question \
	--text="  $MESSAGE1" \
	--button="$BUTTON1!dialog-yes!:1" \
	--button="$BUTTON2!dialog-no!:0" \


else

yad --title="$TITLE" --borders=18  --center --on-top --image=dialog-question-symbolic --skip-taskbar --window-icon=dialog-question \
	--text="  $MESSAGE2" \
	--button="$BUTTON1!dialog-yes!:2" \
	--button="$BUTTON2!dialog-no!:0" \

fi

ret=$?

[[ $ret -eq 0 ]] && exit 0

if [[ $ret -eq 1 ]]; then
    sed -i 's/1/0/' ~/.config/tint2/scripts/defaultlauncher && exit 0

elif [[ $ret -eq 2 ]]; then
    sed -i 's/0/1/' ~/.config/tint2/scripts/defaultlauncher && exit 0
    
fi
And the last thing is to create the button that contains the following lines to execute the new commands:

Code: Select all

button_lclick_command = bash ~/.config/tint2/scripts/tint2launcher
button_rclick_command = bash ~/.config/tint2/scripts/switchlauncher
Desktop PC: Intel Core i5-4670K, Gigabyte H81M-S2PV, 16GB RAM, NVIDIA Quadro K2000. 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
Amiga-MX
Posts: 233
Joined: Sun Jan 23, 2022 4:27 pm

Re: MX Fluxbox Screenshots

#844 Post by Amiga-MX »

That's fantastic. :popcorn:

Just hope all the ecosystem to have some king of telestransporting module like the bridge you have extended. The utility is highly spicy. The environment is flavored.

I've heard good things about rofi at codely.tv. It seems rofi is making few mac developer returning to linux, just because the launch utility, among others.

I personally appreciate, what you made.

Just one last question. What about to have both, is there any inter-dependency between appfinder and rofi ?

Nowadays, and depending to my anime state y use both in several manner at a time. Usually appfinder at a time almost always opened on the bottom left column and rofi at the bottom right modulus. I wish to have a picture but rofi jumps off as soon I pressed print screen. :happy:

MX-FB is even more acrobatic now. :spinning:

Thanks for your help.

User avatar
ceeslans
Posts: 811
Joined: Sun Apr 14, 2019 3:48 am

Re: MX Fluxbox Screenshots

#845 Post by ceeslans »

kobaian wrote: Thu Jan 05, 2023 8:26 pm I hope this solution will end the eternal war between the House of Rofi and the House of Appfinder. ;)
...
How does it work?

I have created three files in the ~/.config/tint2/scripts directory: tint2launcher, defaultlauncher and switchlauncher.
The first one - tint2launcher is a short bash script that replaces the command under the MX-Logo on the Tint2 panel
The second one - defaultlauncher - stores the variable that indicates the preferred application-launcher
The third one - switchlauncher - is the bash script that allows to switch between the two launchers
...
And the last thing is to create the button that contains the following lines to execute the new commands:

Code: Select all

button_lclick_command = bash ~/.config/tint2/scripts/tint2launcher
button_rclick_command = bash ~/.config/tint2/scripts/switchlauncher
@kobaian that is absolutely lovely. Tried it out (of course adapting the necessary code to call 'jgmenu' instead of absent 'xfce4-appfinder' ) and it works a treat.
The nice thing is that the switch can be applied in any tint2rc theme. Will have to look how to accomodate calls for different rofi themes/config.rasi files (like e.g your iconic theme, which I guess is different for bottom- or top position?)
In any case: thanks for this clever solution!
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: 23051
Joined: Wed Jul 19, 2006 6:13 am

Re: MX Fluxbox Screenshots

#846 Post by Jerry3904 »

Wow, that looks great! Clever concept and coding. Haven't tried it yet b/c it's still early in the morning over here, but will later.

The larger question IMO is whether we need to supply both in the first place. I was sort of thinking, once we have tested the rofi-as-applauncher, that we would just have one. Appfinder could then always be installed via Package Installer (not currently possible), and the Debian menu is installed anyway by default with mxfb-accessories and would just need to be activated.

Have to think about that some more...
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
Melber
Developer
Posts: 1200
Joined: Tue Mar 23, 2021 4:19 pm

Re: MX Fluxbox Screenshots

#847 Post by Melber »

@kobaian very nicely done

User avatar
wdscharff
Posts: 1088
Joined: Mon Feb 24, 2020 1:07 am

Re: MX Fluxbox Screenshots

#848 Post by wdscharff »

I know that many roads lead to Rome and having a choice is also a good thing.
I can't even remember the last time I used fbrun or xfce4-appfinder.
Even my guests use either rofi or the root menu.
I probably wouldn't even notice if the appfinder and fbrun were gone.

When I switched from xfce to fluxbox, it was different for the first few months, but then it disappeared from my focus:)
my working horse Desktop AMD Ryzen 9 3900x, 32GB Ram // SSD ... enough
mx-fluxbox, what else?

In nature there are neither rewards nor punishments.
There are consequences.


my wallpaper gallery

User avatar
siamhie
Global Moderator
Posts: 3219
Joined: Fri Aug 20, 2021 5:45 pm

Re: MX Fluxbox Screenshots

#849 Post by siamhie »

Amiga-MX wrote: Thu Jan 05, 2023 9:31 pm
Nowadays, and depending to my anime state y use both in several manner at a time. Usually appfinder at a time almost always opened on the bottom left column and rofi at the bottom right modulus. I wish to have a picture but rofi jumps off as soon I pressed print screen. :happy:

I use gimp for that specific purpose. It has a screenshot utility built-in with a timed delay. (File>Create>Screenshot)

gimp.png
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

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

Re: MX Fluxbox Screenshots

#850 Post by Jerry3904 »

I use Screenshot (xfce4-screenshoter) which is much faster and easier than going through Gimp for a delayed shot.
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

Post Reply

Return to “MX Fluxbox Official Release”