Compare commits

..

6 Commits

Author SHA1 Message Date
d2a368d166 fix hidpi.sh: echo -e 2024-03-28 20:46:48 -04:00
c6678dcc96 update hidpi.sh: add finish output 2024-03-28 20:46:48 -04:00
b6156e3233 fix hidpi.sh 2024-03-28 20:46:48 -04:00
0da2e83f29 fix hidpi.sh: -i instead of -E 2024-03-28 20:46:48 -04:00
9f8b285ba3 update hidpi.sh: run always 2024-03-28 20:46:48 -04:00
671a47f09e fix bug: missing fi 2024-03-28 20:46:48 -04:00

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 's/size = [0-9]+(\.[0-9]+)?/size = 18/' alacritty/alacritty.toml
sed -i '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
echo ":: finished hidpi patch."
fi