jgwallpaperchanger

This commit is contained in:
Daniel Napora 2024-01-28 21:39:36 +01:00
parent 3794af6e6d
commit 5636964b0e

View File

@ -47,11 +47,12 @@ EOF
fi
lclick(){
if [[ "$t2_button_lclick_action" == "random" ]];then
mbwallpaper -o
else
pcmanwp
fi
case $t2_button_lclick_action in
random) mbwallpaper -o;;
choose) pcmanwp;;
window) ycolorizer;;
menu) colorizer -s;;
esac
}
@ -76,7 +77,7 @@ case $LANG in
OPENDIR="Otwórz katalog z tapetami"
LEFTPANEL="Lewy panel"
OBTHEME="Motyw Openbox"
MENUPANELS="Menu i Panele"
MENUPANELS="Menu i Panele"
COLORIZER_HELP="Okno główne i Pomoc"
COLORIZER_ROOT="<b>Colorizer</b> menu główne"
COLORIZER_FONTS="Konfiguruj <b>Czcionki</b>"
@ -88,8 +89,12 @@ case $LANG in
B_LC_ACTION="Akcja przycisku (lewy klik)"
RAND="losuj"
CHOOSE="wybierz"
COL_WINDOW="okno"
COL_MENU="menu"
RANDOM_DESC="Ustaw <b>losową</b> tapetę"
CHOOSE_DESC="<b>Wybierz</b> tapetę (z menu kontekstowego)"
COL_WINDOW_DESC="Colorizer - <b>okno</b>"
COL_MENU_DESC="Colorizer - dynamiczne <b>menu</b>"
;;
*)
TITLE="Wallpaper Changer"
@ -122,8 +127,12 @@ case $LANG in
B_LC_ACTION="Button <i>left-click</i> action"
RAND="random"
CHOOSE="choose"
COL_WINDOW="window"
COL_MENU="menu"
RANDOM_DESC="Set <b>random</b> wallpaper"
CHOOSE_DESC="<b>Choose</b> wallpaper (<i>from context menu</i>)"
COL_WINDOW_DESC="Colorizer - <b>window</b>"
COL_MENU_DESC="Colorizer - dynamic <b>menu</b>"
;;
esac
@ -188,12 +197,22 @@ case "$1" in
out+=("$COLORIZER_CAVA,colorizer-cava -s")
out+=("^sep()")
[[ "$t2_button_lclick_action" == "random" ]] && out+=("$B_LC_ACTION: <b>[ $RAND ]</b>,^checkout(laction)") || out+=("$B_LC_ACTION: <b>[ $CHOOSE ]</b>,^checkout(laction)")
case $t2_button_lclick_action in
random) out+=("$B_LC_ACTION: <b>[ $RAND ]</b>,^checkout(laction)");;
choose) out+=("$B_LC_ACTION: <b>[ $CHOOSE ]</b>,^checkout(laction)");;
window) out+=("$B_LC_ACTION: <b>[ $COL_WINDOW ]</b>,^checkout(laction)");;
menu) out+=("$B_LC_ACTION: <b>[ $COL_MENU ]</b>,^checkout(laction)");;
*) out+=("$B_LC_ACTION: <b>[ $CHOOSE ]</b>,^checkout(laction)");;
esac
out2+=("^tag(laction)")
out2+=("^sep(Panel button left-click action)")
out2+=("$CHOOSE_DESC,mb-setvar t2_button_lclick_action=choose $CONF_FILE;$me")
out2+=("$RANDOM_DESC,mb-setvar t2_button_lclick_action=random $CONF_FILE;$me")
[[ "$t2_button_lclick_action" == "choose" ]] && out2+=("<big>綠</big> $CHOOSE_DESC") || out2+=("<big>祿</big> $CHOOSE_DESC,mb-setvar t2_button_lclick_action=choose $CONF_FILE")
[[ "$t2_button_lclick_action" == "random" ]] && out2+=("<big>綠</big> $RANDOM_DESC") || out2+=("<big>祿</big> $RANDOM_DESC,mb-setvar t2_button_lclick_action=random $CONF_FILE")
out2+=("^sep()")
[[ "$t2_button_lclick_action" == "window" ]] && out2+=("<big>綠</big> $COL_WINDOW_DESC") || out2+=("<big>祿</big> $COL_WINDOW_DESC,mb-setvar t2_button_lclick_action=window $CONF_FILE")
[[ "$t2_button_lclick_action" == "menu" ]] && out2+=("<big>綠</big> $COL_MENU_DESC") || out2+=("<big>祿</big> $COL_MENU_DESC,mb-setvar t2_button_lclick_action=menu $CONF_FILE")
;;
esac