Re: MX-21 MX-Fluxbox
Posted: Tue Aug 31, 2021 2:32 pm
OK. I just finished it and uploaded it to my repo, will send a link after final test.
Code: Select all
#! /bin/bash
# mxquUsedconfig, companion mxfb-quickshot
files=`yad --file --directory --title="Quickshot folder"`
if [ "$files" = "" ] ; then
exit 1
else
dir_path=`dirname "$files"`
uDNI=`dirname "$files"/$(basename "$files")`
base_name=$(basename "$files")
fi
source ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
sed -i s,${DESTDIR},${uDNI}, ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
Code: Select all
#! /bin/bash
# mxquU requires mxquUsedconfig, companion mxquUsedconfig
# inside this cho_1dest, mxquUsedconfig.
# A copy of the script that the Folder sedconfig button does action;
# also inserted into, for first use of, usr/bin/mxfb-quickshot
#
cho_1dest() {
files=`yad --file --directory --title="Quickshot folder"`
if [ "$files" = "" ] ; then
exit 1
else
dir_path=`dirname "$files"`
uDNI=`dirname "$files"/$(basename "$files")`
base_name=$(basename "$files")
fi
source ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
sed -i s,${DESTDIR},${uDNI}, ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
}
#
source ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
export DIALOG=$(cat <<End_of_Text
<window title="Qscreenshot" window-position="1">
<vbox>
<frame $DESTDIR>
<frame Quickshot>
<button>
<label> FFolder config </label>
<action>${HOME}/.config/MX-Linux/mxquUsedconfig &</action>
<action type="exit">Qscreenshot</action>
</button>
</frame>
</frame>
</vbox>
</window>
End_of_Text
)
I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog --program DIALOG); do
eval $STATEMENTS
done
IFS=$I
Code: Select all
# mxfb-quickshot.conf
#
#DESTDIR="${XDG_PICTURES_DIR}"
DESTDIR=/home/demo/Qaptur
#NAME="`date +%y%m%d_%M%S_`\$wx\$h"
NAME="zz"
SUF="jpg"
PRE=""
#### Options####
## Consult 'man scrot' for other options ##
# Automatically take a full-screen shot with high quality
#OPTION="-q 100"
# Interactively select a window (click anywhere) or draw a rectangle with the mouse for a high-quality shot.
OPTION="-s -q 89"
Code: Select all
#! /bin/bash
# mxfb-quickshot in /bin requires mxfb-quickshot.conf
#
## this app was developed by tenner and can be downloaded in its original at http://tenr.de/snippets/scripts/shot.sh
## modified for use with MX-Fluxbox and released October 2020 under GPLv3
## reworked by MX Devs April-August 2021
export TEXTDOMAIN=mxfb-quickshot
export TEXTDOMAINDIR="/usr/share/locale"
TEXT1="Location"
TEXT2="Name"
TEXT3="Options"
## the following parameters are set in ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
#DESTDIR="${XDG_PICTURES_DIR}"
#NAME="`date +%y%m%d_%M%S`"
#SUF="png"
#PRE=""
cd ${HOME}
if [ ! -f "$HOME/.config/MX-Linux/mxfb-quickshot.conf" ]; then
cp /usr/share/mxfb-quickshot/mxfb-quickshot.conf $HOME/.config/MX-Linux/mxfb-quickshot.conf;
fi
[ -r "$HOME/.config/user-dirs.dirs" ] && source "$HOME/.config/user-dirs.dirs"
cho_1dest() {
files=`yad --file --directory --title="Quickshot folder"`
if [ "$files" = "" ] ; then
exit 1
else
dir_path=`dirname "$files"`
uDNI=`dirname "$files"/$(basename "$files")`
base_name=$(basename "$files")
fi
source ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
sed -i s,${DESTDIR},${uDNI}, ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
}
if ! [ -d ${HOME}/Qaptur ] ; then
mkdir ${HOME}/Qaptur &
cho_1dest
fi
source ${HOME}/.config/MX-Linux/mxfb-quickshot.conf
display_help() {
cat << EOF
Usage: `basename "$0"` [-r/r/-w/w/-b/b] [-png|png|-jpg|jpg]
EOF
}
take_3shot() {
cd ${DESTDIR}
scrot ${OPTION}
}
if [ $# -gt 2 ]
then
display_help
exit 1
elif [ $# -eq 0 ]
then
take_3shot
exit 0
else
case "$1" in
-r|r|-R|-r|root|Root|-root|-Root)
OPTION=""
;;
-w|w|-W|-W|window|Window|-window|-Window)
OPTION="-s"
#PRE="part_"
;;
-b|b|-B|-B|border|Border)
OPTION="-sb"
#PRE="part_"
;;
*)
display_help
exit 1
esac
case "$2" in
jpg|JPG|-jpg|-JPG)
SUF="jpg"
;;
png|PNG|-png|-PNG)
SUF="png"
;;
*)
display_help
exit 1
esac
take_3shot
exit 0
fi
@SenpaiCode: Select all
Code: Select all
Trying the right-click menu entries on the screen:
Between "Run" and "Terminal" there is an empty space, if you press it it launches the "Settings manager", the name is missing to see it and be able to translate it.
I have seen a typo in my Spanish translation, is this menu uploaded to Transifex?
In All App->Accessories (full_menu):
"App Finder" entry is duplicated.
"compton" does nothing and does not show any error, from console it says that it is already running.
In All App->System
Ndivia driver installer, does not work, from MX tools, it works.
MX fix keys, the entry is duplicated and does nothing, from MX tools, it works.
All App->Settings:
Window manager settings, it does nothing...
Window manager, does nothing...
Personally, since the majority of the Tint2 Panel Icons have a transparent B/W design, I would prefer all of the icons used in the Tint2 panel had that same look, and eliminate all color in the panel. I can see the wisdom in allowing the package icon to turn green when there are updates, or shaded in white when there are updates available since it does give a tool tip as well, but my eyes enjoy an uniform look for the whole panel, and the B/W icons are fine for me. Otherwise switching the icons to match the papyrus icons in the dock would also be visually appealing I think this would of course call for all of them to be colorized then.Jerry3904 wrote: Mon Sep 06, 2021 8:53 amDesign idea: match the bg color of the MX logo for Appfinder with the exit-options icon.