diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-04-27 13:39:23 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-04-27 13:39:23 +0200 |
commit | 2a284fc5deb56bc2a9d1a45595741e1c72a153a4 (patch) | |
tree | 2fad04d5347fa6c93dbe7bbc2a196f9251d95c57 | |
parent | 7c9e2622b14965528e3d38010ff41ffa0f7b6805 (diff) | |
download | dotfiles-2a284fc5deb56bc2a9d1a45595741e1c72a153a4.tar.gz dotfiles-2a284fc5deb56bc2a9d1a45595741e1c72a153a4.zip |
Remove install
-rwxr-xr-x | install/install_linux.sh | 154 | ||||
-rwxr-xr-x | install/install_mac.sh | 83 | ||||
-rw-r--r-- | install/install_win.bat | 10 |
3 files changed, 0 insertions, 247 deletions
diff --git a/install/install_linux.sh b/install/install_linux.sh deleted file mode 100755 index 464f44e..0000000 --- a/install/install_linux.sh +++ /dev/null @@ -1,154 +0,0 @@ -#!/bin/bash - -function dlgYN() { - tput sc - tput setaf 4 - printf "$1 (y/n)? " - while : - do - read -n 1 -p "" YNQuestionAnswer - if [[ $YNQuestionAnswer == "y" ]]; then - tput rc; tput el - printf "$1?: \e[0;32mYes\e[0m\n" - tput sc - eval $2=1 # Set parameter 2 of input to the return value - break - elif [[ $YNQuestionAnswer == "n" ]]; then - tput rc; tput el - printf "$1?: \e[0;31mNo\e[0m\n" - eval $2=0 # Set parameter 2 of input to the return value - break - fi - done -} - -dlgYN "> Install \"Highlight, atool, w3m, mediainfo, vim, git\"" res -if [ $res -eq 1 ]; then - tput sc - $INST_PM highlight atool w3m mediainfo curl zsh vim git python3-pip zsh tmux nodejs catimg ripgrep silversearcher-ag - tput rc; tput ed -fi - -dlgYN "> Install Oh-My-Zsh" res -if [ $res -eq 1 ]; then - tput sc - sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - - # Zsh-autosuggestions - git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions - # Zsh-syntax-highlighting - git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting - # Zsh-vi-mode - git clone https://github.com/jeffreytse/zsh-vi-mode ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-vi-mode - - tput rc; tput ed -fi - -dlgYN "> Install Powerline and Powerlevel10k" res -if [ $res -eq 1 ]; then - tput sc - pip3 install pygments - pip3 install powerline-status - git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k - tput rc; tput ed -fi - -dlgYN "> autorandr" res -if [ $res -eq 1 ]; then - tput sc - pip install autorandr - tput rc; tput ed -fi - -dlgYN "> Install greetd and tuigreet" res -if [ $res -eq 1 ]; then - tput sc - $INST_PM greetd - sudo curl https://github.com/apognu/tuigreet/releases/download/0.8.0/tuigreet-0.8.0-x86_64 -o /usr/local/bin/tuigreet - sudo chmod +x /usr/local/bin/tuigreet - sudo cp /etc/greetd/config.toml /etc/greetd.config.toml.orig - sudo ln -isf "$CWD/linux/greetd.toml" /etc/greetd/config.toml - sudo systemctl enable greetd - tput rc; tput ed -fi - -dlgYN "> Install tlp" res -if [ $res -eq 1 ]; then - tput sc - $INST_PM tlp - systemctl enable --now tlp - tput rc; tput ed -fi - -dlgYN "> Install sway" res -if [ $res -eq 1 ]; then - tput sc - if [ "$distro" == "fedora" ]; then - $INST_PM sway swayidle alacritty blueman wob wlogout wofi brightnessctl clipman xwayland seahorse fcitx5 im-config - else - $INST_PM sway swayidle physlock alacritty blueman network-manager-gnome wob wlogout wofi brightnessctl clipman xwayland seahorse fcitx5 imsettings - fi - tput rc; tput ed -fi - -dlgYN "> Install qtile" res -if [ $res -eq 1 ]; then - tput sc - # Core - $INST_PM python3-cffi python3-cairocffi pango pango-devel python3-dbus-next - # X11 - $INST_PM python3-xcffib xsecurelock - # Wayland - $INST_PM wlroots python3-pywlroots python3-pywayland python3-xkbcommon xwayland - - # sudo pip install qtile qtile_extras - - sudo ln -isf "$CWD/linux/qtile/qtile.desktop" /usr/share/xsessions/qtile.desktop - sudo ln -isf "$CWD/linux/qtile/qtile-wayland.desktop" /usr/share/wayland-sessions/qtile-wayland.desktop - # tput rc; tput ed -fi - -dlgYN "> Create symlinks" res -if [ $res -eq 1 ]; then - function createOrUpdateSymlink() { - if [ -L "$2" ]; then - unlink $2 - fi - if [ -e "$2" ]; then - echo "Directory $2 exists already!" - return - fi - ln -isf "$1" "$2" - } - - CWD=$(pwd) - tput sc - createOrUpdateSymlink "$CWD/bin" ~/bin - createOrUpdateSymlink "$CWD/Common/zshrc" ~/.zshrc - createOrUpdateSymlink "$CWD/Common/vimrc" ~/.vimrc - createOrUpdateSymlink "$CWD/Common/vim" ~/.vim - createOrUpdateSymlink "$CWD/Common/nvim" ~/.config/nvim - createOrUpdateSymlink "$CWD/Common/p10k.zsh" ~/.p10k.zsh - createOrUpdateSymlink "$CWD/linux/tmux.conf" ~/.tmux.conf - createOrUpdateSymlink "$CWD"/linux/i3/config/* ~/.config/ - createOrUpdateSymlink "$CWD/linux/i3/urxvt" ~/.urxvt - createOrUpdateSymlink "$CWD/linux/i3/Xresources" ~/.Xresources - createOrUpdateSymlink "$CWD/linux/i3/xsettingsd" ~/.xsettingsd - createOrUpdateSymlink "$CWD/linux/rofi" ~/.config/rofi - createOrUpdateSymlink "$CWD/linux/deadd" ~/.config/deadd - createOrUpdateSymlink "$CWD/linux/sway" ~/.config/sway - createOrUpdateSymlink "$CWD/linux/waybar" ~/.config/waybar - createOrUpdateSymlink "$CWD/linux/foot" ~/.config/foot - createOrUpdateSymlink "$CWD/linux/alacritty" ~/.config/alacritty - createOrUpdateSymlink "$CWD/linux/powerline_config" ~/.config/powerline - createOrUpdateSymlink "$CWD/linux/sxhkd" ~/.config/sxhkd - createOrUpdateSymlink "$CWD/linux/bspwm" ~/.config/bspwm - createOrUpdateSymlink "$CWD/linux/polybar" ~/.config/polybar - tput rc; tput ed -fi - -tput setaf 3 -echo "\nPlease install the font Roboto mono nerd, and enable it in your terminal." -echo "\nPlease run ':PlugInstall' in vim" -echo "\nTo to start greetd, reboot system" -tput sgr0 diff --git a/install/install_mac.sh b/install/install_mac.sh deleted file mode 100755 index 98fc1fc..0000000 --- a/install/install_mac.sh +++ /dev/null @@ -1,83 +0,0 @@ -#!/bin/sh - -function dlgYN() { - tput sc - tput setaf 4 - printf "$1 (y/n)? " - while : - do - read -n 1 -p "" YNQuestionAnswer - if [[ $YNQuestionAnswer == "y" ]]; then - tput rc; tput el - printf "$1?: \e[0;32mYes\e[0m\n" - tput sc - eval $2=1 # Set parameter 2 of input to the return value - break - elif [[ $YNQuestionAnswer == "n" ]]; then - tput rc; tput el - printf "$1?: \e[0;31mNo\e[0m\n" - eval $2=0 # Set parameter 2 of input to the return value - break - fi - done -} - -dlgYN "> Install Homebrew" res -if [ $res -eq 1 ]; then - tput sc - /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - tput rc; tput ed -fi - -dlgYN "> Install \"Highlight, atool, w3m, mediainfo, vim\"" res -if [ $res -eq 1 ]; then - tput sc - brew install highlight atool w3m mediainfo vim nodejs - tput rc; tput ed -fi - -dlgYN "> Install Oh-My-Zsh" res -if [ $res -eq 1 ]; then - tput sc - sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" - - # Zsh-autosuggestions - git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions - # Zsh-syntax-highlighting - git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting - # Zsh-vi-mode - git clone https://github.com/jeffreytse/zsh-vi-mode ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-vi-mode - - tput rc; tput ed -fi - -dlgYN "> Install Powerline && powerlevel10k" res -if [ $res -eq 1 ]; then - tput sc - pip3 install pygments - pip3 install powerline-status - brew install romkatv/powerlevel10k/powerlevel10k - tput rc; tput ed -fi - -dlgYN "> Create symlinks" res -if [ $res -eq 1 ]; then - CWD=$(PWD) - tput sc - ln -isf "$CWD/bin" ~/bin - ln -isf "$CWD/mac/tmux.conf" ~/.tmux.conf - ln -isf "$CWD/mac/Hyperterm/hyper.js" ~/.hyper.js - ln -isf "$CWD/mac/Hyperterm/local" ~/.hyper_plugins/local - ln -isf "$CWD/Common/zshrc" ~/.zshrc - ln -isf "$CWD/Common/vimrc" ~/.vimrc - ln -isf "$CWD/Common/vim" ~/.vim - ln -isf "$CWD/Common/nvim" ~/.config/nvim - ln -isf "$CWD/Common/p10k.zsh" ~/.p10k.zsh - rm -r ~/Library/texmf/tex && ln -isf "$CWD/Common/tex" ~/Library/texmf/tex - tput rc; tput ed -fi - -tput setaf 3 -echo "\nPlease install the font Roboto mono nerd, and enable it in your terminal." -echo "\nPlease run ':PlugInstall' in vim" -tput sgr0 diff --git a/install/install_win.bat b/install/install_win.bat deleted file mode 100644 index 44b529b..0000000 --- a/install/install_win.bat +++ /dev/null @@ -1,10 +0,0 @@ -@echo off - -echo This installer will setup you system with jakobs1n's dotfiles. -echo It will not care about your current setup, and will assume that you have a "stock" setup, or are trying a new version of jakobs1n's config. -echo -echo Are you an administrator on your system? (Y/n) -echo I don't care... -echo -echo this key should point to your env.cmd -echo REG Add "HKCU\SOFTWARE\Microsoft\Command Processor" /v AutoRun /t REG_SZ /d <pathToFile> |