colorizer added
parent
251c30668b
commit
9d856a1518
|
@ -213,7 +213,11 @@ case $LANG in
|
||||||
esac
|
esac
|
||||||
|
|
||||||
#me="mb-jgtools $jgtools_last"
|
#me="mb-jgtools $jgtools_last"
|
||||||
me="jgmenusettings-pipe -s"
|
if [[ $1 == "-r" ]];then
|
||||||
|
me="${0##*/} -s"
|
||||||
|
else
|
||||||
|
me="${0##*/} ${1:--s}"
|
||||||
|
fi
|
||||||
|
|
||||||
L="mb-jgtools places"
|
L="mb-jgtools places"
|
||||||
R="mb-jgtools right"
|
R="mb-jgtools right"
|
||||||
|
@ -449,10 +453,14 @@ out+=("Colorizer - Menu,colorizer-menus -s")
|
||||||
|
|
||||||
### RUN
|
### RUN
|
||||||
|
|
||||||
if [[ $1 == "-s" ]]; then
|
#if [[ $1 == "-s" ]]; then
|
||||||
|
if [[ $1 == "-s" || $1 == "-c" ]]; then
|
||||||
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
|
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
|
||||||
out+=("^sep()")
|
out+=("^sep()")
|
||||||
out+=(" ⮜ $LEFTPANEL,mb-jgtools places")
|
case "$1" in
|
||||||
|
-s) out+=(" ⮜ $LEFTPANEL,mb-jgtools places");;
|
||||||
|
-c) out+=(" ⮜ Colorizer,colorizer -s");;
|
||||||
|
esac
|
||||||
|
|
||||||
|
|
||||||
if [[ $panels_heightpos == "top" ]]; then
|
if [[ $panels_heightpos == "top" ]]; then
|
||||||
|
@ -471,6 +479,11 @@ jgmenu_icon_size=0
|
||||||
JGWIDTH=40
|
JGWIDTH=40
|
||||||
menu_margin_x=${submenu_spacing:-0}
|
menu_margin_x=${submenu_spacing:-0}
|
||||||
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
|
||||||
|
|
||||||
|
#TEMP POSITION:
|
||||||
|
MENU_VALIGN="top"
|
||||||
|
MENU_MARGIN_Y="60"
|
||||||
|
|
||||||
mkconfigfile
|
mkconfigfile
|
||||||
|
|
||||||
cat <<EOF > ${MENU_ITEMS}
|
cat <<EOF > ${MENU_ITEMS}
|
||||||
|
|
|
@ -64,7 +64,12 @@ esac
|
||||||
|
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
|
||||||
me="jgwallpaperchanger -s"
|
if [[ $1 == "-r" ]];then
|
||||||
|
me="${0##*/} -s"
|
||||||
|
else
|
||||||
|
me="${0##*/} ${1:--s}"
|
||||||
|
fi
|
||||||
|
|
||||||
#help='\nBased on Mabox forum member Shwaybo <a href="https://forum.maboxlinux.org/t/chwp-desktop-wallpaper-changer/496">idea</a>.\n\nchange wallpapers from a directory, never using the same picture twice until all the pictures have been shown, and rotating x number of seconds (configurable) before the next wallpaper change.\n'
|
#help='\nBased on Mabox forum member Shwaybo <a href="https://forum.maboxlinux.org/t/chwp-desktop-wallpaper-changer/496">idea</a>.\n\nchange wallpapers from a directory, never using the same picture twice until all the pictures have been shown, and rotating x number of seconds (configurable) before the next wallpaper change.\n'
|
||||||
|
|
||||||
#out+=("^sep($TITLE)")
|
#out+=("^sep($TITLE)")
|
||||||
|
@ -93,12 +98,16 @@ out2+=("^tag(interval)")
|
||||||
for i in 3 5 10 30 60 120 300 600 1800 3600; do out2+=("$(printf "<tt> %4s</tt>,%s" "$i" "mb-setvar interval=${i} $CONFIG_FILE;$me")");done
|
for i in 3 5 10 30 60 120 300 600 1800 3600; do out2+=("$(printf "<tt> %4s</tt>,%s" "$i" "mb-setvar interval=${i} $CONFIG_FILE;$me")");done
|
||||||
|
|
||||||
### RUN
|
### RUN
|
||||||
if [[ "$1" == "-s" ]]; then
|
if [[ $1 == "-s" || $1 == "-c" ]]; then
|
||||||
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
|
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
|
||||||
|
out+=("^sep()")
|
||||||
|
case "$1" in
|
||||||
|
-s) out+=(" ⮜ $LEFTPANEL,mb-jgtools places");;
|
||||||
|
-c) out+=(" ⮜ Colorizer,colorizer -s");;
|
||||||
|
esac
|
||||||
|
|
||||||
. $HOME/.config/mabox/mabox.conf
|
. $HOME/.config/mabox/mabox.conf
|
||||||
|
|
||||||
out+=("^sep()")
|
|
||||||
out+=(" ⮜ $LEFTPANEL,mb-jgtools places")
|
|
||||||
|
|
||||||
if [[ $panels_heightpos == "top" ]]; then
|
if [[ $panels_heightpos == "top" ]]; then
|
||||||
MENU_VALIGN="top"
|
MENU_VALIGN="top"
|
||||||
|
@ -128,7 +137,9 @@ JGWIDTH=$((jgtools_padding + 278 + jgtools_padding))
|
||||||
then
|
then
|
||||||
convert ${WALLPATH} -resize 270x150^ -gravity center -extent 270x150 ${THUMB}
|
convert ${WALLPATH} -resize 270x150^ -gravity center -extent 270x150 ${THUMB}
|
||||||
fi
|
fi
|
||||||
|
#TEMP POSITION:
|
||||||
|
MENU_VALIGN="top"
|
||||||
|
MENU_MARGIN_Y="60"
|
||||||
|
|
||||||
mkconfigfile
|
mkconfigfile
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue