@@ -66,13 +66,13 @@ Options:
66
66
Supported Archive Format:
67
67
| File prfx | Hyprland variable | Target dir |
68
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 |
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
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 |
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.
@@ -184,25 +184,25 @@ check_tars() {
184
184
local gsVal=" $(
185
185
case " ${gsLow} " in
186
186
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:]]*$//'
188
188
;;
189
189
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:]]*$//'
191
191
;;
192
192
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:]]*$//'
194
194
;;
195
195
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:]]*$//'
197
197
;;
198
198
font)
199
199
grep " ^[[:space:]]*\$ FONT\s*=" " ${Fav_Theme_Dir} /hypr.theme" | cut -d ' =' -f2 | sed ' s/^[[:space:]]*//;s/[[:space:]]*$//'
200
200
;;
201
201
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:]]*$//'
203
203
;;
204
204
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:]]*$//'
206
206
;;
207
207
208
208
* ) # fallback to older imple
@@ -285,6 +285,7 @@ done <<<"${wallpapers}"
285
285
286
286
# restore configs with theme override
287
287
echo -en " ${restore_list} " > " ${Theme_Dir} /restore_cfg.lst"
288
+ trap ' rm "${Theme_Dir}/restore_cfg.lst"' EXIT
288
289
print_prompt -g " \n[exec] " " restore_cfg.sh \" ${Theme_Dir} /restore_cfg.lst\" \" ${Theme_Dir} /Configs\" \" ${Fav_Theme} \" \n"
289
290
" ${CloneDir} /Scripts/restore_cfg.sh" " ${Theme_Dir} /restore_cfg.lst" " ${Theme_Dir} /Configs" " ${Fav_Theme} " & > /dev/null
290
291
[ " ${3} " == " --skipcaching" ] || " $HOME /.local/share/bin/swwwallcache.sh" -t " ${Fav_Theme} "
0 commit comments