Add modules
This commit is contained in:
parent
b7a5c42b9b
commit
8d1a0e9557
49
tforgione.sh
49
tforgione.sh
@ -58,6 +58,8 @@ should_install_update_remainder=0
|
|||||||
should_install_neovim=0
|
should_install_neovim=0
|
||||||
should_install_rust=0
|
should_install_rust=0
|
||||||
should_install_nodejs=0
|
should_install_nodejs=0
|
||||||
|
should_install_python=0
|
||||||
|
should_install_hyrpland=0
|
||||||
|
|
||||||
ask_for_dotfiles() {
|
ask_for_dotfiles() {
|
||||||
yes_no_ask "do you wish to install and configure dotfiles?"
|
yes_no_ask "do you wish to install and configure dotfiles?"
|
||||||
@ -111,6 +113,15 @@ ask_for_rust() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ask_for_python() {
|
||||||
|
yes_no_ask "do you wish to install and configure python?"
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
should_install_python=1
|
||||||
|
}
|
||||||
|
|
||||||
ask_for_nodejs() {
|
ask_for_nodejs() {
|
||||||
yes_no_ask "do you wish to install and configure nodejs?"
|
yes_no_ask "do you wish to install and configure nodejs?"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
@ -123,6 +134,16 @@ ask_for_nodejs() {
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ask_for_hyprland() {
|
||||||
|
yes_no_ask "do you wish to install and configure hyprland?"
|
||||||
|
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
|
should_install_hyprland=1
|
||||||
|
}
|
||||||
|
|
||||||
debug() {
|
debug() {
|
||||||
if [ $should_install_git -eq 1 ]; then
|
if [ $should_install_git -eq 1 ]; then
|
||||||
info "should install git"
|
info "should install git"
|
||||||
@ -144,13 +165,22 @@ debug() {
|
|||||||
info "should install rust"
|
info "should install rust"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $should_install_python -eq 1 ]; then
|
||||||
|
info "should install python"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ $should_install_nodejs -eq 1 ]; then
|
if [ $should_install_nodejs -eq 1 ]; then
|
||||||
info "should install nodejs"
|
info "should install nodejs"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $should_install_hyprland -eq 1 ]; then
|
||||||
|
info "should install hyprland"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
run() {
|
run() {
|
||||||
packages=()
|
packages=()
|
||||||
|
python_packages=()
|
||||||
|
|
||||||
if [ $should_install_git -eq 1 ]; then
|
if [ $should_install_git -eq 1 ]; then
|
||||||
packages+=(git)
|
packages+=(git)
|
||||||
@ -175,6 +205,24 @@ run() {
|
|||||||
packages+=(libssl-dev)
|
packages+=(libssl-dev)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ $should_install_python ]; then
|
||||||
|
packages+=(python)
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ $should_instlal_hyprland -eq 1 ]; then
|
||||||
|
packages+=(hyprland)
|
||||||
|
packages+=(hyprpaper)
|
||||||
|
packages+=(hyprpicker)
|
||||||
|
packages+=(egl-wayland)
|
||||||
|
packages+=(pavucontrol)
|
||||||
|
packages+=(waybar)
|
||||||
|
packages+=(slurp)
|
||||||
|
packages+=(wl-clipboard)
|
||||||
|
packages+=(brightnessctl)
|
||||||
|
|
||||||
|
python_packages+=(psutil)
|
||||||
|
fi
|
||||||
|
|
||||||
sudo apt install -y ${packages[@]}
|
sudo apt install -y ${packages[@]}
|
||||||
|
|
||||||
if [ $should_install_dotfiles -eq 1 ]; then
|
if [ $should_install_dotfiles -eq 1 ]; then
|
||||||
@ -256,6 +304,7 @@ main() {
|
|||||||
ask_for_neovim
|
ask_for_neovim
|
||||||
ask_for_rust
|
ask_for_rust
|
||||||
ask_for_nodejs
|
ask_for_nodejs
|
||||||
|
ask_for_hyprland
|
||||||
|
|
||||||
debug
|
debug
|
||||||
run
|
run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user