Compare commits

...

4 Commits

Author SHA1 Message Date
Mike Thai
bb9e97b337
Merge 2888d923e1 into f3835e7f72 2024-10-24 15:09:18 +05:30
adi1090x
f3835e7f72 Deploying to master from @ adi1090x/rofi@f7bc0216ca 🚀 2024-10-10 15:03:51 +00:00
adi1090x
f7bc0216ca Deploying to master from @ adi1090x/rofi@dce10e92b6 🚀 2024-10-05 15:04:35 +00:00
Mike Thai
2888d923e1
Fix handling of directory paths containing spaces in installation script 2023-05-15 19:16:56 -04:00
2 changed files with 11 additions and 11 deletions

View File

@ -109,7 +109,7 @@ $ ./setup.sh
</p>
<p align="center">
<!-- sponsors --><a href="https://github.com/davidtoska"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;15263867?u&#x3D;7f45e973d008c1c9fc573554a95efac83751e726&amp;v&#x3D;4" width="60px" alt="David Toska" /></a><a href="https://github.com/kkkutup"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;142684677?v&#x3D;4" width="60px" alt="" /></a><a href="https://github.com/snubbi1954-elementary"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;162145059?u&#x3D;16ee4fee3e95ea7bc1599abdb2ff0ec4a2385ea2&amp;v&#x3D;4" width="60px" alt="Carl Andersen" /></a><!-- sponsors -->
<!-- sponsors --><a href="https://github.com/davidtoska"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;15263867?u&#x3D;7f45e973d008c1c9fc573554a95efac83751e726&amp;v&#x3D;4" width="60px" alt="David Toska" /></a><a href="https://github.com/snubbi1954-elementary"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;162145059?u&#x3D;16ee4fee3e95ea7bc1599abdb2ff0ec4a2385ea2&amp;v&#x3D;4" width="60px" alt="Carl Andersen" /></a><a href="https://github.com/12c76dc"><img src="https:&#x2F;&#x2F;avatars.githubusercontent.com&#x2F;u&#x2F;88608064?u&#x3D;856f093e16e6d33996d2548d871884994b3ee627&amp;v&#x3D;4" width="60px" alt="" /></a><!-- sponsors -->
</p>
---

View File

@ -11,37 +11,37 @@ BBlack='\033[1;30m' BRed='\033[1;31m' BGreen='\033[1;32m' BYellow='\033[1;33m
BBlue='\033[1;34m' BPurple='\033[1;35m' BCyan='\033[1;36m' BWhite='\033[1;37m'
## Directories ----------------------------
DIR=`pwd`
DIR="$(pwd)"
FONT_DIR="$HOME/.local/share/fonts"
ROFI_DIR="$HOME/.config/rofi"
# Install Fonts
install_fonts() {
echo -e ${BBlue}"\n[*] Installing fonts..." ${Color_Off}
echo -e "${BBlue}\n[*] Installing fonts..." "${Color_Off}"
if [[ -d "$FONT_DIR" ]]; then
cp -rf $DIR/fonts/* "$FONT_DIR"
cp -rf "$DIR/fonts/"* "$FONT_DIR"
else
mkdir -p "$FONT_DIR"
cp -rf $DIR/fonts/* "$FONT_DIR"
cp -rf "$DIR/fonts/"* "$FONT_DIR"
fi
echo -e ${BYellow}"[*] Updating font cache...\n" ${Color_Off}
echo -e "${BYellow}[*] Updating font cache...\n" "${Color_Off}"
fc-cache
}
# Install Themes
install_themes() {
if [[ -d "$ROFI_DIR" ]]; then
echo -e ${BPurple}"[*] Creating a backup of your rofi configs..." ${Color_Off}
echo -e "${BPurple}[*] Creating a backup of your rofi configs..." "${Color_Off}"
mv "$ROFI_DIR" "${ROFI_DIR}.${USER}"
fi
echo -e ${BBlue}"[*] Installing rofi configs..." ${Color_Off}
{ mkdir -p "$ROFI_DIR"; cp -rf $DIR/files/* "$ROFI_DIR"; }
echo -e "${BBlue}[*] Installing rofi configs..." "${Color_Off}"
{ mkdir -p "$ROFI_DIR"; cp -rf "$DIR/files/"* "$ROFI_DIR"; }
if [[ -f "$ROFI_DIR/config.rasi" ]]; then
echo -e ${BGreen}"[*] Successfully Installed.\n" ${Color_Off}
echo -e "${BGreen}[*] Successfully Installed.\n" "${Color_Off}"
exit 0
else
echo -e ${BRed}"[!] Failed to install.\n" ${Color_Off}
echo -e "${BRed}[!] Failed to install.\n" "${Color_Off}"
exit 1
fi
}