diff options
author | ryo <ryo@nopwd.lol> | 2025-03-02 14:18:20 +0000 |
---|---|---|
committer | ryo <ryo@nopwd.lol> | 2025-03-02 14:18:20 +0000 |
commit | 9b8855688aff1ee354fbaa7430f03209692ee0d0 (patch) | |
tree | 4047a154499e5e65622623dcd140b41476bac6a6 /setup.sh | |
parent | e602a23c7ecdc315da15dd6331e96bba50b9bf39 (diff) |
setup.sh: read package names from a file
shell: clean up in aliases to keep it simple
tmux: added two shortcuts
Diffstat (limited to 'setup.sh')
-rwxr-xr-x | setup.sh | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -27,15 +27,16 @@ install() { source /etc/os-release distro="${NAME:-${DISTRIB_ID}}" distro_install="" + pkglist="" case $distro in - "Arch Linux") distro_install="pacman -S --needed" ;; + "Arch Linux") + distro_install="pacman -S --needed" + pkglist="arch-pkglist.txt" + ;; *) echo "Distro not supported"; exit ;; esac - sudo $distro_install rofi alacritty i3 i3blocks zsh neovim tmux firefox \ - base-devel xorg-xinit xwallpaper ttf-hack ttf-liberation dunst dash \ - zathura zathura-pdf-poppler pulseaudio pamixer brightnessctl \ - opendoas xorg-setxkbmap + sudo $distro_install $(cat $pkglist) [[ "$?" -ne 0 ]] && exit |