mabox-tools/bin/mabox-langfiles

17 lines
425 B
Plaintext
Raw Normal View History

2020-08-24 17:24:46 +02:00
#!/bin/bash
#
2022-05-27 15:52:10 +02:00
# Copy i18n files to ~ if available
# Run only once invoked from openbox autostart
LNG=${LANG:0:2}
2020-08-24 17:24:46 +02:00
FILE="$HOME/.config/mabox/.lang"
if [ ! -f "$FILE" ]; then
2022-05-27 15:52:10 +02:00
if [ -d "/usr/share/mabox/lang/$LNG" ]; then
rsync -a /usr/share/mabox/lang/$LNG/ $HOME/
else
2020-09-07 22:20:36 +02:00
rsync -a /usr/share/mabox/lang/en/ $HOME/
2022-05-27 15:52:10 +02:00
fi
2022-06-07 12:24:13 +02:00
echo "selenized-black" > $HOME/.theme_history
2020-08-24 17:24:46 +02:00
touch $HOME/.config/mabox/.lang
fi