conky-session fix

master
Daniel Napora 2021-04-24 17:53:44 +02:00
parent 947bf93c92
commit 2d6c219702
2 changed files with 3 additions and 17 deletions

View File

@ -61,7 +61,7 @@ findArgs(){ # get command args (switches & sessionfile paths)
i=$(($i+1)) i=$(($i+1))
fi fi
done done
# check if sessionfiles were passed to bl-conky-session # check if sessionfiles were passed to mb-conky-session
if (( ${#rawArr[@]} != 0 )); then if (( ${#rawArr[@]} != 0 )); then
# remove duplicate args # remove duplicate args
sessArr=(`printf "%s\n" "${rawArr[@]}" | sort -u`) sessArr=(`printf "%s\n" "${rawArr[@]}" | sort -u`)
@ -70,7 +70,8 @@ findArgs(){ # get command args (switches & sessionfile paths)
fi fi
for SESSION in "${sessArr[@]}";do # run the conkys in the sessionfiles for SESSION in "${sessArr[@]}";do # run the conkys in the sessionfiles
source "$SESSION" source "$SESSION"
done done
cat "$1" > "$SESSIONFILE"
else # --autostart used, but no sessionfiles passed to bl-conkyzen else # --autostart used, but no sessionfiles passed to bl-conkyzen
if [[ -f $SESSIONFILE ]] && (( $NOKILL == 1 )); then if [[ -f $SESSIONFILE ]] && (( $NOKILL == 1 )); then
source "$SESSIONFILE" # use conky-sessionfile source "$SESSIONFILE" # use conky-sessionfile

View File

@ -1,15 +0,0 @@
#!/bin/bash
#
# Restore default Main menu
case $LANG in
pl*)
rsync -a /usr/share/mabox/lang/pl/.config/jgmenu/ $HOME/.config/jgmenu/
;;
es*)
rsync -a /usr/share/mabox/lang/es/.config/jgmenu/ $HOME/.config/jgmenu/
;;
*)
rsync -a /usr/share/mabox/lang/en/.config/jgmenu/ $HOME/.config/jgmenu/
;;
esac