70 lines
1.2 KiB
Bash
70 lines
1.2 KiB
Bash
#!/bin/bash
|
|
|
|
JAVA=false
|
|
WORK=false
|
|
|
|
PPAS=(
|
|
"kelleyk/emacs"
|
|
"git-core/ppa"
|
|
"fish-shell/release-3"
|
|
)
|
|
|
|
PACKAGES=(
|
|
gnome-tweak-tool
|
|
emacs26
|
|
vim
|
|
fish
|
|
ripgrep
|
|
fd-find
|
|
clang
|
|
git
|
|
curl
|
|
fzf
|
|
ncdu
|
|
autojump
|
|
direnv
|
|
tmux
|
|
python3-venv
|
|
)
|
|
|
|
if [ "$JAVA" == "true" ]; then
|
|
wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add -
|
|
sudo add-apt-repository -y 'deb https://apt.corretto.aws stable main'
|
|
PACKAGES+=(java-11-amazon-corretto-jdk)
|
|
fi
|
|
|
|
if [ "$WORK" == "true" ]; then
|
|
PACKAGES+=(
|
|
# VPN
|
|
"libpam0g:i386"
|
|
"libx11-6:i386"
|
|
"libstdc++6:i386"
|
|
"libstdc++5:i386"
|
|
libnss3-tools
|
|
openssl xterm
|
|
)
|
|
fi
|
|
|
|
for ppa in "${PPAS[@]}"
|
|
do
|
|
sudo add-apt-repository -y ppa:$ppa
|
|
done
|
|
|
|
sudo apt update
|
|
sudo apt install -y ${PACKAGES[@]}
|
|
|
|
# Alt-drag
|
|
gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Alt>'
|
|
gsettings set org.gnome.desktop.wm.preferences resize-with-right-button true
|
|
|
|
# Caps Lock -> Ctrl
|
|
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:nocaps']"
|
|
|
|
# Use local time so as to not conflict with Windows
|
|
timedatectl set-local-rtc 1 --adjust-system-clock
|
|
|
|
# Change default shell
|
|
sudo chsh -s /usr/bin/fish $USER
|
|
|
|
bash ~/.dotfiles/setup_unix_common.sh
|