Author SHA1 Message Date
wyj 5fe3fed2ea fix: sed need -E 2024-04-01 15:40:33 -04:00
wyj 2b1986edad fix hidpi.sh: echo -e 2024-03-28 03:21:44 -04:00
wyj e6a80c8ad2 update hidpi.sh: add finish output 2024-03-28 02:45:02 -04:00
wyj e2d65b4c3c fix hidpi.sh 2024-03-28 02:42:15 -04:00
wyj 0f69f88603 fix hidpi.sh: -i instead of -E 2024-03-28 02:40:05 -04:00
wyj c63aa2430c update hidpi.sh: run always 2024-03-28 02:31:27 -04:00
wyj 259073e10f fix bug: missing fi 2024-03-28 02:25:56 -04:00
Regular → Executable
+7 -8
View File
@@ -7,12 +7,11 @@ echo -e "${GREEN}"
figlet "hidpi"
echo -e "${NONE}"
if [! -d ~/dotfiles ]; then
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
echo '\n# hidpi scale\nsource = ~/dotfiles/hypr/conf/hidpi.conf' >> hypr/conf/custom.conf
sed -E 's/1/2' hypr/conf/monitors/default.conf
hidpiconfirm="Do you want 2x hidpi scale?"
if gum confirm "$hidpiconfirm"; then
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 -E 's/1/2/' hypr/conf/monitors/default.conf
echo ":: finished hidpi patch."
fi