commit 844bb53f0207d02e8940994efbafc897755f6d2e Author: Ian Mancini Date: Sun Apr 12 04:01:28 2020 -0300 Initial commit. Setup scripts diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..420420a --- /dev/null +++ b/.gitignore @@ -0,0 +1,43 @@ +# Created by https://www.gitignore.io/api/vim,linux +# Edit at https://www.gitignore.io/?templates=vim,linux + +### Linux ### +*~ + +# temporary files which can be created if a process still has a handle open of a deleted file +.fuse_hidden* + +# KDE directory preferences +.directory + +# Linux trash folder which might appear on any partition or disk +.Trash-* + +# .nfs files are created when an open file is removed but is still being accessed +.nfs* + +### Vim ### +# Swap +[._]*.s[a-v][a-z] +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist + +# Auto-generated tag files +tags + +# Persistent undo +[._]*.un~ + +# Coc configuration directory +.vim + +# End of https://www.gitignore.io/api/vim,linux diff --git a/setup/install_packages b/setup/install_packages new file mode 100755 index 0000000..55f5deb --- /dev/null +++ b/setup/install_packages @@ -0,0 +1,43 @@ +#!/bin/sh + +set -Eeuo pipefail + +if (( $EUID != 0 )); then + echo "Should be run as root" + exit 1 +fi + +# Setup pacman +read -p ":: Run setup_pacman? [y/N] " setuppacman +setuppacman=${setuppacman:-N} + +if [[ $setuppacman =~ [yY] ]]; then + source "./setup_pacman" +fi + +DEFAULT_STATE="on" + +files="" +for file in $(ls packages); do + files="${files}${file} ${file} ${DEFAULT_STATE} " +done + +answers=$(dialog --no-tags --stdout --checklist "select group of packages to install" 0 0 15 $files) + +if [ $? = 1 ]; then + printf "\n\nAborting...\n" + exit 1 +fi + +printf "\n\nSelected groups: $answers\n\n" + +packages="" + +for answer in $answers; do + p=$(cat ./packages/$answer) + packages="${packages}${p} " +done + +printf "packages: $packages\n\n" + +sudo pacman -Syu $packages diff --git a/setup/packages/3d b/setup/packages/3d new file mode 100644 index 0000000..562fe1d --- /dev/null +++ b/setup/packages/3d @@ -0,0 +1 @@ +blender diff --git a/setup/packages/accessories b/setup/packages/accessories new file mode 100644 index 0000000..c20e450 --- /dev/null +++ b/setup/packages/accessories @@ -0,0 +1 @@ +scrot diff --git a/setup/packages/archives b/setup/packages/archives new file mode 100644 index 0000000..677bd6e --- /dev/null +++ b/setup/packages/archives @@ -0,0 +1 @@ +unzip zip unrar p7zip xarchiver diff --git a/setup/packages/arduino b/setup/packages/arduino new file mode 100644 index 0000000..75ebde9 --- /dev/null +++ b/setup/packages/arduino @@ -0,0 +1 @@ +arduino arduino-docs arduino-avr-core diff --git a/setup/packages/avahi b/setup/packages/avahi new file mode 100644 index 0000000..ee64937 --- /dev/null +++ b/setup/packages/avahi @@ -0,0 +1 @@ +avahi nss-mdns diff --git a/setup/packages/bash b/setup/packages/bash new file mode 100644 index 0000000..927a871 --- /dev/null +++ b/setup/packages/bash @@ -0,0 +1 @@ +bash bash-completion diff --git a/setup/packages/cad-electronics b/setup/packages/cad-electronics new file mode 100644 index 0000000..6c8af82 --- /dev/null +++ b/setup/packages/cad-electronics @@ -0,0 +1 @@ +kicad kicad-library diff --git a/setup/packages/cad-solid b/setup/packages/cad-solid new file mode 100644 index 0000000..b311040 --- /dev/null +++ b/setup/packages/cad-solid @@ -0,0 +1 @@ +openscad diff --git a/setup/packages/core b/setup/packages/core new file mode 100644 index 0000000..96f097a --- /dev/null +++ b/setup/packages/core @@ -0,0 +1 @@ +base base-devel linux linux-firmware diff --git a/setup/packages/cpu-amd b/setup/packages/cpu-amd new file mode 100644 index 0000000..35a60e1 --- /dev/null +++ b/setup/packages/cpu-amd @@ -0,0 +1 @@ +amd-ucode diff --git a/setup/packages/cpu-intel b/setup/packages/cpu-intel new file mode 100644 index 0000000..2052a8a --- /dev/null +++ b/setup/packages/cpu-intel @@ -0,0 +1 @@ +intel-ucode diff --git a/setup/packages/development b/setup/packages/development new file mode 100644 index 0000000..1ceff82 --- /dev/null +++ b/setup/packages/development @@ -0,0 +1 @@ +neovim git git-lfs the_silver_searcher python-pynvim wmctrl diff --git a/setup/packages/documents b/setup/packages/documents new file mode 100644 index 0000000..02772bf --- /dev/null +++ b/setup/packages/documents @@ -0,0 +1 @@ +zathura zathura-pdf-mupdf zathura-cb diff --git a/setup/packages/filemanagers b/setup/packages/filemanagers new file mode 100644 index 0000000..10709d7 --- /dev/null +++ b/setup/packages/filemanagers @@ -0,0 +1 @@ +ranger nnn pcmanfm gvfs diff --git a/setup/packages/filesystem b/setup/packages/filesystem new file mode 100644 index 0000000..333743a --- /dev/null +++ b/setup/packages/filesystem @@ -0,0 +1 @@ +ntfs-3g diff --git a/setup/packages/fonts b/setup/packages/fonts new file mode 100644 index 0000000..6d58c01 --- /dev/null +++ b/setup/packages/fonts @@ -0,0 +1 @@ +tamsyn-font dina-font ttf-dejavu ttf-liberation adobe-source-sans-pro-fonts adobe-source-code-pro-fonts ttf-ubuntu-font-family ttf-fira-sans noto-fonts-emoji diff --git a/setup/packages/ftp b/setup/packages/ftp new file mode 100644 index 0000000..21fb2f8 --- /dev/null +++ b/setup/packages/ftp @@ -0,0 +1 @@ +filezilla diff --git a/setup/packages/games b/setup/packages/games new file mode 100644 index 0000000..f7145d4 --- /dev/null +++ b/setup/packages/games @@ -0,0 +1 @@ +steam diff --git a/setup/packages/gnupg b/setup/packages/gnupg new file mode 100644 index 0000000..4bf62c4 --- /dev/null +++ b/setup/packages/gnupg @@ -0,0 +1 @@ +gnupg pinentry diff --git a/setup/packages/gparted b/setup/packages/gparted new file mode 100644 index 0000000..66a63c3 --- /dev/null +++ b/setup/packages/gparted @@ -0,0 +1 @@ +gparted diff --git a/setup/packages/gpu-amd b/setup/packages/gpu-amd new file mode 100644 index 0000000..4971fa2 --- /dev/null +++ b/setup/packages/gpu-amd @@ -0,0 +1 @@ +mesa xf86-video-amdgpu vulkan-radeon libva-mesa-driver mesa-vdpau lib32-mesa lib32-vulkan-radeon lib32-libva-mesa-driver lib32-mesa-vdpau diff --git a/setup/packages/gpu-nvidia b/setup/packages/gpu-nvidia new file mode 100644 index 0000000..cfbf942 --- /dev/null +++ b/setup/packages/gpu-nvidia @@ -0,0 +1 @@ +nvidia diff --git a/setup/packages/gpu-nvidia-bumblebee b/setup/packages/gpu-nvidia-bumblebee new file mode 100644 index 0000000..2e89b17 --- /dev/null +++ b/setup/packages/gpu-nvidia-bumblebee @@ -0,0 +1 @@ +bumblebee bbswitch mesa primus lib32-virtualgl lib32-nvidia-utils lib32-primus diff --git a/setup/packages/grub b/setup/packages/grub new file mode 100644 index 0000000..89fed2b --- /dev/null +++ b/setup/packages/grub @@ -0,0 +1 @@ +grub efibootmgr diff --git a/setup/packages/i3 b/setup/packages/i3 new file mode 100644 index 0000000..b0f2074 --- /dev/null +++ b/setup/packages/i3 @@ -0,0 +1 @@ +dmenu rofi i3-gaps i3status diff --git a/setup/packages/imageedit b/setup/packages/imageedit new file mode 100644 index 0000000..aa8edef --- /dev/null +++ b/setup/packages/imageedit @@ -0,0 +1 @@ +imagemagick gimp krita diff --git a/setup/packages/images b/setup/packages/images new file mode 100644 index 0000000..875156c --- /dev/null +++ b/setup/packages/images @@ -0,0 +1 @@ +feh diff --git a/setup/packages/indexing b/setup/packages/indexing new file mode 100644 index 0000000..17c5c47 --- /dev/null +++ b/setup/packages/indexing @@ -0,0 +1 @@ +mlocate diff --git a/setup/packages/laptop b/setup/packages/laptop new file mode 100644 index 0000000..45efbac --- /dev/null +++ b/setup/packages/laptop @@ -0,0 +1 @@ +acpi tlp diff --git a/setup/packages/latex b/setup/packages/latex new file mode 100644 index 0000000..2ad86ce --- /dev/null +++ b/setup/packages/latex @@ -0,0 +1 @@ +texlive-most biber diff --git a/setup/packages/networking b/setup/packages/networking new file mode 100644 index 0000000..8b0eaf7 --- /dev/null +++ b/setup/packages/networking @@ -0,0 +1 @@ +networkmanager diff --git a/setup/packages/notifications b/setup/packages/notifications new file mode 100644 index 0000000..053749f --- /dev/null +++ b/setup/packages/notifications @@ -0,0 +1 @@ +dunst diff --git a/setup/packages/office b/setup/packages/office new file mode 100644 index 0000000..63a39a7 --- /dev/null +++ b/setup/packages/office @@ -0,0 +1 @@ +libreoffice diff --git a/setup/packages/printing b/setup/packages/printing new file mode 100644 index 0000000..26d953d --- /dev/null +++ b/setup/packages/printing @@ -0,0 +1 @@ +cups cups-pdf gtk3-print-backends diff --git a/setup/packages/procesing b/setup/packages/procesing new file mode 100644 index 0000000..0f4bb4b --- /dev/null +++ b/setup/packages/procesing @@ -0,0 +1 @@ +processing jdk8-openjdk jre8-openjdk diff --git a/setup/packages/pulseaudio b/setup/packages/pulseaudio new file mode 100644 index 0000000..478a1be --- /dev/null +++ b/setup/packages/pulseaudio @@ -0,0 +1 @@ +pulseaudio pulseaudio-alsa pulseaudio-bluetooth pavucontrol diff --git a/setup/packages/python b/setup/packages/python new file mode 100644 index 0000000..4ea481a --- /dev/null +++ b/setup/packages/python @@ -0,0 +1 @@ +python python-pipenv pyenv python-jedi flake8 diff --git a/setup/packages/qemu b/setup/packages/qemu new file mode 100644 index 0000000..208a3b7 --- /dev/null +++ b/setup/packages/qemu @@ -0,0 +1 @@ +ovmf qemu spice spice-gtk spice-protocol diff --git a/setup/packages/samba b/setup/packages/samba new file mode 100644 index 0000000..edffa36 --- /dev/null +++ b/setup/packages/samba @@ -0,0 +1 @@ +samba gvfs-smb diff --git a/setup/packages/ssh b/setup/packages/ssh new file mode 100644 index 0000000..48d9266 --- /dev/null +++ b/setup/packages/ssh @@ -0,0 +1 @@ +openssh rsync keyring diff --git a/setup/packages/vectoredit b/setup/packages/vectoredit new file mode 100644 index 0000000..722759e --- /dev/null +++ b/setup/packages/vectoredit @@ -0,0 +1 @@ +inkscape diff --git a/setup/packages/videoedit b/setup/packages/videoedit new file mode 100644 index 0000000..6c49097 --- /dev/null +++ b/setup/packages/videoedit @@ -0,0 +1 @@ +ffmpeg obs-studio diff --git a/setup/packages/videos b/setup/packages/videos new file mode 100644 index 0000000..b6d0c36 --- /dev/null +++ b/setup/packages/videos @@ -0,0 +1 @@ +mpv diff --git a/setup/packages/wacom b/setup/packages/wacom new file mode 100644 index 0000000..9a09d75 --- /dev/null +++ b/setup/packages/wacom @@ -0,0 +1 @@ +xf86-input-wacom diff --git a/setup/packages/web b/setup/packages/web new file mode 100644 index 0000000..5a169ac --- /dev/null +++ b/setup/packages/web @@ -0,0 +1 @@ +chromium firefox w3m diff --git a/setup/packages/xorg b/setup/packages/xorg new file mode 100644 index 0000000..0776725 --- /dev/null +++ b/setup/packages/xorg @@ -0,0 +1 @@ +xorg xclip xorg-xinit xorg-xbacklight arandr xdo xdotool diff --git a/setup/packages/zsh b/setup/packages/zsh new file mode 100644 index 0000000..6abed4f --- /dev/null +++ b/setup/packages/zsh @@ -0,0 +1 @@ +zsh zsh-completions diff --git a/setup/setup_pacman b/setup/setup_pacman new file mode 100755 index 0000000..100efab --- /dev/null +++ b/setup/setup_pacman @@ -0,0 +1,33 @@ +#!/bin/sh + +set -Eeuo pipefail + +if (( $EUID != 0 )); then + echo "Should be run as root" + exit 1 +fi + +# Enable multilib? +read -p ":: Enable multilib? [Y/n] " enablemultilib +enablemultilib=${enablemultilib:-Y} + +if [[ $enablemultilib =~ [yY] ]]; then + echo "Enabling multilib" + + if ! grep -q "^\[multilib\]" /etc/pacman.conf; then + cat >> /etc/pacman.conf <