Page 97 of 140
Re: MX Fluxbox Screenshots
Posted: Thu Jul 20, 2023 7:59 pm
by AVLinux
@ceeslans
As usual, it looks tremendous! Is that your own jgmenu config? Unfortunately the latest jgmenu update broke the custom menu I had done for MXDE (Enlightenment-based) and I haven't come up with a new design I'm happy with, I would be interested in your config for my next Bookworm version if that would be possible?
Re: MX Fluxbox Screenshots
Posted: Thu Jul 20, 2023 8:22 pm
by siamhie
I learned something new in fluxbox. I can swap out the solid line separator with keyboard symbols using the [nop] code.
Code: Select all
*[nop]* ('label') <'icon'>;;
Insert a non-operational item into the current menu. This is much like
*[separator]*, but instead of a line, it inserts a 'label'. This can be used
to help format the menu into blocks or sections if so desired. The 'label' is
optional, and if omitted a blank item will be inserted.
This is my main menu config now.
Code: Select all
#the default versions of the submenus are located in /usr/share/mxflux/menu
[begin] (MX Fluxbox)
[submenu] (All Apps)
[include] (~/.fluxbox/submenus/full_menu)
[separator]
[exec] (Update) {/usr/bin/mxfb-menu-generator}
[exec] (Disable) {mx-tweak --other}
[end]
[submenu] (Recent files)
[include] (~/.fluxbox/submenus/recent_files_menu)
[separator]
[exec] (Update) {~/.fluxbox/scripts/recentfiles-fbmenu}
[end]
[nop] (**********)
[nop] (**********)
[exec] (Librewolf) {librewolf}
[exec] (Thunar) {exo-open $HOME}
[exec] (Terminal) {xfce4-terminal}
[exec] (Run) {mxfb-rofirun}
[submenu] (Emby)
[exec] (Start) {systemctl start emby-server.service}
[exec] (Stop) {systemctl stop emby-server.service}
[end]
[submenu] (VPN)
[exec] (Start) {systemctl start nordvpnd.service}
[exec] (Stop) {systemctl stop nordvpnd.service}
[end]
[exec] (UMS) {sh /home/siamhie/ums-10.17.1/UMS.sh}
[exec] (XMMS) {xmms}
[exec] (Weather) {mxfb-simple-weather}
[nop] (**********)
[nop] (**********)
[submenu] (Appearance)
[include] (~/.fluxbox/submenus/appearance)
[end]
[submenu] (Settings)
[include] (~/.fluxbox/submenus/settings)
[end]
[submenu] (Out of sight)
[include] (~/.fluxbox/submenus/out-of-sight)
[end]
[submenu] (Leave)
[exec] (Refresh) {fluxbox-remote restart; idesktoggle idesk refresh }
[exec] (Suspend) {sudo 'pm-suspend'}
[exit] (Logout)
[exec] (Reboot) {sudo /sbin/reboot}
[exec] (Shutdown) {sudo /sbin/halt}
[end]
[end]

Re: MX Fluxbox Screenshots
Posted: Thu Jul 20, 2023 9:00 pm
by Jerry3904
Nice flexibility.
Re: MX Fluxbox Screenshots
Posted: Fri Jul 21, 2023 3:21 am
by ceeslans
AVLinux wrote: ↑Thu Jul 20, 2023 7:59 pm@ceeslans
As usual, it looks tremendous! Is that your own jgmenu config? Unfortunately the latest jgmenu update broke the custom menu I had done for MXDE (Enlightenment-based) and I haven't come up with a new design I'm happy with, I would be interested in your config for my next Bookworm version if that would be possible?
Sure! Attached is the archive with my jgmenu config files; these need to be placed in ~/.config/jgmenu folder. And below also a small script called 'exitcmd' , that the append.csv file calls for. (I use this script systemwide for init-agnostic logout/exit commands).
Please note that I'm basically only using jgmenu for application launching from a tint2 button, and is configured to apply the color- and font settings of the running tint2 panel. If running as standalone rightclick desktop menu, you will need to set independent colors yourself.
Default iconsize is set at 16px , but you can override this in the tint2 exec command e.g.
Code: Select all
jgmenu --icon-size=20 or:
jgmenu --icon-size=24
## or if you want to disable icons altogether:
jgmenu --icon-size=0
(note that this
--icon-size= option does not work in combination with the
'jgmenu_run' command ...).
exitcmd (make it executable and place it in your $path)
Code: Select all
#!/bin/bash
### simple script to set correct exit-option commands
### for MX-21 Fluxbox --> booting 'sysvinit' or 'systemd'
### options
# -f : reFresh fluxbox
# -l : Logout user
# -k : locK screen
# -s : Suspend
# -h : Hibernate
# -r : Reboot
# -p : Poweroff
# no option selected: --> will invoke notify-send
###=========================================================
cmd_rfresh="fluxbox-remote restart"
cmd_lgout="pkill -KILL -u $USER "
cmd_lck="dm-tool switch-to-greeter"
if [[ ! -x /run/systemd/system ]];then
cmd_sspend="sudo pm-suspend"
cmd_hibern="sudo pm-hibernate"
cmd_rboot="sudo reboot"
cmd_pdown="sudo poweroff"
else
cmd_sspend="systemctl suspend"
cmd_hibern="systemctl hibernate"
cmd_rboot="systemctl reboot"
cmd_pdown="systemctl poweroff"
fi
case "$1" in
-f) $cmd_rfresh
;;
-l) $cmd_lgout
;;
-k) $cmd_lck
;;
-s) $cmd_sspend
;;
-h) $cmd_hibern
;;
-r) $cmd_rboot
;;
-p) $cmd_pdown
;;
*) notify-send -t 5000 "no exit-option specified" -i "/usr/share/icons/Papirus-Dark/24x24/actions/gtk-cancel.svg"
;;
esac
Re: MX Fluxbox Screenshots
Posted: Fri Jul 21, 2023 8:09 am
by i_ri
[nop] (hello )
everyone and siamhie
With the font DejaVu Sans
nop found a bookworm bowtie, mrowkoob bowtie.
Bracket {text} and [nop] in submenu extend message.
An empty submenu text compare to nop.
[nop] (↓⇊ ➴➶ ♪♩♫♬ ⧓ bookworm )
[nop] (№②③➁➂)
[submenu] (trial∷∷∷∷∷∷∷∷♩) {empty}
[end]
[nop] (∺∷)
my system rolls with UTF8 encoding, so it works at UTF8 without any tags.
If ever You need to change from what you run , to a different temporary encoding, tags look like
this sample
[encoding] {UTF-8}
[nop] (↓⇊ ➴➶ ♪♩♫♬ ⧓ bookworm )
[endencoding]
Re: MX Fluxbox Screenshots
Posted: Fri Jul 21, 2023 8:16 am
by AVLinux
@ceeslans
Thanks so much, will experiment with it this weekend!
Re: MX Fluxbox Screenshots
Posted: Wed Jul 26, 2023 9:24 am
by ceeslans
Current MX23 based fluxbox desktop.
Running picom-9.1-1 as compositor. This version is rock-stable on my (rather old) hardware, no more flashing of cli-apps during open/close actions.
It offers smooth fading, beautiful shadowing and really nice rounding of menu+application windows. Yes, it does consume a good 30Mb more ram than compton (see the 'ps_mem' command output of startup items in stjerm dropdown terminal at rightside of the screen) - but it's definitely worth it.
gtk-theme, fluxbox-style and tint2 panel are all 'crunchbang' styled.
The calendar shown is a yad script by PPC that allows to enter and view events (thanks
@PPC)
Also showing the jgmenu-based auto-updated recent-files popup menu, initiated by rightclicking the tint2 button.
Background image is a Void wallpaper (with text removed).

Re: MX Fluxbox Screenshots
Posted: Wed Jul 26, 2023 9:29 am
by Jerry3904
Really smooth! I don't remember that PPC script (though I have a lot of his): do you have a link?
Re: MX Fluxbox Screenshots
Posted: Wed Jul 26, 2023 10:02 am
by ceeslans
Jerry, I know I found it on the antiX forum; however, unable to trace the relevant forum post. If I'm not mistaken, it ultimately received upgrades for added notifications and/or alarms.
If you're interested: below is the "EventCalendar" script (no alarms or notitications), slightly modified and englishified

by me.
Code: Select all
#!/bin/bash
################################
# Yad calendar that allows to enter and view events, created for use with antiX Linux
#Version 2- 14/01/2022, by PPC, GPL license, use as you wish, but please keep this atribution lines
Add_event(){
# Day without event, add one...
event=$(yad --window-icon="/usr/share/icons/Papirus/24x24/apps/calendar.svg" --width=400 --form --center --title="Add event for $day " --field="") && event=${event%|*}
space=" "
text=$day$space$event
echo $text >> $HOME/yad-calendar.txt
exit
}
Edit_event(){
# Day with existing event, edit it...
entrada=$(grep -h $day $HOME/yad-calendar.txt)
line=($(grep -n $day $HOME/yad-calendar.txt | head -n 1 | cut -d: -f1))
altered_entry=$(yad --window-icon="/usr/share/icons/Papirus/24x24/apps/calendar.svg" --width=400 --center --title="Edit event for $day " --button="OK" --form --field="" "$entrada")
#remove last unecessary character
entry=${altered_entry%|*}
#save text into the original line
awk -v line=$line -v texto="$entry" 'NR=='line' {$0='texto'} { print }' $HOME/yad-calendar.txt > $HOME/yad-calendar.txt.TEMP
cp $HOME/yad-calendar.txt.TEMP $HOME/yad-calendar.txt
exit
}
Search_event(){
###future entry to search for events:
event_to_search=$( yad --window-icon="/usr/share/icons/Papirus/24x24/apps/calendar.svg" --title="Search Events..." --center --width=350 --entry --entry-label="" --button="Find")
rm /tmp/agenda_search_results.txt
#Display results, only if something was searched
if [ -z ${event_to_search} ]; then exit; else grep -i $event_to_search $HOME/yad-calendar.txt > /tmp/agenda_search_results-desorganized.txt
grep -i $event_to_search $HOME/yad-calendar.txt > /tmp/agenda_search_results-desorganized.txt
sort -n -t"/" -k3 -k2 -k1 /tmp/agenda_search_results-desorganized.txt > /tmp/agenda_search_results.txt
yad --window-icon="/usr/share/icons/Papirus/24x24/apps/calendar.svg" --title="Event(s) found" --no-buttons --width=420 --height=280 --center --separator=" " --list --column="" < /tmp/agenda_search_results.txt
#pkill yad
exit 1
fi
}
#import functions and make sure that the default config file exists
export -f Add_event Edit_event Search_event
touch ~/yad-calendar.txt && [ -s ~/yad-calendar.txt ] || echo "28/06/2020 This is how yad-calendar entries work! Add ONLY ONE line per day, starting with the date. If nothing shows up in the calendar, try another date format like dd-mm-yyyy" > $HOME/yad-calendar.txt
#Main part of the script:
#New section: on the top of the month view, display todays event's if any;
today=$(date +%x)
todays_events=$(grep $today $HOME/yad-calendar.txt)
#Draw main window
day=$(yad --class=EventCalendar --calendar --center --width=280 --borders=7 --window-icon="/usr/share/icons/Papirus/24x24/apps/calendar.svg" --title="Calendar" --details=$HOME/yad-calendar.txt --buttons-layout=spread --button="Search":"bash -c Search_event" --button="Close":1)
if [[ $foo -eq 1 ]]; then
exit 1
fi
#If no date selected, just exit
[ -z "$day" ] && exit
#If a date was selected, see if has an event and run the corresponding function
if grep -q $day $HOME/yad-calendar.txt; then
Edit_event
else
Add_event
fi
Re: MX Fluxbox Screenshots
Posted: Sat Aug 05, 2023 7:11 am
by kobaian
First MXFB-23 Final desktop

Theme: Yaru-olive-dark
Appfinder: Southern-dark