diff options
| author | JaKooLit <jimmielovejay@gmail.com> | 2024-08-04 18:40:03 +0900 |
|---|---|---|
| committer | JaKooLit <jimmielovejay@gmail.com> | 2024-08-04 18:40:03 +0900 |
| commit | fb3cd6d1cb4a2f2f72a527e13b61d9db4e336349 (patch) | |
| tree | 8bfb8f3cffc920550fc7de0d711d0bf8ba9a6fb0 /copy.sh | |
| parent | c37aa1c2b1aae8fa411009023abd03f7dc640f7f (diff) | |
reduced font size for kitty if user chose <1080p resolution during installation
Diffstat (limited to 'copy.sh')
| -rwxr-xr-x | copy.sh | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -260,9 +260,9 @@ done printf "\n" -# Action to do for better rofi appearance +# Action to do for better rofi and kitty appearance while true; do - echo "$ORANGE Select monitor resolution for better Rofi appearance:" + echo "$ORANGE Select monitor resolution for better Rofi and kitty appearance:" echo "$YELLOW 1. Equal to or less than 1080p (≤ 1080p)" echo "$YELLOW 2. Equal to or higher than 1440p (≥ 1440p)" read -p "$CAT Enter the number of your choice: " choice @@ -283,13 +283,16 @@ while true; do done # Use the selected resolution in your existing script -echo "You chose $resolution resolution for better Rofi appearance." 2>&1 | tee -a "$LOG" +echo "You chose $resolution resolution." 2>&1 | tee -a "$LOG" # Add your commands based on the resolution choice if [ "$resolution" == "≤ 1080p" ]; then - cp -r config/rofi/resolution/1080p/* config/rofi/ + cp -r config/rofi/resolution/1080p/* config/rofi/ + sed -i 's/font_size 16.0/font_size 12.0/' config/kitty/kitty.conf + sed -i 's/font_size 16.0/font_size 12.0/' config/wallust/templates/colors-kitty.conf + elif [ "$resolution" == "≥ 1440p" ]; then - cp -r config/rofi/resolution/1440p/* config/rofi/ + cp -r config/rofi/resolution/1440p/* config/rofi/ fi printf "\n%.0s" {1..2} |
