Hyprland-dotfiles/.install/hidpi.sh

17 lines
551 B
Bash
Raw Normal View History

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-03-28 02:40:05 -04:00
sed -i 's/size = [0-9]+(\.[0-9]+)?/size = 18/' alacritty/alacritty.toml
sed -i 's/[0-9]+(\.[0-9]+)?/16/' .settings/rofi-font.rasi
2024-03-28 02:31:27 -04:00
echo '\n# hidpi scale\nsource = ~/dotfiles/hypr/conf/hidpi.conf' >> hypr/conf/custom.conf
2024-03-28 02:40:05 -04:00
sed -i 's/1/2' hypr/conf/monitors/default.conf
2024-03-28 01:45:39 -04:00
fi