master
Daniel Napora 2016-04-12 20:51:00 +02:00
parent e0659d266b
commit f52f15a5e1
2 changed files with 10 additions and 10 deletions

View File

@ -54,25 +54,25 @@ getSessions(){ # read any saved sessions from save-sessions file
loadChooserMenu(){ loadChooserMenu(){
if type "$CZEN" &>/dev/null;then # mb-conkyzen script found if type "$CZEN" &>/dev/null;then # mb-conkyzen script found
menuItem "Conky Chooser" "$CZEN" menuItem "Wybierz Conky" "$CZEN"
fi fi
} }
loadNewsessionMenu(){ loadNewsessionMenu(){
if type "$CZEN" &>/dev/null;then # mb-conkyzen script found if type "$CZEN" &>/dev/null;then # mb-conkyzen script found
menuItem "New Conky Session" "$CZEN -z" menuItem "Nowa sesja Conky" "$CZEN -z"
fi fi
} }
loadReloadMenu(){ loadReloadMenu(){
if type "$CSESSION" &>/dev/null;then # mb-conky-session script found if type "$CSESSION" &>/dev/null;then # mb-conky-session script found
menuItem "Reload Conkys" "$CSESSION" menuItem "Przeładuj Conky" "$CSESSION"
fi fi
} }
loadSavedsessionSubmenu(){ loadSavedsessionSubmenu(){
if type "$CSESSION" &>/dev/null;then # mb-conky-session script found if type "$CSESSION" &>/dev/null;then # mb-conky-session script found
menuSubmenu "Sessions" "Saved Sessions" menuSubmenu "Sessions" "Zachowane sesje"
getSessions getSessions
menuSubmenuEnd menuSubmenuEnd
fi fi
@ -86,7 +86,7 @@ loadPinMenu(){
} }
loadEditMenu(){ loadEditMenu(){
menuItem "Default conkyrc" "geany $CONKYDEFAULT" menuItem "Domyślne conkyrc" "geany $CONKYDEFAULT"
if [[ $(pidof conky) ]];then if [[ $(pidof conky) ]];then
menuSubmenu "RunningConky" "Running Conkys" menuSubmenu "RunningConky" "Running Conkys"
while read -r session ;do # get running conkys from sessionfile while read -r session ;do # get running conkys from sessionfile

View File

@ -38,7 +38,7 @@ loadTEditmenu(){
TINT2=${TINT#$HOME/.config/} TINT2=${TINT#$HOME/.config/}
if [[ $TINT = tint2 ]];then if [[ $TINT = tint2 ]];then
TINT="$TINT2RC" TINT="$TINT2RC"
TINT2="Default tint2rc" TINT2="Domyślny tint2rc"
fi fi
menuItem "$TINT2" "geany $TINT" menuItem "$TINT2" "geany $TINT"
fi fi
@ -48,9 +48,9 @@ loadTEditmenu(){
} }
getTint2s(){ getTint2s(){
menuSubmenu "EditTint2" "Edit Tint2s" menuSubmenu "EditTint2" "Edytuj Tint2"
if type mb-tint2edit &>/dev/null;then # mb-tint2edit script found if type mb-tint2edit &>/dev/null;then # mb-tint2edit script found
menuItem "Tint2 Editor" "mb-tint2edit" menuItem "Edytor Tint2" "mb-tint2edit"
loadTEditmenu loadTEditmenu
else else
loadTEditmenu loadTEditmenu
@ -60,14 +60,14 @@ getTint2s(){
loadChoosermenu(){ loadChoosermenu(){
if type $TZEN &>/dev/null;then # mb-tint2zen script found if type $TZEN &>/dev/null;then # mb-tint2zen script found
menuItem "Tint2 Chooser" "$TZEN" menuItem "Wybierz Tint2" "$TZEN"
fi fi
} }
loadRestartmenu(){ loadRestartmenu(){
if [ "$(pidof tint2)" ];then if [ "$(pidof tint2)" ];then
if type mb-tint2restart &>/dev/null;then # mb-tint2restart script found if type mb-tint2restart &>/dev/null;then # mb-tint2restart script found
menuItem "Restart Tint2" "mb-tint2restart" menuItem "Restartuj Tint2" "mb-tint2restart"
fi fi
fi fi
} }