fix: sed need -E

This commit is contained in:
Yingjie Wang 2024-04-01 15:40:33 -04:00
parent 2b1986edad
commit 5fe3fed2ea

6
.install/hidpi.sh Normal file → Executable file
View File

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