-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bd73829
Showing
496 changed files
with
31,738 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,192 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
CRE=$(tput setaf 1) | ||
CYE=$(tput setaf 3) | ||
CGR=$(tput setaf 2) | ||
CBL=$(tput setaf 4) | ||
BLD=$(tput bold) | ||
CNC=$(tput sgr0) | ||
OK='\n\033[0;32m OK...\033[0m' | ||
|
||
logo () { | ||
|
||
local text="${1:?}" | ||
echo -en " | ||
███████╗██╗░░░░░███╗░░░███╗███████╗██████╗░ | ||
██╔════╝██║░░░░░████╗░████║██╔════╝██╔══██╗ | ||
█████╗░░██║░░░░░██╔████╔██║█████╗░░██████╔╝ | ||
██╔══╝░░██║░░░░░██║╚██╔╝██║██╔══╝░░██╔══██╗ | ||
███████╗███████╗██║░╚═╝░██║███████╗██║░░██║ | ||
╚══════╝╚══════╝╚═╝░░░░░╚═╝╚══════╝╚═╝░░╚═╝ | ||
SCRIPT\n\n" | ||
printf ' %s [%s%s %s%s %s]%s\n\n' "${CRE}" "${CNC}" "${CYE}" "${text}" "${CNC}" "${CRE}" "${CNC}" | ||
sleep 2 | ||
} | ||
|
||
if [ "$(id -u)" = 0 ]; then | ||
echo "This script MUST NOT be run as root user." | ||
exit 1 | ||
fi | ||
|
||
logo "Welcome!" | ||
printf '%sThis script will install needed dependencies and copy my dotfiles to your bspwm setup.%s\n\nThis installer script does NOT change any configuration of your system.\nIts just a script that copies and moves my dotfiles to your ~/.config directory\n\n' "${CRE}" "${CNC}" | ||
sleep 5 | ||
|
||
while true; do | ||
read -rp " Do you wish to continue? [Yy/Nn]: " yn | ||
case $yn in | ||
[Yy]* ) break;; | ||
[Nn]* ) exit;; | ||
* ) printf " Error: just write 'y' or 'n'\n\n";; | ||
esac | ||
done | ||
clear | ||
|
||
logo "Installing needed packages.." | ||
|
||
dependencias=(base-devel pacman-contrib bspwm polybar sxhkd alacritty dunst rofi lsd jq polkit-gnome git playerctl mpd ncmpcpp geany ranger mpc picom feh ueberzug maim pamixer libwebp webp-pixbuf-loader xorg-xprop xorg-xkill physlock papirus-icon-theme ttf-jetbrains-mono ttf-jetbrains-mono-nerd ttf-terminus-nerd ttf-inconsolata ttf-joypixels zsh) | ||
|
||
is_installed() { | ||
pacman -Qi $1 &> /dev/null | ||
return $? | ||
} | ||
|
||
printf "%s%sChecking for required packages...%s\n" "${BLD}" "${CBL}" "${CNC}" | ||
for paquete in "${dependencias[@]}" | ||
do | ||
if ! is_installed $paquete; then | ||
sudo pacman -S $paquete --noconfirm | ||
printf "\n" | ||
else | ||
printf '%s%s is already installed on your system!%s\n' "${CGR}" "$paquete" "${CNC}" | ||
sleep 1 | ||
fi | ||
done | ||
sleep 2 | ||
clear | ||
|
||
logo "Checking if yay is installed" | ||
|
||
if ! command -v yay &>/dev/null; then | ||
printf "%s%sError YAY is not installed%s\n" "${BLD}" "${CRE}" "${CNC}" | ||
sleep 1 | ||
printf "%s%sInstalling YAY..%s\n\n" "${BLD}" "${CYE}" "${CNC}" | ||
sleep 1 | ||
git clone https://aur.archlinux.org/yay.git | ||
cd yay | ||
makepkg -si | ||
cd $HOME | ||
rm -rf yay | ||
else | ||
printf "%s%sYAY is already installed on your system%s\n" "${BLD}" "${CGR}" "${CNC}" | ||
fi | ||
sleep 2 | ||
clear | ||
|
||
|
||
|
||
logo "Cloning Rice!" | ||
[ -d ~/zbspwm ] && rm -rf ~/zbspwm | ||
printf "Cloning rice from https://github.com/elmerginez/zbspwm.git\n\n" | ||
cd $HOME | ||
git clone --depth=1 https://github.com/elmerginez/zbspwm.git | ||
sleep 2 | ||
clear | ||
|
||
logo "Backup your files" | ||
printf "Backup files will be stored in %s%s%s/.RiceBackup%s \n\n" "${BLD}" "${CRE}" "$HOME" "${CNC}" | ||
sleep 5 | ||
|
||
if [ ! -d "$HOME/.RiceBackup" ]; then | ||
mkdir -p "${HOME}"/.RiceBackup | ||
fi | ||
|
||
[ -d ~/.config/bspwm ] && mv ~/.config/bspwm ~/.RiceBackup/bspwm-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/termite ] && mv ~/.config/termite ~/.RiceBackup/termite-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/alacritty ] && mv ~/.config/alacritty ~/.RiceBackup/alacritty-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/picom ] && mv ~/.config/picom ~/.RiceBackup/picom-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/rofi ] && mv ~/.config/rofi ~/.RiceBackup/rofi-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/eww ] && mv ~/.config/eww ~/.RiceBackup/eww-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/sxhkd ] && mv ~/.config/sxhkd ~/.RiceBackup/sxhkd-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/dunst ] && mv ~/.config/dunst ~/.RiceBackup/dunst-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/gtk-3.0 ] && mv ~/.config/gtk-3.0 ~/.RiceBackup/gtk-3.0-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/polybar ] && mv ~/.config/polybar ~/.RiceBackup/polybar-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/mpd ] && mv ~/.config/mpd ~/.RiceBackup/mpd-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/ncmpcpp ] && mv ~/.config/ncmpcpp ~/.RiceBackup/ncmpcpp-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/nvim ] && mv ~/.config/nvim ~/.RiceBackup/nvim-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/ranger ] && mv ~/.config/ranger ~/.RiceBackup/ranger-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
[ -d ~/.config/zsh ] && mv ~/.config/zsh ~/.RiceBackup/zsh-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
|
||
[ -f ~/.zshrc ] && mv ~/.zshrc ~/.RiceBackup/.zshrc-backup-"$(date +%Y.%m.%d-%H.%M.%S)" | ||
|
||
printf "%s%sDone!!%s\n" "${BLD}" "${CGR}" "${CNC}" | ||
sleep 2 | ||
clear | ||
|
||
logo "Copying Rice.." | ||
printf "Copying files to respective directories..\n" | ||
|
||
if [ ! -d $HOME/.config ]; then | ||
mkdir -p $HOME/.config | ||
cp -Rf $HOME/zbspwm/config/* $HOME/.config/ | ||
else | ||
cp -Rf $HOME/zbspwm/config/* $HOME/.config/ | ||
fi | ||
|
||
if [ ! -d $HOME/.local/bin ]; then | ||
mkdir -p $HOME/.local/bin | ||
cp -Rf $HOME/zbspwm/misc/bin/* $HOME/.local/bin/ | ||
else | ||
cp -Rf $HOME/zbspwm/misc/bin/* $HOME/.local/bin/ | ||
fi | ||
|
||
if [ ! -d $HOME/.local/share/applications ]; then | ||
mkdir -p $HOME/.local/share/applications | ||
cp -Rf $HOME/zbspwm/misc/applications/* $HOME/.local/share/applications/ | ||
else | ||
cp -Rf $HOME/zbspwm/misc/applications/* $HOME/.local/share/applications/ | ||
fi | ||
|
||
if [ ! -d $HOME/.local/share/asciiart ]; then | ||
mkdir -p $HOME/.local/share/asciiart | ||
cp -Rf $HOME/zbspwm/misc/asciiart/* $HOME/.local/share/asciiart/ | ||
else | ||
cp -Rf $HOME/zbspwm/misc/asciiart/* $HOME/.local/share/asciiart/ | ||
fi | ||
|
||
if [ ! -d $HOME/.local/share/fonts ]; then | ||
mkdir -p $HOME/.local/share/fonts | ||
cp -Rf $HOME/zbspwm/misc/fonts/* $HOME/.local/share/fonts/ | ||
else | ||
cp -Rf $HOME/zbspwm/misc/fonts/* $HOME/.local/share/fonts/ | ||
fi | ||
|
||
cp -f $HOME/zbspwm/home/.zshrc $HOME | ||
|
||
printf "%s%sFiles copied succesfully!!%s\n" "${BLD}" "${CGR}" "${CNC}" | ||
sleep 2 | ||
clear | ||
|
||
logo "Installing needed packages from AUR" | ||
yay -S eww nerd-fonts-cozette-ttf scientifica-font --removemake --cleanafter | ||
sleep 2 | ||
clear | ||
|
||
logo "Reloading fonts.." | ||
fc-cache -rv >/dev/null 2>&1 | ||
printf "%s%sFonts reloaded succesfully!%s\n" "${BLD}" "${CGR}" "${CNC}" | ||
sleep 2 | ||
clear | ||
|
||
logo "Enabling MPD service" | ||
systemctl --user enable mpd.service | ||
systemctl --user start mpd.service | ||
printf "%s%sDone!!%s\n" "${BLD}" "${CGR}" "${CNC}" | ||
sleep 2 | ||
clear | ||
|
||
logo "Installation finished" | ||
printf "%s%sPlease reboot, then select bspwm in your login manager and log in.%s\n\n" "${BLD}" "${CRE}" "${CNC}" | ||
chsh -s /usr/bin/zsh | ||
zsh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
|
||
window: | ||
padding: | ||
x: 10 | ||
y: 5 | ||
|
||
decorations: full | ||
|
||
opacity: 1.0 | ||
dynamic_title: true | ||
|
||
history: 10000 | ||
multiplier: 3 | ||
|
||
font: | ||
normal: | ||
family: JetBrainsMono Nerd Font | ||
#style: Regular | ||
|
||
bold: | ||
family: JetBrainsMono Nerd Font | ||
#style: Bold | ||
|
||
|
||
italic: | ||
family: JetBrainsMono Nerd Font | ||
#style: Italic | ||
|
||
bold_italic: | ||
family: JetBrainsMono Nerd Font | ||
#style: Bold Italic | ||
|
||
size: 10 | ||
|
||
# Colors (Tokyo Night) Emilia Rice | ||
colors: | ||
primary: | ||
background: '#1a1b26' | ||
foreground: '#c0caf5' | ||
|
||
normal: | ||
black: '#414868' | ||
red: '#f7768e' | ||
green: '#9ece6a' | ||
yellow: '#e0af68' | ||
blue: '#7aa2f7' | ||
magenta: '#bb9af7' | ||
cyan: '#7dcfff' | ||
white: '#787c99' | ||
|
||
bright: | ||
black: '#414868' | ||
red: '#f7768e' | ||
green: '#9ece6a' | ||
yellow: '#e0af68' | ||
blue: '#7aa2f7' | ||
magenta: '#bb9af7' | ||
cyan: '#7dcfff' | ||
white: '#c0caf5' | ||
|
||
selection: | ||
save_to_clipboard: false | ||
|
||
cursor: | ||
style: | ||
shape: Block | ||
blinking: On | ||
|
||
unfocused_hollow: false | ||
blink_interval: 550 | ||
|
||
live_config_reload: true |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.