mirror of
https://github.com/adi1090x/rofi.git
synced 2024-11-23 06:38:21 -05:00
Compare commits
4 Commits
9ae88d5ece
...
bb9e97b337
Author | SHA1 | Date | |
---|---|---|---|
|
bb9e97b337 | ||
|
f3835e7f72 | ||
|
f7bc0216ca | ||
|
2888d923e1 |
@ -109,7 +109,7 @@ $ ./setup.sh
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<!-- sponsors --><a href="https://github.com/davidtoska"><img src="https://avatars.githubusercontent.com/u/15263867?u=7f45e973d008c1c9fc573554a95efac83751e726&v=4" width="60px" alt="David Toska" /></a><a href="https://github.com/kkkutup"><img src="https://avatars.githubusercontent.com/u/142684677?v=4" width="60px" alt="" /></a><a href="https://github.com/snubbi1954-elementary"><img src="https://avatars.githubusercontent.com/u/162145059?u=16ee4fee3e95ea7bc1599abdb2ff0ec4a2385ea2&v=4" width="60px" alt="Carl Andersen" /></a><!-- sponsors -->
|
<!-- sponsors --><a href="https://github.com/davidtoska"><img src="https://avatars.githubusercontent.com/u/15263867?u=7f45e973d008c1c9fc573554a95efac83751e726&v=4" width="60px" alt="David Toska" /></a><a href="https://github.com/snubbi1954-elementary"><img src="https://avatars.githubusercontent.com/u/162145059?u=16ee4fee3e95ea7bc1599abdb2ff0ec4a2385ea2&v=4" width="60px" alt="Carl Andersen" /></a><a href="https://github.com/12c76dc"><img src="https://avatars.githubusercontent.com/u/88608064?u=856f093e16e6d33996d2548d871884994b3ee627&v=4" width="60px" alt="" /></a><!-- sponsors -->
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
20
setup.sh
20
setup.sh
@ -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'
|
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="$HOME/.local/share/fonts"
|
||||||
ROFI_DIR="$HOME/.config/rofi"
|
ROFI_DIR="$HOME/.config/rofi"
|
||||||
|
|
||||||
# Install Fonts
|
# Install Fonts
|
||||||
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
|
if [[ -d "$FONT_DIR" ]]; then
|
||||||
cp -rf $DIR/fonts/* "$FONT_DIR"
|
cp -rf "$DIR/fonts/"* "$FONT_DIR"
|
||||||
else
|
else
|
||||||
mkdir -p "$FONT_DIR"
|
mkdir -p "$FONT_DIR"
|
||||||
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
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install Themes
|
# Install Themes
|
||||||
install_themes() {
|
install_themes() {
|
||||||
if [[ -d "$ROFI_DIR" ]]; then
|
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}"
|
mv "$ROFI_DIR" "${ROFI_DIR}.${USER}"
|
||||||
fi
|
fi
|
||||||
echo -e ${BBlue}"[*] Installing rofi configs..." ${Color_Off}
|
echo -e "${BBlue}[*] Installing rofi configs..." "${Color_Off}"
|
||||||
{ mkdir -p "$ROFI_DIR"; cp -rf $DIR/files/* "$ROFI_DIR"; }
|
{ mkdir -p "$ROFI_DIR"; cp -rf "$DIR/files/"* "$ROFI_DIR"; }
|
||||||
|
|
||||||
if [[ -f "$ROFI_DIR/config.rasi" ]]; then
|
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
|
exit 0
|
||||||
else
|
else
|
||||||
echo -e ${BRed}"[!] Failed to install.\n" ${Color_Off}
|
echo -e "${BRed}[!] Failed to install.\n" "${Color_Off}"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user