fix hidpi.sh: -i instead of -E

This commit is contained in:
Yingjie Wang 2024-03-28 02:40:05 -04:00
parent 9f8b285ba3
commit 0da2e83f29

View File

@ -9,8 +9,8 @@ echo -e "${NONE}"
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
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
echo '\n# hidpi scale\nsource = ~/dotfiles/hypr/conf/hidpi.conf' >> hypr/conf/custom.conf
sed -E 's/1/2' hypr/conf/monitors/default.conf
sed -i 's/1/2' hypr/conf/monitors/default.conf
fi