update
parent
18742cd373
commit
75399a366e
|
@ -29,15 +29,20 @@ KBTEXT="$USR_CFG_DIR/kbinds.txt"
|
||||||
case $LANG in
|
case $LANG in
|
||||||
pl*)
|
pl*)
|
||||||
BKP_EDIT="Backup oraz edycja rc.xml"
|
BKP_EDIT="Backup oraz edycja rc.xml"
|
||||||
GUI_EDIT="Edytuj w obkey (GUI)"
|
|
||||||
DISPLAY_IN_WINDOW="Pokaż w nowym oknie"
|
DISPLAY_IN_WINDOW="Pokaż w nowym oknie"
|
||||||
DISPLAY_IN_MENU="Pokaż w menu"
|
DISPLAY_IN_MENU="Pokaż w menu"
|
||||||
WINDOW_COMMANDS="Zarządzanie oknami"
|
WINDOW_COMMANDS="Zarządzanie oknami"
|
||||||
RUN_COMMANDS="Klawisze uruchamiania"
|
RUN_COMMANDS="Klawisze uruchamiania"
|
||||||
;;
|
;;
|
||||||
|
es*)
|
||||||
|
BKP_EDIT="Respaldar y Editar archivo rc.xml"
|
||||||
|
DISPLAY_IN_WINDOW="Mostrar Atajos de teclado en una nueva ventana"
|
||||||
|
DISPLAY_IN_MENU="Mostrar Atajos de teclado en el menú"
|
||||||
|
WINDOW_COMMANDS="Comandos para ventanas en Openbox"
|
||||||
|
RUN_COMMANDS="'Ejecutar' commandos"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
BKP_EDIT="Backup and Edit rc.xml"
|
BKP_EDIT="Backup and Edit rc.xml"
|
||||||
GUI_EDIT="Edit in obkey (GUI)"
|
|
||||||
DISPLAY_IN_WINDOW="Display Keybinds in new window"
|
DISPLAY_IN_WINDOW="Display Keybinds in new window"
|
||||||
DISPLAY_IN_MENU="Display Keybinds in menu"
|
DISPLAY_IN_MENU="Display Keybinds in menu"
|
||||||
WINDOW_COMMANDS="Openbox window commands"
|
WINDOW_COMMANDS="Openbox window commands"
|
||||||
|
@ -73,10 +78,18 @@ fi
|
||||||
# pipemenu
|
# pipemenu
|
||||||
menuStart
|
menuStart
|
||||||
menuItem "$BKP_EDIT" "mabox-kb-pipemenu --rcedit"
|
menuItem "$BKP_EDIT" "mabox-kb-pipemenu --rcedit"
|
||||||
menuItem "$GUI_EDIT" "obkey"
|
#menuItem "$GUI_EDIT" "obkey"
|
||||||
menuSeparator
|
menuSeparator
|
||||||
menuItem "$DISPLAY_IN_WINDOW" "mb-kb --gui"
|
menuItem "$DISPLAY_IN_WINDOW" "mb-kb --gui"
|
||||||
menuSubmenu "Display keybinds" "$DISPLAY_IN_MENU"
|
menuSubmenu "Display keybinds" "$DISPLAY_IN_MENU"
|
||||||
|
menuSeparator "$RUN_COMMANDS"
|
||||||
|
while read -r a b c;do # write out 'Run' commands (clickable)
|
||||||
|
if [[ "$a" = "x" ]];then
|
||||||
|
curItem=$(printf "%-23s %s" "$b" "$c")
|
||||||
|
menuItem "$curItem" "$c"
|
||||||
|
fi
|
||||||
|
done < "$KBTEXT"
|
||||||
|
menuSeparator
|
||||||
menuSeparator "$WINDOW_COMMANDS"
|
menuSeparator "$WINDOW_COMMANDS"
|
||||||
while read -r a b c;do # write out Openbox commands (not clickable)
|
while read -r a b c;do # write out Openbox commands (not clickable)
|
||||||
if [[ "$a" = "o" ]];then
|
if [[ "$a" = "o" ]];then
|
||||||
|
@ -85,14 +98,6 @@ menuStart
|
||||||
fi
|
fi
|
||||||
done < "$KBTEXT"
|
done < "$KBTEXT"
|
||||||
|
|
||||||
menuSeparator
|
|
||||||
menuSeparator "$RUN_COMMANDS"
|
|
||||||
while read -r a b c;do # write out 'Run' commands (clickable)
|
|
||||||
if [[ "$a" = "x" ]];then
|
|
||||||
curItem=$(printf "%-20s %s" "$b" "$c")
|
|
||||||
menuItem "$curItem" "$c"
|
|
||||||
fi
|
|
||||||
done < "$KBTEXT"
|
|
||||||
menuSubmenuEnd
|
menuSubmenuEnd
|
||||||
menuEnd
|
menuEnd
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue