diff --git a/usr/bin/jgwallpaperchanger b/usr/bin/jgwallpaperchanger
index 4457136..0220f31 100755
--- a/usr/bin/jgwallpaperchanger
+++ b/usr/bin/jgwallpaperchanger
@@ -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="Colorizer menu główne"
COLORIZER_FONTS="Konfiguruj Czcionki"
@@ -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 losową tapetę"
CHOOSE_DESC="Wybierz tapetę (z menu kontekstowego)"
+ COL_WINDOW_DESC="Colorizer - okno"
+ COL_MENU_DESC="Colorizer - dynamiczne menu"
;;
*)
TITLE="Wallpaper Changer"
@@ -122,8 +127,12 @@ case $LANG in
B_LC_ACTION="Button left-click action"
RAND="random"
CHOOSE="choose"
+ COL_WINDOW="window"
+ COL_MENU="menu"
RANDOM_DESC="Set random wallpaper"
CHOOSE_DESC="Choose wallpaper (from context menu)"
+ COL_WINDOW_DESC="Colorizer - window"
+ COL_MENU_DESC="Colorizer - dynamic menu"
;;
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: [ $RAND ],^checkout(laction)") || out+=("$B_LC_ACTION: [ $CHOOSE ],^checkout(laction)")
+
+ case $t2_button_lclick_action in
+ random) out+=("$B_LC_ACTION: [ $RAND ],^checkout(laction)");;
+ choose) out+=("$B_LC_ACTION: [ $CHOOSE ],^checkout(laction)");;
+ window) out+=("$B_LC_ACTION: [ $COL_WINDOW ],^checkout(laction)");;
+ menu) out+=("$B_LC_ACTION: [ $COL_MENU ],^checkout(laction)");;
+ *) out+=("$B_LC_ACTION: [ $CHOOSE ],^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+=("綠 $CHOOSE_DESC") || out2+=("祿 $CHOOSE_DESC,mb-setvar t2_button_lclick_action=choose $CONF_FILE")
+ [[ "$t2_button_lclick_action" == "random" ]] && out2+=("綠 $RANDOM_DESC") || out2+=("祿 $RANDOM_DESC,mb-setvar t2_button_lclick_action=random $CONF_FILE")
+ out2+=("^sep()")
+ [[ "$t2_button_lclick_action" == "window" ]] && out2+=("綠 $COL_WINDOW_DESC") || out2+=("祿 $COL_WINDOW_DESC,mb-setvar t2_button_lclick_action=window $CONF_FILE")
+ [[ "$t2_button_lclick_action" == "menu" ]] && out2+=("綠 $COL_MENU_DESC") || out2+=("祿 $COL_MENU_DESC,mb-setvar t2_button_lclick_action=menu $CONF_FILE")
;;
esac