From 0d4b85956e5f66fa128f26cf3cfa8a11ee8f5af0 Mon Sep 17 00:00:00 2001 From: Yingjie Wang Date: Mon, 1 Apr 2024 15:40:33 -0400 Subject: [PATCH] fix: sed need -E --- .install/hidpi.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 .install/hidpi.sh diff --git a/.install/hidpi.sh b/.install/hidpi.sh old mode 100644 new mode 100755 index cf60339..1db37e0 --- a/.install/hidpi.sh +++ b/.install/hidpi.sh @@ -9,9 +9,9 @@ echo -e "${NONE}" hidpiconfirm="Do you want 2x hidpi scale?" if gum confirm "$hidpiconfirm"; then - 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 + sed -i -E 's/size = [0-9]+(\.[0-9]+)?/size = 18/' alacritty/alacritty.toml + 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 - 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." fi