Skip to content

Commit 788053f

Browse files
author
Yuchen Deng
committed
完善字体方案
1 parent d21d609 commit 788053f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

base-config.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,9 @@ for i in {1000..1005}; do
112112
mkdir -p /home/u\$i/.local/share/fonts
113113
mkdir -p /home/u\$i/.config/fontconfig
114114
echo -e "Xft.dpi: 96\nXft.lcdfilter: lcddefault\nXft.antialias: true\nXft.autohint: true\nXft.hinting: true\nXft.hintstyle: hintfull\nXft.rgba: rgb" > /home/u\$i/.Xresources
115-
[[ -z "\$(grep .Xresources /home/u\$i/.bashrc)" ]] && echo "xrdb -merge ~/.Xresources" >> /home/u\$i/.bashrc
115+
[[ -z "\$(grep .Xresources /home/u\$i/.bashrc)" ]] && echo '[ -n "\$DISPLAY" ] && xrdb -merge ~/.Xresources' >> /home/u\$i/.bashrc
116116
cat /home/u\$i/.Xresources
117+
su - u\$i -c "DISPLAY=\$DISPLAY xrdb -merge ~/.Xresources"
117118
grep .Xresources /home/u\$i/.bashrc
118119
done
119120
# No password for sudo

0 commit comments

Comments
 (0)