initial commit
This commit is contained in:
commit
f4a09362aa
70 changed files with 371 additions and 0 deletions
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Doman Setup
|
||||
|
||||
Complete install script for my new machines. WIP
|
1
fonts/Asana Math/.uuid
Normal file
1
fonts/Asana Math/.uuid
Normal file
|
@ -0,0 +1 @@
|
|||
b769c42f-05c4-47e6-b431-e2b55ea7d378
|
BIN
fonts/Asana Math/Asana Math.ttf
Normal file
BIN
fonts/Asana Math/Asana Math.ttf
Normal file
Binary file not shown.
BIN
fonts/ComicMono/ComicMono-Bold.ttf
Normal file
BIN
fonts/ComicMono/ComicMono-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/ComicMono/ComicMono.ttf
Normal file
BIN
fonts/ComicMono/ComicMono.ttf
Normal file
Binary file not shown.
BIN
fonts/Hack Bold Italic Nerd Font Complete Mono.ttf
Normal file
BIN
fonts/Hack Bold Italic Nerd Font Complete Mono.ttf
Normal file
Binary file not shown.
BIN
fonts/Hack Bold Italic Nerd Font Complete.ttf
Normal file
BIN
fonts/Hack Bold Italic Nerd Font Complete.ttf
Normal file
Binary file not shown.
BIN
fonts/Hack Bold Nerd Font Complete Mono.ttf
Normal file
BIN
fonts/Hack Bold Nerd Font Complete Mono.ttf
Normal file
Binary file not shown.
BIN
fonts/Hack Bold Nerd Font Complete.ttf
Normal file
BIN
fonts/Hack Bold Nerd Font Complete.ttf
Normal file
Binary file not shown.
BIN
fonts/Hack Italic Nerd Font Complete Mono.ttf
Normal file
BIN
fonts/Hack Italic Nerd Font Complete Mono.ttf
Normal file
Binary file not shown.
BIN
fonts/Hack Italic Nerd Font Complete.ttf
Normal file
BIN
fonts/Hack Italic Nerd Font Complete.ttf
Normal file
Binary file not shown.
BIN
fonts/Hack Regular Nerd Font Complete Mono.ttf
Normal file
BIN
fonts/Hack Regular Nerd Font Complete Mono.ttf
Normal file
Binary file not shown.
BIN
fonts/Hack Regular Nerd Font Complete.ttf
Normal file
BIN
fonts/Hack Regular Nerd Font Complete.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFont-Bold.ttf
Normal file
BIN
fonts/HackNerdFont-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFont-BoldItalic.ttf
Normal file
BIN
fonts/HackNerdFont-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFont-Italic.ttf
Normal file
BIN
fonts/HackNerdFont-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFont-Regular.ttf
Normal file
BIN
fonts/HackNerdFont-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFontMono-Bold.ttf
Normal file
BIN
fonts/HackNerdFontMono-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFontMono-BoldItalic.ttf
Normal file
BIN
fonts/HackNerdFontMono-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFontMono-Italic.ttf
Normal file
BIN
fonts/HackNerdFontMono-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFontMono-Regular.ttf
Normal file
BIN
fonts/HackNerdFontMono-Regular.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFontPropo-Bold.ttf
Normal file
BIN
fonts/HackNerdFontPropo-Bold.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFontPropo-BoldItalic.ttf
Normal file
BIN
fonts/HackNerdFontPropo-BoldItalic.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFontPropo-Italic.ttf
Normal file
BIN
fonts/HackNerdFontPropo-Italic.ttf
Normal file
Binary file not shown.
BIN
fonts/HackNerdFontPropo-Regular.ttf
Normal file
BIN
fonts/HackNerdFontPropo-Regular.ttf
Normal file
Binary file not shown.
1
fonts/Museo Sans 100/.uuid
Normal file
1
fonts/Museo Sans 100/.uuid
Normal file
|
@ -0,0 +1 @@
|
|||
7e3f6800-6718-4a73-8586-9550ebec7ce0
|
BIN
fonts/Museo Sans 100/MuseoSans-100.otf
Normal file
BIN
fonts/Museo Sans 100/MuseoSans-100.otf
Normal file
Binary file not shown.
1
fonts/Museo Sans 300/.uuid
Normal file
1
fonts/Museo Sans 300/.uuid
Normal file
|
@ -0,0 +1 @@
|
|||
b7b3249e-de93-428d-932f-59e555cfd616
|
BIN
fonts/Museo Sans 300/MuseoSans-300.otf
Normal file
BIN
fonts/Museo Sans 300/MuseoSans-300.otf
Normal file
Binary file not shown.
1
fonts/Museo Sans 500/.uuid
Normal file
1
fonts/Museo Sans 500/.uuid
Normal file
|
@ -0,0 +1 @@
|
|||
39fbc758-14e1-4f3c-9b5e-43e0598b3c74
|
BIN
fonts/Museo Sans 500/MuseoSans_500.otf
Normal file
BIN
fonts/Museo Sans 500/MuseoSans_500.otf
Normal file
Binary file not shown.
1
fonts/Museo Sans 700/.uuid
Normal file
1
fonts/Museo Sans 700/.uuid
Normal file
|
@ -0,0 +1 @@
|
|||
ecfa9003-484c-438b-a8be-5b695ee69990
|
BIN
fonts/Museo Sans 700/MuseoSans_700.otf
Normal file
BIN
fonts/Museo Sans 700/MuseoSans_700.otf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Black Nerd Font Complete Mono.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Black Nerd Font Complete Mono.ttf
Normal file
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Black Nerd Font Complete.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Black Nerd Font Complete.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Bold Nerd Font Complete Mono.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Bold Nerd Font Complete Mono.ttf
Normal file
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Bold Nerd Font Complete.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Bold Nerd Font Complete.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro ExtraLight Nerd Font Complete.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro ExtraLight Nerd Font Complete.ttf
Normal file
Binary file not shown.
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Italic Nerd Font Complete.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Italic Nerd Font Complete.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Light Nerd Font Complete Mono.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Light Nerd Font Complete Mono.ttf
Normal file
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Light Nerd Font Complete.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Light Nerd Font Complete.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Medium Nerd Font Complete.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Medium Nerd Font Complete.ttf
Normal file
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Nerd Font Complete Mono.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Nerd Font Complete Mono.ttf
Normal file
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Nerd Font Complete.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Nerd Font Complete.ttf
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
fonts/NerdFonts/Sauce Code Pro Semibold Nerd Font Complete.ttf
Normal file
BIN
fonts/NerdFonts/Sauce Code Pro Semibold Nerd Font Complete.ttf
Normal file
Binary file not shown.
15
install.sh
Executable file
15
install.sh
Executable file
|
@ -0,0 +1,15 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
cd $HOME
|
||||
REPO_URL=git@github.com:ickyicky/dot.git
|
||||
git clone --bare $REPO_URL $HOME/.dot/
|
||||
alias dot="/usr/bin/git --git-dir=$HOME/.dot/ --work-tree=$HOME"
|
||||
dot config status.showUntrackedFiles no
|
||||
dot restore .
|
||||
|
||||
mkdir -p Projects/[Personal,Work]
|
||||
SETUP_REPO_URL=git@github.com:ickyicky/setup.git
|
||||
git clone $SETUP_REPO_URL Projects/Personal/setup
|
||||
cd Projects/Personal/setup
|
||||
./setup.sh
|
14
scripts/fonts.sh
Normal file
14
scripts/fonts.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
install_fonts() {
|
||||
if [[ "$UNAME" == "Darwin" ]]; then
|
||||
cp -r fonts/* ~/Library/Fonts/
|
||||
else
|
||||
mkdir -p ~/.local/share/fonts/
|
||||
cp -r fonts/* ~/.local/share/fonts/
|
||||
fi
|
||||
}
|
||||
|
||||
ask "install fonts? (y/n)"
|
||||
[ "$RESP" != "n" ] && install_fonts
|
138
scripts/gnome.sh
Normal file
138
scripts/gnome.sh
Normal file
|
@ -0,0 +1,138 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
BEGINNING="gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings"
|
||||
KEY_PATH="/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings"
|
||||
FLAT_REMIX_GTK_LINK="https://github.com/daniruiz/flat-remix-gtk.git"
|
||||
FLAT_REMIX_GNOME_LINK="https://github.com/daniruiz/flat-remix-gnome.git"
|
||||
|
||||
|
||||
setup_gnome() {
|
||||
ask "install gnome themes? (y/n)"
|
||||
[ "$RESP" != "n" ] && [[ ! -z "$(which gnome-shell)" ]] && preconfigure_gnome
|
||||
ask "apply gnome themes and configure it? (y/n)"
|
||||
[ "$RESP" != "n" ] && [[ ! -z "$(which gnome-shell)" ]] && configure_gnome
|
||||
ask "configure fonts?(y/n)"
|
||||
[ "$RESP" != "n" ] && [[ ! -z "$(which gnome-shell)" ]] && configure_fonts
|
||||
ask "configure pop-shell?(y/n)"
|
||||
[ "$RESP" != "n" ] && [[ ! -z "$(which gnome-shell)" ]] && configure_pop_shell
|
||||
}
|
||||
|
||||
install_gnome_themes() {
|
||||
git clone ${FLAT_REMIX_GTK_LINK} temp
|
||||
git clone ${FLAT_REMIX_GNOME_LINK} temp2
|
||||
cd temp
|
||||
sudo make install
|
||||
cd ..
|
||||
cd temp2
|
||||
sudo make install
|
||||
cd ..
|
||||
rm -rf temp temp2
|
||||
}
|
||||
|
||||
preconfigure_gnome() {
|
||||
${PKGMAN} gnome-tweaks
|
||||
if [[ "$DISTRO" =~ ARCH*|MANJARO*|ENDEAVOUR* ]]; then
|
||||
AURS="
|
||||
flat-remix
|
||||
flat-remix-gnome
|
||||
flat-remix-gtk
|
||||
xcursor-breeze
|
||||
tela-circle-icon-theme-git
|
||||
"
|
||||
yay -S --noconfirm ${AURS}
|
||||
elif [[ "$DISTRO" =~ UBUNTU* ]]; then
|
||||
sudo add-apt-repository ppa:daniruiz/flat-remix
|
||||
sudo apt update
|
||||
${PKGMAN} flat-remix-gnome flat-remix-gtk
|
||||
install_tela
|
||||
elif [[ "$DISTRO" =~ FEDORA*|CENTOS* ]]; then
|
||||
${PKGMAN} gnome-shell-theme-flat-remix flat-remix-gtk2-theme flat-remix-gtk3-theme
|
||||
install_tela
|
||||
else
|
||||
install_gnome_themes
|
||||
install_tela
|
||||
fi
|
||||
}
|
||||
|
||||
configure_pop_shell() {
|
||||
yay -S --noconfirm gnome-shell-extension-pop-shell-git 2>/dev/null
|
||||
gsettings set org.gnome.shell.extensions.pop-shell focus-down "['<Super><Alt>j']"
|
||||
gsettings set org.gnome.shell.extensions.pop-shell focus-up "['<Super><Alt>k']"
|
||||
gsettings set org.gnome.shell.extensions.pop-shell focus-left "['<Super><Alt>h']"
|
||||
gsettings set org.gnome.shell.extensions.pop-shell focus-right "['<Super><Alt>l']"
|
||||
|
||||
gsettings set org.gnome.shell.extensions.pop-shell pop-monitor-down "['<Super><Shift><Primary>Down', '<Super><Shift><Primary>KP_Down']"
|
||||
gsettings set org.gnome.shell.extensions.pop-shell pop-monitor-left "['<Super><Shift>Left', '<Super><Shift>KP_Left']"
|
||||
gsettings set org.gnome.shell.extensions.pop-shell pop-monitor-right "['<Super><Shift>Right', '<Super><Shift>KP_Right']"
|
||||
gsettings set org.gnome.shell.extensions.pop-shell pop-monitor-up "['<Super><Shift><Primary>Up', '<Super><Shift><Primary>KP_Up']"
|
||||
gsettings set org.gnome.shell.extensions.pop-shell pop-workspace-down "['<Super><Shift>Down', '<Super><Shift>KP_Down']"
|
||||
gsettings set org.gnome.shell.extensions.pop-shell pop-workspace-up "['<Super><Shift>Up', '<Super><Shift>KP_Up']"
|
||||
|
||||
gsettings set org.gnome.shell.extensions.pop-shell tile-enter "['<Super>i']"
|
||||
}
|
||||
|
||||
configure_gnome() {
|
||||
gsettings set org.gnome.shell.extensions.user-theme name "Flat-Remix-Blue-Dark-fullPanel"
|
||||
gsettings set org.gnome.desktop.interface gtk-theme "Flat-Remix-GTK-Blue-Dark"
|
||||
gsettings set org.gnome.desktop.interface icon-theme "Tela-circle-blue-dark"
|
||||
gsettings set org.gnome.desktop.interface cursor-theme "Breeze"
|
||||
cp -r /usr/share/themes/Flat-Remix-LibAdwaita-Blue-Dark/* ~/.config/gtk-4.0/
|
||||
gsettings set org.gnome.desktop.wm.keybindings move-to-center "['<Super>c']"
|
||||
|
||||
# Settings for vertical:
|
||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "['<Super>Up']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down "['<Super>Down']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-up "['<super><shift>Up']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-down "['<super><shift>Down']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right "['<Super>k']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left "['<Super>j']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-right "['<super><shift>k']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-left "['<super><shift>j']"
|
||||
|
||||
gsettings set org.gnome.desktop.wm.keybindings close "['<Ctrl>q']"
|
||||
gsettings set org.gnome.mutter.keybindings toggle-tiled-left "['<Super><Ctrl>h']"
|
||||
gsettings set org.gnome.mutter.keybindings toggle-tiled-right "['<Super><Ctrl>l']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings minimize "['<Super>m']"
|
||||
gsettings set org.gnome.shell.keybindings toggle-message-tray "['<Super>v']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings unmaximize "['<Super>Down', '<Super><Ctrl>j']"
|
||||
gsettings set org.gnome.desktop.wm.keybindings maximize "['<Super>Up', '<Super><Ctrl>k']"
|
||||
|
||||
|
||||
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings \
|
||||
"['$KEY_PATH/custom0/', '$KEY_PATH/custom1/']"
|
||||
|
||||
$BEGINNING/custom0/ name "Run terminal"
|
||||
$BEGINNING/custom0/ command "kitty -o \"linux_display_server=x11\""
|
||||
$BEGINNING/custom0/ binding "<Super>Return"
|
||||
|
||||
$BEGINNING/custom1/ name "Run chromium"
|
||||
$BEGINNING/custom1/ command "chromium"
|
||||
$BEGINNING/custom1/ binding "<Super>n"
|
||||
|
||||
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
|
||||
|
||||
[ "$(gsettings get org.gnome.shell enabled-extensions)" = "@as []" ] && gsettings set org.gnome.shell enabled-extensions "['user-theme@gnome-shell-extensions.gcampax.github.com']"
|
||||
|
||||
|
||||
mkdir -p ~/.local/share/background
|
||||
curl https://i.imgur.com/YtakXJ2.jpg --output ~/.local/share/background/wallpaper.jpg
|
||||
gsettings set org.gnome.desktop.background picture-uri "file://${HOME}/.local/share/background/wallpaper.jpg"
|
||||
}
|
||||
|
||||
configure_fonts() {
|
||||
gsettings set org.gnome.desktop.interface monospace-font-name "Comic Mono 10"
|
||||
gsettings set org.gnome.desktop.interface font-name "Comic Sans MS 11"
|
||||
gsettings set org.gnome.desktop.wm.preferences titlebar-font "Comic Sans MS Bold 11"
|
||||
}
|
||||
|
||||
install_tela() {
|
||||
git clone https://github.com/vinceliuice/Tela-circle-icon-theme.git tela
|
||||
cd tela
|
||||
chmod +x install.sh
|
||||
./install.sh -a
|
||||
cd ..
|
||||
rm -rf tela
|
||||
}
|
||||
|
||||
[[ ! -z "$(which gnome-shell)" ]] && setup_gnome
|
31
scripts/load_env.sh
Executable file
31
scripts/load_env.sh
Executable file
|
@ -0,0 +1,31 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
BREW_SCRIPT_LINK="https://raw.githubusercontent.com/Homebrew/install/master/install.sh"
|
||||
|
||||
ask() {
|
||||
echo "$@"
|
||||
read RESP
|
||||
}
|
||||
|
||||
|
||||
pkgman() {
|
||||
UNAME="$(uname -s)"
|
||||
if [[ "$UNAME" == "Darwin" ]]; then
|
||||
brew --help || /bin/bash -c "$(curl -fsSL ${BREW_SCRIPT_LINK})"
|
||||
PKGMAN="brew install"
|
||||
DISTRO="MAC"
|
||||
export PATH="$HOME/.local/bin:$HOME/.bin:$PATH:/opt/homebrew/bin:/Users/doman/Library/Python/3.9/bin"
|
||||
else
|
||||
DISTRO=`lsb_release -a | awk '/Description/ {print toupper($2)}'`
|
||||
case "$DISTRO" in
|
||||
ARCH*|MANJARO*|ENDEAVOUR*) PKGMAN="sudo pacman -S --noconfirm" ;;
|
||||
DEBIAN*|UBUNTU*|ELEMENTARY*) PKGMAN="sudo apt-get install -y" ;;
|
||||
FEDORA*|CENTOS*|RHEL*) PKGMAN="sudo yum install -y" ;;
|
||||
*) echo "${DISTRO} not recognized, specify package manager yourself:"; read PKGMAN
|
||||
esac
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
pkgman
|
28
scripts/mac.sh
Executable file
28
scripts/mac.sh
Executable file
|
@ -0,0 +1,28 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
|
||||
setup_macos() {
|
||||
ask "install macos casks? (y/n)"
|
||||
[ "$RESP" != "n" ] && install_macos_casks
|
||||
ask "configure macos? (y/n)"
|
||||
[ "$RESP" != "n" ] && configure_macos
|
||||
}
|
||||
|
||||
|
||||
install_macos_casks() {
|
||||
brew install --cask nextcloud spotify discord messenger openvpn-connect docker maccy geekbench sanesidebuttons amethyst scroll-reverser adguard
|
||||
brew tap homebrew/cask-fonts && brew install --cask font-hack-nerd-font
|
||||
}
|
||||
|
||||
|
||||
configure_macos() {
|
||||
defaults write com.apple.dock expose-animation-duration -float 0.1
|
||||
defaults write -g InitialKeyRepeat -int 12
|
||||
defaults write -g KeyRepeat -int 1
|
||||
defaults write com.apple.Dock autohide-delay -float 0; killall Dock
|
||||
defaults write -g com.apple.mouse.scaling -integer -1
|
||||
}
|
||||
|
||||
|
||||
[[ ! -z "$(which brew)" ]] && setup_macos
|
94
scripts/packages.sh
Normal file
94
scripts/packages.sh
Normal file
|
@ -0,0 +1,94 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
#
|
||||
EXA_LINK="https://github.com/ogham/exa/releases/download/v0.10.0/exa-linux-x86_64-v0.10.0.zip"
|
||||
|
||||
|
||||
assure_has_yay() {
|
||||
if [[ "$DISTRO" =~ ARCH*|MANJARO*|ENDEAVOUR* ]] && [[ -z "$(which yay)" ]]; then
|
||||
sudo pacman -S --needed git base-devel
|
||||
git clone https://aur.archlinux.org/yay.git
|
||||
cd yay
|
||||
makepkg -si
|
||||
cd ..
|
||||
rm -rf yay
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
install_exa() {
|
||||
wget "$EXA_LINK"
|
||||
exa_zip="$(ls exa*)"
|
||||
mkdir -p exa
|
||||
mv $exa_zip exa/
|
||||
cd exa
|
||||
unzip $exa_zip
|
||||
sudo mv bin/exa /usr/local/bin/
|
||||
cd ..
|
||||
rm -rf exa
|
||||
}
|
||||
|
||||
|
||||
packages() {
|
||||
PACKAGES="
|
||||
python3
|
||||
git
|
||||
zsh
|
||||
cmake
|
||||
neofetch
|
||||
htop
|
||||
xclip
|
||||
patch
|
||||
vifm
|
||||
nodejs
|
||||
npm
|
||||
tmux
|
||||
"
|
||||
PIP_PACKAGES="
|
||||
black
|
||||
ipython
|
||||
"
|
||||
|
||||
if [[ "$DISTRO" == "MAC" ]]; then
|
||||
PACKAGES="
|
||||
wget
|
||||
exa
|
||||
neofetch
|
||||
nvim
|
||||
fzf
|
||||
python3
|
||||
gotop
|
||||
node
|
||||
tmux
|
||||
iterm2
|
||||
ripgrep
|
||||
"
|
||||
elif [[ "$DISTRO" =~ ARCH*|MANJARO*|ENDEAVOUR* ]]; then
|
||||
PACKAGES="$PACKAGES
|
||||
procps-ng
|
||||
binutils
|
||||
neovim
|
||||
exa
|
||||
kitty
|
||||
python-pip
|
||||
gnome-shell-extensions
|
||||
chromium
|
||||
"
|
||||
else
|
||||
PACKAGES="$PACKAGES
|
||||
python3-pip
|
||||
vim
|
||||
"
|
||||
install_exa
|
||||
fi
|
||||
}
|
||||
|
||||
install_packages() {
|
||||
${PKGMAN} ${PACKAGES}
|
||||
python3 -m pip install ${PIP_PACKAGES}
|
||||
assure_has_yay
|
||||
}
|
||||
|
||||
packages
|
||||
ask "install avalibe packages? (y/n)"
|
||||
[ "$RESP" != "n" ] && install_packages
|
14
scripts/vim.sh
Normal file
14
scripts/vim.sh
Normal file
|
@ -0,0 +1,14 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
VIM_PLUG_INSTALL="https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
||||
|
||||
setup_vim() {
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs ${VIM_PLUG_INSTALL}
|
||||
vim +PlugInstall +qall
|
||||
git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim
|
||||
git clone git@github.com:ickyicky/astrovim_config.git ~/.config/nvim/lua/user
|
||||
}
|
||||
|
||||
ask "setup vim? (y/n)"
|
||||
[ "$RESP" != "n" ] && setup_vim
|
21
scripts/zsh.sh
Normal file
21
scripts/zsh.sh
Normal file
|
@ -0,0 +1,21 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
ZSH_SYNTAX_REPO="https://github.com/zsh-users/zsh-syntax-highlighting.git"
|
||||
ZSH_SUGGEST_REPO="https://github.com/zsh-users/zsh-autosuggestions"
|
||||
ZSH_BASE_REPO="https://github.com/chriskempson/base16-shell.git"
|
||||
|
||||
|
||||
setup_zsh() {
|
||||
ZSH_PATH=`which zsh`
|
||||
mkdir -p ~/.cache/zsh
|
||||
|
||||
git clone ${ZSH_SUGGEST_REPO} ~/.zsh/zsh-autosuggestions
|
||||
git clone ${ZSH_SYNTAX_REPO} ~/.zsh/zsh-syntax-highlighting
|
||||
git clone ${ZSH_BASE_REPO} ~/.config/base16-shell
|
||||
|
||||
chsh -s ${ZSH_PATH} || sudo usermod --shell ${ZSH_PATH} ${CURRENT_USER} || echo "Setting zsh as default shell failed, do it yourself kiddo"
|
||||
}
|
||||
|
||||
ask "setup zsh? (y/n)"
|
||||
[ "$RESP" != "n" ] && setup_zsh
|
8
setup.sh
Executable file
8
setup.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
#
|
||||
|
||||
. ./scripts/load_env.sh
|
||||
|
||||
for SCRIPT in ./scripts/*.sh; do
|
||||
. $SCRIPT
|
||||
done
|
Loading…
Reference in a new issue