forked from hugojosefson/ubuntu-install-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compensate-for-retina
executable file
·25 lines (20 loc) · 1.02 KB
/
compensate-for-retina
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e
if pidof gnome-shell; then
gsettings set org.gnome.desktop.interface text-scaling-factor 1.0
else
gsettings set org.gnome.desktop.interface text-scaling-factor 1.8
fi
METACITY_FILE=/usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml
if [ -f $METACITY_FILE ]; then
sudo sed -r 's/distance name="left_width" value="1"/distance name="left_width" value="4"/' -i $METACITY_FILE
sudo sed -r 's/distance name="right_width" value="1"/distance name="right_width" value="4"/' -i $METACITY_FILE
sudo sed -r 's/distance name="bottom_height" value="1"/distance name="bottom_height" value="4"/' -i $METACITY_FILE
fi
which xfconf-query && xfconf-query --channel xsettings --property /Xft/DPI --set 192
if ! grep 'FONTSIZE="32x16"' /etc/default/console-setup; then
sudo sed -r 's/^FONTFACE=.*/FONTFACE="Terminus"/' -i /etc/default/console-setup
sudo sed -r 's/^FONTSIZE=.*/FONTSIZE="32x16"/' -i /etc/default/console-setup
sudo dpkg-reconfigure --priority=critical console-setup
sudo setupcon --force
fi