2024-03-28 01:45:39 -04:00
|
|
|
|
|
|
|
# ------------------------------------------------------
|
|
|
|
# hidpi support
|
|
|
|
# ------------------------------------------------------
|
|
|
|
|
|
|
|
echo -e "${GREEN}"
|
|
|
|
figlet "hidpi"
|
|
|
|
echo -e "${NONE}"
|
|
|
|
|
2024-03-28 02:31:27 -04:00
|
|
|
hidpiconfirm="Do you want 2x hidpi scale?"
|
|
|
|
if gum confirm "$hidpiconfirm"; then
|
2024-05-17 02:09:53 -04:00
|
|
|
sed -i -E 's/size = [0-9]+(\.[0-9]+)?/size = 16/' ~/dotfiles-versions/$version/alacritty/alacritty.toml
|
2024-05-17 01:46:29 -04:00
|
|
|
sed -i -E 's/[0-9]+(\.[0-9]+)?/16/' ~/dotfiles-versions/$version/.settings/rofi-font.rasi
|
2024-06-12 23:15:23 -04:00
|
|
|
echo -e '\n# -----------------------------------------------------' >> ~/dotfiles-versions/$version/hypr/hyprland.conf
|
|
|
|
echo -e '# HiDPI Scaling' >> ~/dotfiles-versions/$version/hypr/hyprland.conf
|
|
|
|
echo -e '# -----------------------------------------------------' >> ~/dotfiles-versions/$version/hypr/hyprland.conf
|
|
|
|
echo -e 'source = ~/dotfiles/hypr/conf/hidpi.conf' >> ~/dotfiles-versions/$version/hypr/hyprland.conf
|
2024-05-18 16:28:58 -04:00
|
|
|
sed -i -E 's/1/2/' ~/dotfiles-versions/$version/hypr/conf/monitors/default.conf
|
2024-06-12 23:26:06 -04:00
|
|
|
sed -i -E 's/24/32/' ~/dotfiles-versions/$version/hypr/conf/cursor.conf
|
2024-03-28 02:45:02 -04:00
|
|
|
echo ":: finished hidpi patch."
|
2024-03-28 01:45:39 -04:00
|
|
|
fi
|