Compare commits

...

3 Commits

Author SHA1 Message Date
Yarosλaβ .
34d1459e26
Merge f0662c47ba281da7fcba3ee777eb7b11f2731759 into adfcc0770fa10daec5d87e3fb4ca6acd1d309491 2025-07-01 21:53:18 -03:00
adi1090x
adfcc0770f Deploying to master from @ adi1090x/rofi@fb7011ec48 🚀 2025-06-26 15:04:57 +00:00
Yarosλaβ
f0662c47ba
Update setup.sh
You have been installing themes and other things in `$XDG_CONFIG_HOME` directory like `ROFI_DIR="$HOME/.config/rofi"` (in `.config`), but fonts installed in `.local/shares/fonts`. I think that should be improved because this path is obsolete now for many applications, even `fc-cache` prefers `$XDG_DATA_HOME` (@see `/etc/fonts/fonts.conf` for more information).

Also, I added `-r, --really-force erase all existing caches, then rescan` argument, to verify the cache to be cleaned.
2023-02-02 09:29:55 +02:00
2 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ $ ./setup.sh
</p> </p>
<p align="center"> <p align="center">
<!-- sponsors --><a href="https://github.com/davidtoska"><img src="https:&#x2F;&#x2F;github.com&#x2F;davidtoska.png" width="60px" alt="User avatar: David Toska" /></a><a href="https://github.com/snubbi1954-elementary"><img src="https:&#x2F;&#x2F;github.com&#x2F;snubbi1954-elementary.png" width="60px" alt="User avatar: Carl Andersen" /></a><a href="https://github.com/dgxlab"><img src="https:&#x2F;&#x2F;github.com&#x2F;dgxlab.png" width="60px" alt="User avatar: David Vargas" /></a><!-- sponsors --> <!-- sponsors --><a href="https://github.com/davidtoska"><img src="https:&#x2F;&#x2F;github.com&#x2F;davidtoska.png" width="60px" alt="User avatar: David Toska" /></a><a href="https://github.com/snubbi1954-elementary"><img src="https:&#x2F;&#x2F;github.com&#x2F;snubbi1954-elementary.png" width="60px" alt="User avatar: Carl Andersen" /></a><a href="https://github.com/dgxlab"><img src="https:&#x2F;&#x2F;github.com&#x2F;dgxlab.png" width="60px" alt="User avatar: David Vargas" /></a><a href="https://github.com/jxtrt"><img src="https:&#x2F;&#x2F;github.com&#x2F;jxtrt.png" width="60px" alt="User avatar: jtrt" /></a><!-- sponsors -->
</p> </p>
--- ---

View File

@ -12,7 +12,7 @@ BBlue='\033[1;34m' BPurple='\033[1;35m' BCyan='\033[1;36m' BWhite='\033[1;37m'
## Directories ---------------------------- ## Directories ----------------------------
DIR=`pwd` DIR=`pwd`
FONT_DIR="$HOME/.local/share/fonts" FONT_DIR="$XDG_DATA_HOME/fonts" # or $XDG_CONFIG_HOME
ROFI_DIR="$HOME/.config/rofi" ROFI_DIR="$HOME/.config/rofi"
# Install Fonts # Install Fonts
@ -25,7 +25,7 @@ install_fonts() {
cp -rf $DIR/fonts/* "$FONT_DIR" cp -rf $DIR/fonts/* "$FONT_DIR"
fi fi
echo -e ${BYellow}"[*] Updating font cache...\n" ${Color_Off} echo -e ${BYellow}"[*] Updating font cache...\n" ${Color_Off}
fc-cache fc-cache -r
} }
# Install Themes # Install Themes