From 8d1a0e95572f256f77b962f17c23841ea6199c19 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Fri, 2 May 2025 16:43:14 +0200 Subject: [PATCH] Add modules --- tforgione.sh | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/tforgione.sh b/tforgione.sh index 0d9d5c3..4e40563 100755 --- a/tforgione.sh +++ b/tforgione.sh @@ -58,6 +58,8 @@ should_install_update_remainder=0 should_install_neovim=0 should_install_rust=0 should_install_nodejs=0 +should_install_python=0 +should_install_hyrpland=0 ask_for_dotfiles() { yes_no_ask "do you wish to install and configure dotfiles?" @@ -111,6 +113,15 @@ ask_for_rust() { 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() { yes_no_ask "do you wish to install and configure nodejs?" if [ $? -ne 0 ]; then @@ -123,6 +134,16 @@ ask_for_nodejs() { 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() { if [ $should_install_git -eq 1 ]; then info "should install git" @@ -144,13 +165,22 @@ debug() { info "should install rust" fi + if [ $should_install_python -eq 1 ]; then + info "should install python" + fi + if [ $should_install_nodejs -eq 1 ]; then info "should install nodejs" fi + + if [ $should_install_hyprland -eq 1 ]; then + info "should install hyprland" + fi } run() { packages=() + python_packages=() if [ $should_install_git -eq 1 ]; then packages+=(git) @@ -175,6 +205,24 @@ run() { packages+=(libssl-dev) 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[@]} if [ $should_install_dotfiles -eq 1 ]; then @@ -256,6 +304,7 @@ main() { ask_for_neovim ask_for_rust ask_for_nodejs + ask_for_hyprland debug run