aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaKooLit <ejhay.games@gmail.com>2025-02-15 12:42:11 +0900
committerJaKooLit <ejhay.games@gmail.com>2025-02-15 12:42:11 +0900
commit1d714a5ea76fd19d530b9d06ce9b73627d8224d9 (patch)
tree31e4e71e7b5e93a6c555a9b5507744cc2e6e12c5
parentadee3e65f23b3bff8466a2b8d0bc54eb75d9b095 (diff)
updated rofi theme handling
-rw-r--r--config/rofi/themes/KooL_LonerOrZ.rasi (renamed from assets/rofi/themes/KooL_LonerOrZ.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-1.rasi (renamed from assets/rofi/themes/KooL_style-1.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-10-Fancy-v2.rasi (renamed from assets/rofi/themes/KooL_style-10-Fancy-v2.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-10-Fancy.rasi (renamed from assets/rofi/themes/KooL_style-10-Fancy.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-11-Win11-list-dark.rasi (renamed from assets/rofi/themes/KooL_style-11-Win11-list-dark.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-11-Win11-list-light.rasi (renamed from assets/rofi/themes/KooL_style-11-Win11-list-light.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-12-TOP-Docu.rasi (renamed from assets/rofi/themes/KooL_style-12-TOP-Docu.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-2-Dark.rasi (renamed from assets/rofi/themes/KooL_style-2-Dark.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-2-Light.rasi (renamed from assets/rofi/themes/KooL_style-2-Light.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-3-FullScreen-v1.rasi (renamed from assets/rofi/themes/KooL_style-3-FullScreen-v1.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi (renamed from assets/rofi/themes/KooL_style-3-Fullscreen-v2.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-4.rasi (renamed from assets/rofi/themes/KooL_style-4.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-5.rasi (renamed from assets/rofi/themes/KooL_style-5.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-6.rasi (renamed from assets/rofi/themes/KooL_style-6.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-7.rasi (renamed from assets/rofi/themes/KooL_style-7.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-8.rasi (renamed from assets/rofi/themes/KooL_style-8.rasi)0
-rw-r--r--config/rofi/themes/KooL_style-9.rasi (renamed from assets/rofi/themes/KooL_style-9.rasi)0
-rwxr-xr-xcopy.sh25
18 files changed, 13 insertions, 12 deletions
diff --git a/assets/rofi/themes/KooL_LonerOrZ.rasi b/config/rofi/themes/KooL_LonerOrZ.rasi
index 5afd1f6b..5afd1f6b 100644
--- a/assets/rofi/themes/KooL_LonerOrZ.rasi
+++ b/config/rofi/themes/KooL_LonerOrZ.rasi
diff --git a/assets/rofi/themes/KooL_style-1.rasi b/config/rofi/themes/KooL_style-1.rasi
index 9ac62fd7..9ac62fd7 100644
--- a/assets/rofi/themes/KooL_style-1.rasi
+++ b/config/rofi/themes/KooL_style-1.rasi
diff --git a/assets/rofi/themes/KooL_style-10-Fancy-v2.rasi b/config/rofi/themes/KooL_style-10-Fancy-v2.rasi
index 3e4a55c7..3e4a55c7 100644
--- a/assets/rofi/themes/KooL_style-10-Fancy-v2.rasi
+++ b/config/rofi/themes/KooL_style-10-Fancy-v2.rasi
diff --git a/assets/rofi/themes/KooL_style-10-Fancy.rasi b/config/rofi/themes/KooL_style-10-Fancy.rasi
index b503f549..b503f549 100644
--- a/assets/rofi/themes/KooL_style-10-Fancy.rasi
+++ b/config/rofi/themes/KooL_style-10-Fancy.rasi
diff --git a/assets/rofi/themes/KooL_style-11-Win11-list-dark.rasi b/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi
index 229a5297..229a5297 100644
--- a/assets/rofi/themes/KooL_style-11-Win11-list-dark.rasi
+++ b/config/rofi/themes/KooL_style-11-Win11-list-dark.rasi
diff --git a/assets/rofi/themes/KooL_style-11-Win11-list-light.rasi b/config/rofi/themes/KooL_style-11-Win11-list-light.rasi
index 8d5082e6..8d5082e6 100644
--- a/assets/rofi/themes/KooL_style-11-Win11-list-light.rasi
+++ b/config/rofi/themes/KooL_style-11-Win11-list-light.rasi
diff --git a/assets/rofi/themes/KooL_style-12-TOP-Docu.rasi b/config/rofi/themes/KooL_style-12-TOP-Docu.rasi
index 55fbb0b7..55fbb0b7 100644
--- a/assets/rofi/themes/KooL_style-12-TOP-Docu.rasi
+++ b/config/rofi/themes/KooL_style-12-TOP-Docu.rasi
diff --git a/assets/rofi/themes/KooL_style-2-Dark.rasi b/config/rofi/themes/KooL_style-2-Dark.rasi
index 73c3eee7..73c3eee7 100644
--- a/assets/rofi/themes/KooL_style-2-Dark.rasi
+++ b/config/rofi/themes/KooL_style-2-Dark.rasi
diff --git a/assets/rofi/themes/KooL_style-2-Light.rasi b/config/rofi/themes/KooL_style-2-Light.rasi
index 29ea7188..29ea7188 100644
--- a/assets/rofi/themes/KooL_style-2-Light.rasi
+++ b/config/rofi/themes/KooL_style-2-Light.rasi
diff --git a/assets/rofi/themes/KooL_style-3-FullScreen-v1.rasi b/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi
index a98a6fa8..a98a6fa8 100644
--- a/assets/rofi/themes/KooL_style-3-FullScreen-v1.rasi
+++ b/config/rofi/themes/KooL_style-3-FullScreen-v1.rasi
diff --git a/assets/rofi/themes/KooL_style-3-Fullscreen-v2.rasi b/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi
index 0dbf45bc..0dbf45bc 100644
--- a/assets/rofi/themes/KooL_style-3-Fullscreen-v2.rasi
+++ b/config/rofi/themes/KooL_style-3-Fullscreen-v2.rasi
diff --git a/assets/rofi/themes/KooL_style-4.rasi b/config/rofi/themes/KooL_style-4.rasi
index 7eb03c45..7eb03c45 100644
--- a/assets/rofi/themes/KooL_style-4.rasi
+++ b/config/rofi/themes/KooL_style-4.rasi
diff --git a/assets/rofi/themes/KooL_style-5.rasi b/config/rofi/themes/KooL_style-5.rasi
index 8609dcaf..8609dcaf 100644
--- a/assets/rofi/themes/KooL_style-5.rasi
+++ b/config/rofi/themes/KooL_style-5.rasi
diff --git a/assets/rofi/themes/KooL_style-6.rasi b/config/rofi/themes/KooL_style-6.rasi
index 369c0854..369c0854 100644
--- a/assets/rofi/themes/KooL_style-6.rasi
+++ b/config/rofi/themes/KooL_style-6.rasi
diff --git a/assets/rofi/themes/KooL_style-7.rasi b/config/rofi/themes/KooL_style-7.rasi
index 2ad7f714..2ad7f714 100644
--- a/assets/rofi/themes/KooL_style-7.rasi
+++ b/config/rofi/themes/KooL_style-7.rasi
diff --git a/assets/rofi/themes/KooL_style-8.rasi b/config/rofi/themes/KooL_style-8.rasi
index 5d24a2ed..5d24a2ed 100644
--- a/assets/rofi/themes/KooL_style-8.rasi
+++ b/config/rofi/themes/KooL_style-8.rasi
diff --git a/assets/rofi/themes/KooL_style-9.rasi b/config/rofi/themes/KooL_style-9.rasi
index 7c49d929..7c49d929 100644
--- a/assets/rofi/themes/KooL_style-9.rasi
+++ b/config/rofi/themes/KooL_style-9.rasi
diff --git a/copy.sh b/copy.sh
index 26d2fef6..bd06b3a9 100755
--- a/copy.sh
+++ b/copy.sh
@@ -302,10 +302,10 @@ if [ "$resolution" == "< 1440p" ]; then
mv config/hypr/hyprlock-1080p.conf config/hypr/hyprlock.conf
# rofi fonts reduction
- themes_dir="assets/rofi/themes"
+ themes_dir="config/rofi/themes"
config_file="config/rofi/config.rasi"
- # Change rofi font size in ~/.local/share/rofi/themes/
+ # Change rofi font size
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"
@@ -638,21 +638,22 @@ fi
printf "\n%.0s" {1..1}
-## Rofi Additional themes
-source_DIR="assets/rofi/themes"
+# Define the target directory for rofi themes
rofi_DIR="$HOME/.local/share/rofi/themes"
-echo -e "${NOTE} copying additional rofi themes into ${YELLOW}$rofi_DIR${RESET}... "
-
if [ ! -d "$rofi_DIR" ]; then
- echo "${INFO}Directory $rofi_DIR does not exist. Creating it now..." | tee -a "$LOG"
mkdir -p "$rofi_DIR"
fi
-
-# Copy the rofi themes from assets
-cp -r "$source_DIR"/* "$rofi_DIR"
-
-echo "${OK}rofi themes from ${YELLOW}$source_DIR${RESET} have been copied to ${MAGENTA}$rofi_DIR${RESET}" | tee -a "$LOG"
+if [ -d "$HOME/.config/rofi/themes" ]; then
+ if [ -z "$(ls -A $HOME/.config/rofi/themes)" ]; then
+ echo '/* Default Rofi theme */' > "$HOME/.config/rofi/themes/default.rasi"
+ fi
+ ln -snf ~/.config/rofi/themes/* ~/.local/share/rofi/themes/
+ # Delete the dummy file if it was created
+ if [ -f "$HOME/.config/rofi/themes/default.rasi" ]; then
+ rm "$HOME/.config/rofi/themes/default.rasi"
+ fi
+fi
printf "\n%.0s" {1..1}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage