2020-01-05 23:31:43 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-03-14 17:01:29 -05:00
|
|
|
# _
|
|
|
|
# ___ _ __ (_) ___ ___ _ __ _ __
|
|
|
|
# / _ \| '__|| | / __| / _ \ | '_ \ | '__|
|
|
|
|
# | __/| | | || (__ | (_) || | | || |
|
|
|
|
# \___||_| |_| \___| \___/ |_| |_||_|
|
|
|
|
#
|
|
|
|
|
|
|
|
# install script for Void based systems
|
|
|
|
|
2020-01-06 10:14:45 -06:00
|
|
|
function print_help () {
|
|
|
|
echo Look inside for available stuff
|
|
|
|
}
|
|
|
|
|
|
|
|
function base () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
|
|
|
base-system \
|
|
|
|
binutils \
|
|
|
|
cryptsetup \
|
|
|
|
chrony \
|
|
|
|
elogind \
|
|
|
|
fscrypt \
|
|
|
|
gummiboot \
|
|
|
|
sbsigntool \
|
|
|
|
udisks2 \
|
|
|
|
vsv
|
|
|
|
}
|
|
|
|
|
|
|
|
function refind () {
|
|
|
|
xbps-install refind
|
|
|
|
}
|
|
|
|
|
|
|
|
function fonts () {
|
|
|
|
xbps-install \
|
|
|
|
font-awesome5 \
|
|
|
|
font-fira-ttf \
|
|
|
|
font-ibm-plex-ttf \
|
|
|
|
liberation-fonts-ttf \
|
|
|
|
noto-fonts-ttf \
|
|
|
|
noto-fonts-emoji \
|
|
|
|
ttf-bitstream-vera
|
|
|
|
}
|
|
|
|
|
|
|
|
function themes () {
|
|
|
|
xbps-install \
|
|
|
|
breeze \
|
|
|
|
breeze-gtk \
|
|
|
|
breeze-snow-cursor-theme \
|
|
|
|
papirus-icon-theme
|
2020-01-06 10:14:45 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
function wm () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
2020-01-06 10:14:45 -06:00
|
|
|
Waybar \
|
|
|
|
alacritty \
|
|
|
|
brightnessctl \
|
|
|
|
fzf \
|
|
|
|
grim \
|
|
|
|
jq \
|
2020-01-24 14:39:32 -06:00
|
|
|
mako \
|
2020-01-06 10:14:45 -06:00
|
|
|
redshift \
|
|
|
|
slurp \
|
|
|
|
sway \
|
|
|
|
swayidle \
|
|
|
|
swaylock \
|
|
|
|
wl-clipboard \
|
|
|
|
wofi
|
2020-03-22 22:09:52 -05:00
|
|
|
|
|
|
|
fonts
|
|
|
|
themes
|
2020-01-06 10:14:45 -06:00
|
|
|
}
|
|
|
|
|
2020-01-07 11:54:29 -06:00
|
|
|
function audio () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
2020-01-07 11:54:29 -06:00
|
|
|
alsa-utils \
|
|
|
|
playerctl \
|
|
|
|
pulseaudio \
|
|
|
|
pavucontrol
|
|
|
|
}
|
|
|
|
|
2020-03-22 22:09:52 -05:00
|
|
|
function media () {
|
|
|
|
xbps-install \
|
|
|
|
elisa \
|
|
|
|
mpv \
|
|
|
|
spotifyd \
|
|
|
|
spotify-tui
|
|
|
|
}
|
|
|
|
|
2020-01-06 10:14:45 -06:00
|
|
|
function term () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
2020-01-06 10:14:45 -06:00
|
|
|
bat \
|
|
|
|
bmon \
|
2020-01-07 11:54:29 -06:00
|
|
|
fd \
|
2020-01-06 10:14:45 -06:00
|
|
|
fish-shell \
|
|
|
|
htop \
|
|
|
|
mdcat \
|
|
|
|
neovim \
|
|
|
|
python3 \
|
|
|
|
ripgrep \
|
|
|
|
starship \
|
|
|
|
stow \
|
|
|
|
tmux
|
|
|
|
}
|
|
|
|
|
|
|
|
function kicad () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
2020-01-06 10:14:45 -06:00
|
|
|
kicad \
|
|
|
|
kicad-footprints \
|
|
|
|
kicad-library \
|
|
|
|
kicad-packages3D \
|
|
|
|
kicad-symbols \
|
|
|
|
kicad-templates
|
|
|
|
}
|
|
|
|
|
|
|
|
function dev () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
2020-01-06 10:14:45 -06:00
|
|
|
clang \
|
2020-03-22 22:09:52 -05:00
|
|
|
cmake \
|
|
|
|
make \
|
|
|
|
meson \
|
|
|
|
ninja \
|
|
|
|
git \
|
2020-01-06 10:14:45 -06:00
|
|
|
go
|
|
|
|
}
|
|
|
|
|
|
|
|
function emacs () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
2020-01-06 10:14:45 -06:00
|
|
|
emacs-gtk2 \
|
|
|
|
hunspell \
|
|
|
|
hunspell-en_US \
|
|
|
|
hunspell-pt_BR
|
|
|
|
}
|
|
|
|
|
|
|
|
function intel () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
2020-01-06 10:14:45 -06:00
|
|
|
intel-gpu-tools \
|
|
|
|
iwd \
|
|
|
|
libva-intel-driver \
|
|
|
|
intel-media-driver \
|
|
|
|
mesa-intel-dri
|
|
|
|
}
|
|
|
|
|
|
|
|
function qt5 () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install qt5-wayland qt5ct
|
2020-01-06 10:14:45 -06:00
|
|
|
}
|
|
|
|
|
2020-03-22 22:09:52 -05:00
|
|
|
function kde () {
|
2020-01-06 10:14:45 -06:00
|
|
|
qt5
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install qutebrowser konversation pdf.js
|
2020-01-06 10:14:45 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
function mozilla () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install firefox thunderbird
|
2020-01-06 10:14:45 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
function libreoffice () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install \
|
2020-01-06 10:14:45 -06:00
|
|
|
libreoffice \
|
|
|
|
libreoffice-i18n-en-US \
|
|
|
|
libreoffice-i18n-pt-BR
|
|
|
|
}
|
|
|
|
|
|
|
|
function pdf () {
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install zathura zathura-pdf-poppler
|
2020-01-06 10:14:45 -06:00
|
|
|
}
|
|
|
|
|
2020-01-24 14:39:32 -06:00
|
|
|
function flatpak () {
|
2020-03-22 22:09:52 -05:00
|
|
|
sudo xbps-install \
|
2020-01-24 14:39:32 -06:00
|
|
|
flatpak \
|
|
|
|
xdg-desktop-portal \
|
|
|
|
xdg-desktop-portal-gtk \
|
|
|
|
xdg-user-dirs \
|
|
|
|
xdg-user-dirs-gtk \
|
|
|
|
xdg-utils
|
|
|
|
}
|
|
|
|
|
2020-03-22 22:09:52 -05:00
|
|
|
function embedded () {
|
|
|
|
sudo xbps-install \
|
|
|
|
arduino-cli \
|
2020-01-24 14:39:32 -06:00
|
|
|
cross-arm-none-eabi \
|
2020-03-22 22:09:52 -05:00
|
|
|
cross-arm-none-eabi-gdb \
|
|
|
|
openocd
|
2020-01-24 14:39:32 -06:00
|
|
|
}
|
|
|
|
|
2020-01-06 10:14:45 -06:00
|
|
|
# Run function from script:
|
|
|
|
# https://stackoverflow.com/questions/8818119/how-can-i-run-a-function-from-a-script-in-command-line
|
|
|
|
# Check if the function exists (bash specific)
|
|
|
|
if declare -f "$1" > /dev/null
|
|
|
|
then
|
2020-03-22 22:09:52 -05:00
|
|
|
xbps-install -S
|
|
|
|
# call arguments verbatim
|
|
|
|
"$@"
|
2020-01-06 10:14:45 -06:00
|
|
|
else
|
2020-03-22 22:09:52 -05:00
|
|
|
# Show a helpful error
|
|
|
|
echo "'$1' is not a known function name" >&2
|
|
|
|
print_help
|
|
|
|
exit 1
|
2020-01-06 10:14:45 -06:00
|
|
|
fi
|
2020-01-05 23:31:43 -06:00
|
|
|
|