21 lines
1021 B
Bash
Executable File
21 lines
1021 B
Bash
Executable File
|
|
# ------------------------------------------------------
|
|
# hidpi support
|
|
# ------------------------------------------------------
|
|
|
|
echo -e "${GREEN}"
|
|
figlet "hidpi"
|
|
echo -e "${NONE}"
|
|
|
|
hidpiconfirm="Do you want 2x hidpi scale?"
|
|
if gum confirm "$hidpiconfirm"; then
|
|
sed -i -E 's/size = [0-9]+(\.[0-9]+)?/size = 16/' ~/dotfiles-versions/$version/alacritty/alacritty.toml
|
|
sed -i -E 's/[0-9]+(\.[0-9]+)?/16/' ~/dotfiles-versions/$version/.settings/rofi-font.rasi
|
|
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
|
|
sed -i -E 's/1/2/' ~/dotfiles-versions/$version/hypr/conf/monitors/default.conf
|
|
echo ":: finished hidpi patch."
|
|
fi
|