This commit is contained in:
Daniel Napora 2020-09-01 19:24:09 +02:00
parent 8449da5ff7
commit a4a6218460
2 changed files with 9 additions and 2 deletions

View File

@ -50,7 +50,7 @@ case $LANG in
EDIT_CONKY="Edytuj Conky"
CONKY_EDITOR="Wybierz plik Conky do edycji..."
NONE="Brak"
;;
DEFAULT="Domyślna";;
es*)
CHOOSE_CONKY="Elegir recuadro Conky"
NEW_SESSION="Guardar sesión actual Conky"
@ -61,6 +61,7 @@ case $LANG in
EDIT_CONKY="Edición manual recuadro"
CONKY_EDITOR="Editor de recuadro"
NONE="Ninguno"
DEFAULT="Default"
;;
*)
CHOOSE_CONKY="Choose Conky"
@ -72,12 +73,14 @@ case $LANG in
EDIT_CONKY="Edit Conky"
CONKY_EDITOR="Conky Editor"
NONE="None"
DEFAULT="Default"
;;
esac
getSessions(){ # read any saved sessions from save-sessions file
menuItem "Default" "$CSESSION $CSESSIONFILE"
menuSeparator "$SAVED_SESSIONS"
menuItem "$DEFAULT" "$CSESSION $CSESSIONFILE"
if [ -e "$SESSIONS" ]
then
while read -r session ;do
@ -126,6 +129,7 @@ loadEditMenu(){
menuItem "$DEFAULT_CONKYRC" "geany $CONKYDEFAULT"
if [[ $(pidof conky) ]];then
menuSubmenu "RunningConky" "$RUNNING_CONKY"
menuSeparator "$RUNNING_CONKY"
while read -r session ;do # get running conkys from sessionfile
[[ -z $session ]] && continue
CPATH=$(echo "$session" | awk '{print $3}')
@ -140,6 +144,7 @@ loadEditMenu(){
getConkys(){
menuSubmenu "EditConky" "$EDIT_CONKY"
menuSeparator "$EDIT_CONKY"
if type mb-conkyedit &>/dev/null;then # mb-conkyedit script found
menuItem "$CONKY_EDITOR" "mb-conkyedit"
loadEditMenu

View File

@ -63,6 +63,7 @@ loadTEditmenu(){
menuItem "$DEFAULT_TINT2RC" "geany $TINT2RC"
if [ "$(pidof tint2)" ];then
menuSubmenu "RunningTint2" "$RUNNING_TINT2"
menuSeparator "$RUNNING_TINT2"
pgrep -a tint2 | while read -r pid cmd; do
if [[ ${cmd%% *} = tint2 ]]; then
TINT=${cmd##* }
@ -80,6 +81,7 @@ loadTEditmenu(){
getTint2s(){
menuSubmenu "EditTint2" "$EDIT_TINT2"
menuSeparator "$EDIT_TINT2"
menuItem "$TINT2_EDITOR_GUI" "tint2conf"
if type mb-tint2edit &>/dev/null;then # mb-tint2edit script found
menuItem "$TINT2_EDITOR" "mb-tint2edit"