aboutsummaryrefslogtreecommitdiffstats
path: root/copy.sh
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-12 18:57:11 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-12 18:57:11 +0900
commit279f620e7fe48bb351b9f2b8616951ce68303ec2 (patch)
tree653d89bdd75de7a883dacd1cd8faa863aefcabc2 /copy.sh
parent772411cd39370bca3a89b5ee92bda3c5ea8e1b7e (diff)
rofi updates
Keyhints updated in preparation for the new changes
Diffstat (limited to 'copy.sh')
-rwxr-xr-xcopy.sh28
1 files changed, 24 insertions, 4 deletions
diff --git a/copy.sh b/copy.sh
index 467d7fb1..acfdeb2b 100755
--- a/copy.sh
+++ b/copy.sh
@@ -299,8 +299,29 @@ if [ "$resolution" == "< 1440p" ]; then
mv config/hypr/hyprlock.conf config/hypr/hyprlock-2k.conf &&
mv config/hypr/hyprlock-1080p.conf config/hypr/hyprlock.conf
- #elif [ "$resolution" == "≥ 1440p" ]; then
- #cp -r config/rofi/resolution/1440p/* config/rofi/ 10-Feb-2025
+ # rofi fonts reduction
+ themes_dir="$HOME/.local/share/rofi/themes"
+ config_file="$HOME/.config/rofi/config.rasi"
+
+ changes_made=false
+ # Change rofi font size in ~/.local/share/rofi/themes/
+ find "$themes_dir" -type f | while read -r file; do
+ if grep -Pzoq 'element-text {\n font: "JetBrainsMono Nerd Font SemiBold 12";\n}' "$file"; then
+ sed -i 's/font: "JetBrainsMono Nerd Font SemiBold 12"/font: "JetBrainsMono Nerd Font SemiBold 11"/' "$file"
+ changes_made=true
+ fi
+ done
+
+ # Change rofi font size in ~/.config/rofi/config.rasi
+ if [ -f "$config_file" ]; then
+ if grep -Pzoq 'configuration {\n font: "JetBrainsMono Nerd Font SemiBold 13";\n}' "$config_file"; then
+ sed -i 's/font: "JetBrainsMono Nerd Font SemiBold 13"/font: "JetBrainsMono Nerd Font SemiBold 12"/' "$config_file"
+ changes_made=true
+ fi
+ fi
+ if $changes_made; then
+ echo "$INFO ${MAGENTA}Rofi Font sizes${RESET} updated completed successfully."
+ fi
fi
printf "\n"
@@ -378,8 +399,7 @@ while true; do
fi
break
-
-
+
elif [[ "$answer" == "n" ]]; then
echo "${NOTE} You chose not to change to 12H format." 2>&1 | tee -a "$LOG"
break # Exit the loop if the user chooses "n"
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage