simple install
This commit is contained in:
parent
d72a3084b2
commit
bc9923e3ea
20
README.md
20
README.md
@ -37,27 +37,13 @@ This repository saves the custom configuration used by heckyel in i3wm
|
|||||||
|
|
||||||
pacman -Syy i3-wm i3status dmenu sysstat
|
pacman -Syy i3-wm i3status dmenu sysstat
|
||||||
|
|
||||||
### Install requeriments
|
### Simple Install
|
||||||
|
|
||||||
pacman -Syy i3blocks i3lock rofi termite dunst conky playerctl acpi network-manager-applet scrot xfce4-terminal thunar tumbler feh ranger
|
wget https://libregit.org/heckyel/i3-config/raw/branch/master/install.sh -O "$HOME/install.sh"
|
||||||
|
|
||||||
### Installed optional
|
### Installed optional
|
||||||
|
|
||||||
pacman -Syy lxappearance nitrogen
|
pacman -Syy lxappearance nitrogen gnome-disk-utility
|
||||||
|
|
||||||
### Config
|
|
||||||
|
|
||||||
cd ~/.config/i3/
|
|
||||||
|
|
||||||
git clone https://libregit.org/heckyel/i3-config.git .
|
|
||||||
|
|
||||||
### Conky
|
|
||||||
|
|
||||||
cp -v ~/.config/i3/tmp/conky.conf ~/.config/conky/
|
|
||||||
|
|
||||||
### Icons
|
|
||||||
|
|
||||||
pacman -S ttf-font-awesome
|
|
||||||
|
|
||||||
### keyboard shortcuts (spanish)
|
### keyboard shortcuts (spanish)
|
||||||
|
|
||||||
|
59
install.sh
59
install.sh
@ -1,9 +1,64 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
URL="https://libregit.org/heckyel/i3-config.git"
|
||||||
|
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
function _copy_i3_config() {
|
||||||
|
## Install dependencies
|
||||||
if [[ $(command -v pacman) ]]; then
|
if [[ $(command -v pacman) ]]; then
|
||||||
sudo pacman -Syy
|
sudo pacman -Syy
|
||||||
sudo pacman -S i3blocks i3lock rofi termite dunst conky playerctl acpi network-manager-applet scrot xfce4-terminal thunar tumbler feh ranger --noconfirm
|
# i3 base
|
||||||
|
sudo pacman -S i3-wm i3status dmenu sysstat
|
||||||
|
# i3 blocks and dependecies
|
||||||
|
sudo pacman -S i3blocks i3lock rofi termite dunst conky playerctl acpi network-manager-applet scrot xfce4-terminal thunar tumbler feh ranger
|
||||||
elif [[ $(command -v apt-get) ]]; then
|
elif [[ $(command -v apt-get) ]]; then
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt i3blocks i3lock rofi termite dunst conky playerctl acpi network-manager-applet scrot xfce4-terminal thunar tumbler feh ranger
|
# i3 base
|
||||||
|
sudo apt install i3-wm i3status suckless-tools sysstat
|
||||||
|
# i3 blocks and dependecies
|
||||||
|
sudo apt install i3blocks i3lock rofi termite dunst conky playerctl acpi network-manager-applet scrot xfce4-terminal thunar tumbler feh ranger
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install i3config
|
||||||
|
printf '\e[1;32m%s\e[1;36m%s\e[m\n' '=> ' 'cloning i3config'
|
||||||
|
git clone "$URL" "/tmp/i3config/" --depth=1
|
||||||
|
|
||||||
|
printf '\e[1;32m%s\e[1;36m%s\e[m\n' '=> ' 'copying images'
|
||||||
|
cp -rv /tmp/i3config/images "$HOME/.config/i3/"
|
||||||
|
|
||||||
|
printf '\e[1;32m%s\e[1;36m%s\e[m\n' '=> ' 'copying scripts'
|
||||||
|
cp -rv /tmp/i3config/scripts "$HOME/.config/i3/"
|
||||||
|
|
||||||
|
printf '\e[1;32m%s\e[1;36m%s\e[m\n' '=> ' 'copying i3 config'
|
||||||
|
cp -rv /tmp/i3config/{config,i3blocks.conf} "$HOME/.config/i3/"
|
||||||
|
|
||||||
|
printf '\e[1;32m%s\e[1;36m%s\e[m\n' '=> ' 'copying conky'
|
||||||
|
install -m644 -v /tmp/i3config/tmp/conky.conf "$HOME/.config/conky/"
|
||||||
|
|
||||||
|
printf '\e[1;32m%s\e[1;36m%s\e[m\n' '=> ' 'copying fontawesome'
|
||||||
|
install -m644 -v /tmp/i3config/tmp/fontawesome.ttf "$HOME/.local/share/fonts/"
|
||||||
|
|
||||||
|
# clean up temp files
|
||||||
|
rm -rf /tmp/i3config/
|
||||||
|
}
|
||||||
|
|
||||||
|
case ${LANG/_*/} in
|
||||||
|
es)
|
||||||
|
read -r -p "¿Estás seguro de instalar i3config? [S/n]: " input
|
||||||
|
case $input in
|
||||||
|
[sS]|"") _copy_i3_config "$@"; break ;;
|
||||||
|
[nN]) break ;;
|
||||||
|
*) echo "Por favor responde sí o no" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
read -r -p "Are you sure to install i3config? [Y/n]: " input
|
||||||
|
case $input in
|
||||||
|
[yY]|"") _copy_i3_config "$@"; break ;;
|
||||||
|
[nN]) break ;;
|
||||||
|
*) echo "Please answer yes or no.";;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
BIN
tmp/fontawesome.ttf
Normal file
BIN
tmp/fontawesome.ttf
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user