@@ -64,15 +64,15 @@ Options:
64
64
'export FORCE_THEME_UPDATE=true' Overwrites the archived files (useful for updates and changes in gtk/icons/cursor archives)
65
65
66
66
Supported Archive Format:
67
- | File prfx | Hyprland variable | Target dir |
68
- | --------------- | ----------------- | ----------------------- |
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 |
73
- | Font_ | \$ FONT | \$ HOME/.local/share/fonts |
74
- | Document-Font_ | \$ DOCUMENT_FONT | \$ HOME/.local/share/fonts |
75
- | Monospace-Font_ | \$ MONOSPACE_FONT | \$ HOME/.local/share/fonts |
67
+ | File prfx | Hyprland variable | Target dir |
68
+ | --------------- | ----------------- | -------------------------------- |
69
+ | Gtk_ | \$ GTK_THEME | \$ HOME/.local/share/ themes |
70
+ | Icon_ | \$ ICON_THEME | \$ HOME/.local/share/ icons |
71
+ | Cursor_ | \$ CURSOR_THEME | \$ HOME/.local/share/ icons |
72
+ | Sddm_ | \$ SDDM_THEME | /usr/share/sddm/themes |
73
+ | Font_ | \$ FONT | \$ HOME/.local/share/fonts |
74
+ | Document-Font_ | \$ DOCUMENT_FONT | \$ HOME/.local/share/fonts |
75
+ | Monospace-Font_ | \$ MONOSPACE_FONT | \$ HOME/.local/share/fonts |
76
76
77
77
Note:
78
78
Target directories without enough permissions will be skipped.
@@ -244,15 +244,22 @@ prefix=(
244
244
" Monospace-Font"
245
245
)
246
246
tgtDir=(
247
- " $HOME /. themes"
248
- " $HOME /. icons"
249
- " $HOME /. icons"
247
+ " ${ HOME} /.local/share/ themes"
248
+ " ${ HOME} /.local/share/ icons"
249
+ " ${ HOME} /.local/share/ icons"
250
250
" /usr/share/sddm/themes"
251
- " $HOME /.local/share/fonts"
252
- " $HOME /.local/share/fonts"
253
- " $HOME /.local/share/fonts"
251
+ " ${ HOME} /.local/share/fonts"
252
+ " ${ HOME} /.local/share/fonts"
253
+ " ${ HOME} /.local/share/fonts"
254
254
)
255
255
256
+ # Fallback to ~/.themes and ~/.icons if The newer path does not exist
257
+ [ -e " ${HOME} /.local/lib/hyde" ] || tgtDir[0]=" ${HOME} /.themes"
258
+ [ -e " ${HOME} /.local/lib/hyde" ] || {
259
+ tgtDir[1]=" ${HOME} /.icons"
260
+ tgtDir[2]=" ${HOME} /.icons"
261
+ }
262
+
256
263
for indx in " ${! prefix[@]} " ; do
257
264
tarFile=" $( find " ${Theme_Dir} " -type f -name " ${prefix[indx]} _*.tar.*" ) "
258
265
[ -f " ${tarFile} " ] || continue
@@ -289,8 +296,11 @@ print_prompt -g "\n[exec] " "restore_cfg.sh \"${Theme_Dir}/restore_cfg.lst\" \"$
289
296
" ${CloneDir} /Scripts/restore_cfg.sh" " ${Theme_Dir} /restore_cfg.lst" " ${Theme_Dir} /Configs" " ${Fav_Theme} " & > /dev/null
290
297
291
298
if [ " ${3} " == " --skipcaching" ]; then
292
- [ -f " $HOME /.local/share/bin/swwwallcache.sh" ] && " $HOME /.local/share/bin/swwwallcache.sh" -t " ${Fav_Theme} "
293
- [ -f " $HOME /.local/lib/hyde/swwwallcache.sh" ] && " $HOME /.local/lib/hyde/swwwallcache.sh" -t " ${Fav_Theme} "
299
+ if [ -f " $HOME /.local/lib/hyde/swwwallcache.sh" ]; then
300
+ " $HOME /.local/lib/hyde/swwwallcache.sh" -t " ${Fav_Theme} "
301
+ elif [ -f " $HOME /.local/share/bin/swwwallcache.sh" ]; then
302
+ " $HOME /.local/share/bin/swwwallcache.sh" -t " ${Fav_Theme} "
303
+ fi
294
304
fi
295
305
296
306
exit 0
0 commit comments