add hidpi in install.sh

This commit is contained in:
Yingjie Wang 2024-03-28 01:45:39 -04:00
parent c3bfe46e79
commit 943cb53c93
2 changed files with 19 additions and 0 deletions

18
.install/hidpi.sh Normal file
View File

@ -0,0 +1,18 @@
# ------------------------------------------------------
# hidpi support
# ------------------------------------------------------
echo -e "${GREEN}"
figlet "hidpi"
echo -e "${NONE}"
if [! -d ~/dotfiles ]; then
hidpiconfirm="Do you want 2x hidpi scale?"
if gum confirm "$hidpiconfirm"; then
sed -E 's/size = [0-9]+(\.[0-9]+)?/size = 18/' alacritty/alacritty.toml
sed -E 's/[0-9]+(\.[0-9]+)?/16/' .settings/rofi-font.rasi
echo '\n# hidpi scale\nsource = ~/dotfiles/hypr/conf/hidpi.conf' >> hypr/conf/custom.conf
sed -E 's/1/2' hypr/conf/monitors/default.conf
fi

View File

@ -60,6 +60,7 @@ if [[ $profile == *"Qtile"* ]]; then
source .install/install-packages.sh
fi
source .install/wallpaper.sh
source .install/hidpi.sh
source .install/displaymanager.sh
source .install/issue.sh
source .install/restore.sh