colorizer added

master
Daniel Napora 2022-06-08 21:46:21 +02:00
parent 251c30668b
commit 9d856a1518
2 changed files with 32 additions and 8 deletions

View File

@ -213,7 +213,11 @@ case $LANG in
esac
#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"
R="mb-jgtools right"
@ -449,10 +453,14 @@ out+=("Colorizer - Menu,colorizer-menus -s")
### RUN
if [[ $1 == "-s" ]]; then
#if [[ $1 == "-s" ]]; then
if [[ $1 == "-s" || $1 == "-c" ]]; then
. /usr/share/mb-jgtools/pipemenu-standalone.cfg
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
@ -471,6 +479,11 @@ jgmenu_icon_size=0
JGWIDTH=40
menu_margin_x=${submenu_spacing:-0}
[ $(pidof picom) ] && MENU_RADIUS=$jgtools_radius
#TEMP POSITION:
MENU_VALIGN="top"
MENU_MARGIN_Y="60"
mkconfigfile
cat <<EOF > ${MENU_ITEMS}

View File

@ -64,7 +64,12 @@ esac
. $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'
#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
### RUN
if [[ "$1" == "-s" ]]; then
if [[ $1 == "-s" || $1 == "-c" ]]; then
. /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
out+=("^sep()")
out+=(" ⮜ $LEFTPANEL,mb-jgtools places")
if [[ $panels_heightpos == "top" ]]; then
MENU_VALIGN="top"
@ -128,7 +137,9 @@ JGWIDTH=$((jgtools_padding + 278 + jgtools_padding))
then
convert ${WALLPATH} -resize 270x150^ -gravity center -extent 270x150 ${THUMB}
fi
#TEMP POSITION:
MENU_VALIGN="top"
MENU_MARGIN_Y="60"
mkconfigfile