mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
install/fedora.sh: split packages into sections
This commit is contained in:
parent
30f9c92250
commit
e5653ccc10
1 changed files with 45 additions and 14 deletions
|
|
@ -1,16 +1,47 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
sudo dnf install -y \
|
if [ $# -lt 1 ]; then
|
||||||
xorg-x11-xinit \
|
SELECTED=(core i3)
|
||||||
i3 \
|
else
|
||||||
lxappearance \
|
SELECTED=$@
|
||||||
rxvt-unicode \
|
fi
|
||||||
kitty \
|
|
||||||
fish \
|
for sel in "${SELECTED[@]}"; do
|
||||||
ImageMagick \
|
case $sel in
|
||||||
xautolock \
|
"core")
|
||||||
xrandr \
|
sudo dnf install -y \
|
||||||
arandr \
|
xsel \
|
||||||
rofi \
|
fish \
|
||||||
dejavu-fonts-all \
|
kitty \
|
||||||
fontawesome-fonts
|
tmux \
|
||||||
|
xsel \
|
||||||
|
fzf \
|
||||||
|
fswatch
|
||||||
|
;;
|
||||||
|
"nvim")
|
||||||
|
sudo dnf install -y \
|
||||||
|
ripgrep \
|
||||||
|
fswatch \
|
||||||
|
fd-find \
|
||||||
|
neovim
|
||||||
|
;;
|
||||||
|
"i3")
|
||||||
|
sudo dnf install -y \
|
||||||
|
xorg-x11-xinit \
|
||||||
|
i3 \
|
||||||
|
lxappearance \
|
||||||
|
ImageMagick \
|
||||||
|
xautolock \
|
||||||
|
xrandr \
|
||||||
|
arandr \
|
||||||
|
rofi \
|
||||||
|
dejavu-fonts-all \
|
||||||
|
fontawesome-fonts
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Unknown option: $sel"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue