mabox-tools/bin/mabox-langfiles

19 lines
532 B
Plaintext
Raw Normal View History

2020-08-24 17:24:46 +02:00
#!/bin/bash
2022-11-09 22:56:06 +01:00
# Firstboot script
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
2022-11-09 22:56:06 +01:00
# Power manager and tint2 native battery indicator only needed on Laptop/Netbook
2020-08-24 17:24:46 +02:00
touch $HOME/.config/mabox/.lang
fi