master
Daniel Napora 2022-05-27 15:52:10 +02:00
parent e956f0d9b6
commit d7bd255d87
2 changed files with 9 additions and 19 deletions

View File

@ -1,19 +1,15 @@
#!/bin/bash
#
#
# Copy i18n files to ~ if available
# Run only once invoked from openbox autostart
LNG=${LANG:0:2}
FILE="$HOME/.config/mabox/.lang"
if [ ! -f "$FILE" ]; then
case $LANG in
pl*)
rsync -a /usr/share/mabox/lang/pl/ $HOME/
;;
es*)
rsync -a /usr/share/mabox/lang/es/ $HOME/
;;
*)
if [ -d "/usr/share/mabox/lang/$LNG" ]; then
rsync -a /usr/share/mabox/lang/$LNG/ $HOME/
else
rsync -a /usr/share/mabox/lang/en/ $HOME/
;;
esac
fi
touch $HOME/.config/mabox/.lang
fi

View File

@ -4,7 +4,7 @@
#
# Written for BunsenLabs by damo <damo@bunsenlabs.org> October 2015
#
# Ported for Manjaro by napcok <napcok@gmail.com> March 2016
# Ported for Manjaro/Mabox by napcok <napcok@gmail.com> March 2016
#
# Save options are for Conky(s)
# Tint2(s)
@ -12,9 +12,6 @@
# GTK theme
# Background (uses Nitrogen or feh, depending which
# has the newer saved bg config file)
# Alt Menu (dmenu)
# Lightdm login gtk greeter
# X configs (.bashrc, .Xresources)
# Terminator config
#
# Paths are assumed to be BunsenLabs defaults
@ -481,10 +478,7 @@ function copyConky(){
if [[ $(pidof conky) ]];then
mkdir -p "$CONFIGDIR/conky"
rm "$CONFIGDIR/conky/*conkyrc"
pgrep -a conky | while read a b c conkyfile;do
cp $conkyfile "$CONFIGDIR/conky/"
done
cp ~/.config/conky/*conkyrc "$CONFIGDIR/conky/"
fi
}