Skip to content

Commit a732795

Browse files
committed
use underscore for hypr configs
1 parent 113381e commit a732795

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Scripts/Manage-Themes

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
. GLOBAL-hyde
44

55
# Git_Repo="https://github.com/kRHYME7/hyde-gallery"
6-
Git_Repo="https://github.com/kRHYME7/hyde-gallery.git"
6+
Git_Repo="https://github.com/HyDE-Project/hyde-gallery.git"
77
hyde_gallery_dir="${cacheDir}/landing/hyde-gallery"
88
file_DB="${hyde_gallery_dir}/hyde-themes.db"
99
themepatcher_lst="${hyde_gallery_dir}/themepatcher.lst"

Scripts/Patch-Theme

+13-12
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ Options:
6666
Supported Archive Format:
6767
| File prfx | Hyprland variable | Target dir |
6868
| --------------- | ----------------- | ----------------------- |
69-
| Gtk_ | \$GTK-THEME | \$HOME/.themes |
70-
| Icon_ | \$ICON-THEME | \$HOME/.icons |
71-
| Cursor_ | \$CURSOR-THEME | \$HOME/.icons |
72-
| Sddm_ | \$SDDM-THEME | /usr/share/sddm/themes |
69+
| Gtk_ | \$GTK_THEME | \$HOME/.themes |
70+
| Icon_ | \$ICON_THEME | \$HOME/.icons |
71+
| Cursor_ | \$CURSOR_THEME | \$HOME/.icons |
72+
| Sddm_ | \$SDDM_THEME | /usr/share/sddm/themes |
7373
| Font_ | \$FONT | \$HOME/.local/share/fonts |
74-
| Document-Font_ | \$DOCUMENT-FONT | \$HOME/.local/share/fonts |
75-
| Monospace-Font_ | \$MONOSPACE-FONT | \$HOME/.local/share/fonts |
74+
| Document-Font_ | \$DOCUMENT_FONT | \$HOME/.local/share/fonts |
75+
| Monospace-Font_ | \$MONOSPACE_FONT | \$HOME/.local/share/fonts |
7676
7777
Note:
7878
Target directories without enough permissions will be skipped.
@@ -184,25 +184,25 @@ check_tars() {
184184
local gsVal="$(
185185
case "${gsLow}" in
186186
sddm)
187-
grep "^[[:space:]]*\$SDDM-THEME\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
187+
grep "^[[:space:]]*\$SDDM[-_]THEME\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
188188
;;
189189
gtk)
190-
grep "^[[:space:]]*\$GTK-THEME\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
190+
grep "^[[:space:]]*\$GTK[-_]THEME\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
191191
;;
192192
icon)
193-
grep "^[[:space:]]*\$ICON-THEME\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
193+
grep "^[[:space:]]*\$ICON[-_]THEME\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
194194
;;
195195
cursor)
196-
grep "^[[:space:]]*\$CURSOR-THEME\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
196+
grep "^[[:space:]]*\$CURSOR[-_]THEME\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
197197
;;
198198
font)
199199
grep "^[[:space:]]*\$FONT\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
200200
;;
201201
document-font)
202-
grep "^[[:space:]]*\$DOCUMENT-FONT\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
202+
grep "^[[:space:]]*\$DOCUMENT[-_]FONT\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
203203
;;
204204
monospace-font)
205-
grep "^[[:space:]]*\$MONOSPACE-FONT\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
205+
grep "^[[:space:]]*\$MONOSPACE[-_]FONT\s*=" "${Fav_Theme_Dir}/hypr.theme" | cut -d '=' -f2 | sed 's/^[[:space:]]*//;s/[[:space:]]*$//'
206206
;;
207207
208208
*) # fallback to older imple
@@ -285,6 +285,7 @@ done <<<"${wallpapers}"
285285

286286
# restore configs with theme override
287287
echo -en "${restore_list}" >"${Theme_Dir}/restore_cfg.lst"
288+
trap 'rm "${Theme_Dir}/restore_cfg.lst"' EXIT
288289
print_prompt -g "\n[exec] " "restore_cfg.sh \"${Theme_Dir}/restore_cfg.lst\" \"${Theme_Dir}/Configs\" \"${Fav_Theme}\"\n"
289290
"${CloneDir}/Scripts/restore_cfg.sh" "${Theme_Dir}/restore_cfg.lst" "${Theme_Dir}/Configs" "${Fav_Theme}" &>/dev/null
290291
[ "${3}" == "--skipcaching" ] || "$HOME/.local/share/bin/swwwallcache.sh" -t "${Fav_Theme}"

0 commit comments

Comments
 (0)