diff --git a/billypom-ascii.txt b/ascii.txt similarity index 100% rename from billypom-ascii.txt rename to ascii.txt diff --git a/debian.sh b/debian.sh index 3b1fa58..30bc1a7 100755 --- a/debian.sh +++ b/debian.sh @@ -46,7 +46,7 @@ include_debian_backports=false # confirm "\0cc[94mInstall Nerd Fonts?\033[0m" && install_nerdfonts=true echo "${fg_blue}" -cat billypom-ascii.txt +cat ascii.txt echo "${fg_cyan}-----Debian Install Script-----${reset}" confirm "Include debian backports in apt package manager? (Y/N)" && include_debian_backports=true confirm "Swap Left Super & Left Control (Y/N)" && is_macbook=true @@ -67,16 +67,12 @@ sudo apt install vim git cifs-utils nfs-common ripgrep stow virtualenv wget zip # wayland specific packages if echo $XDG_SESSION_TYPE | grep -q "wayland"; then -# if grep -q "wayland" $(echo $XDG_SESSION_TYPE); then -# if "$XDG_SESSION_TYPE" == "wayland"; then echo "Installing wayland specific packages" sudo apt install -y wl-clipboard fi # gnome specific packages if echo $DESKTOP_SESSION | grep -q "gnome" && $install_gnome_configs; then -# if grep -q "gnome" $DESKTOP_SESSION; then -# if "$DESKTOP_SESSION" == "gnome"; then echo "Installing gnome-specific packages" sudo apt install -y gnome-tweaks gsettings set org.gnome.desktop.interface gtk-theme Lavanda-Sea-Dark @@ -91,7 +87,7 @@ if echo $DESKTOP_SESSION | grep -q "gnome" && $install_gnome_configs; then gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "[]" if $is_macbook; then echo "Swapping left Super & left Control" - gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swap_lwin_lctl']" + bash options/toggle-gnome-macbook-keyboard.sh 1 fi sudo apt install -y pipx # adds ~/.local/bin to PATH @@ -106,14 +102,15 @@ fi # nerdfonts if $install_nerdfonts; then echo "Installing nerdfonts" - bash nerdfonts.sh + bash options/install-nerdfonts.sh fi # themes if $install_themes; then # user theme directory + echo "Installing themes" mkdir -p ~/.themes - bash colloid-gtk-theme.sh - bash lavanda-gtk-theme.sh + bash options/install-colloid-gtk-theme.sh + bash options/install-lavanda-gtk-theme.sh fi # set default file manager @@ -121,37 +118,18 @@ xdg-mime default nemo.desktop inode/directory # install neovim if $install_neovim; then - mkdir -p ~/applications - wget -q --show-progress https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz - if check_dir_exists ~/applications/nvim-linux64/; then - mv ~/applications/nvim-linux64/ ~/applications/nvim-linux64.old/ - fi - tar xzf nvim-linux64.tar.gz - mv nvim-linux64 ~/applications/ - rm nvim-linux64.tar.gz - rm -r ~/applications/nvim-linux64.old - if ! grep -q "alias vim" ~/.bash_aliases; then echo ‘alias vim=“~/applications/nvim-linux64/bin/nvim”’ >> ~/.bash_aliases; fi - echo "Installed latest neovim" + echo "Installing neovim" + bash options/install-neovim.sh fi # install my dotfiles if $install_dotfiles; then - if check_dir_exists ~/code/dotfiles; then - cd ~/code/dotfiles - git pull - echo "Pulled billypom/dotfiles from github" - else - mkdir -p ~/code - cd ~/code - git clone https://github.com/billypom/dotfiles.git - echo "Cloned billypom/dotfiles from github" - fi - cd ~/code - stow --adopt dotfiles/ - echo "Stowed dotfiles" + echo "Installing billypom dotfiles" + bash options/install-dotfiles.sh fi # apt repositories setup +# this wont work because of permissions...hmmm if ! grep -q "deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware" /etc/apt/sources.list; then echo "deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware" >> /etc/apt/sources.list; fi if ! grep -q "deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware" /etc/apt/sources.list; then echo "deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware" >> /etc/apt/sources.list; fi diff --git a/colloid-gtk-theme.sh b/options/install-colloid-gtk-theme.sh similarity index 100% rename from colloid-gtk-theme.sh rename to options/install-colloid-gtk-theme.sh diff --git a/options/install-dotfiles.sh b/options/install-dotfiles.sh new file mode 100755 index 0000000..0149e44 --- /dev/null +++ b/options/install-dotfiles.sh @@ -0,0 +1,15 @@ +# ensure git and stow are installed +sudo apt install git stow +if check_dir_exists ~/code/dotfiles; then + cd ~/code/dotfiles + git pull + echo "Pulled billypom/dotfiles from github" +else + mkdir -p ~/code + cd ~/code + git clone https://github.com/billypom/dotfiles.git + echo "Cloned billypom/dotfiles from github" +fi +cd ~/code +stow --adopt dotfiles/ +echo "Stowed dotfiles" diff --git a/lavanda-gtk-theme.sh b/options/install-lavanda-gtk-theme.sh similarity index 100% rename from lavanda-gtk-theme.sh rename to options/install-lavanda-gtk-theme.sh diff --git a/options/install-neovim.sh b/options/install-neovim.sh new file mode 100755 index 0000000..e86b16d --- /dev/null +++ b/options/install-neovim.sh @@ -0,0 +1,11 @@ +mkdir -p ~/applications +wget -q --show-progress https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz +if check_dir_exists ~/applications/nvim-linux64/; then + mv ~/applications/nvim-linux64/ ~/applications/nvim-linux64.old/ +fi +tar xzf nvim-linux64.tar.gz +mv nvim-linux64 ~/applications/ +rm nvim-linux64.tar.gz +rm -r ~/applications/nvim-linux64.old +if ! grep -q "alias vim" ~/.bash_aliases; then echo ‘alias vim=“~/applications/nvim-linux64/bin/nvim”’ >> ~/.bash_aliases; fi +echo "Installed latest neovim" diff --git a/nerdfonts.sh b/options/install-nerdfonts.sh similarity index 100% rename from nerdfonts.sh rename to options/install-nerdfonts.sh diff --git a/gnome-toggle-macbook-keyboard.sh b/options/toggle-gnome-macbook-keyboard.sh similarity index 100% rename from gnome-toggle-macbook-keyboard.sh rename to options/toggle-gnome-macbook-keyboard.sh