From 0528f163ff1bd793ee3be1a1a92ff28357d39b53 Mon Sep 17 00:00:00 2001 From: devenblake Date: Wed, 30 Dec 2020 20:28:46 -0500 Subject: [PATCH] Install scripts --- dotfiles-old/scripts/README.txt | 21 ++++++++++ dotfiles-old/scripts/bootstrap.txt | 7 ++++ dotfiles-old/scripts/cdecho.sh | 4 ++ dotfiles-old/scripts/dotfiles.sh | 42 +++++++++++++++++++ dotfiles-old/scripts/packages-arch-pacman.txt | 7 ++++ dotfiles-old/scripts/packages-arch-yay.txt | 11 +++++ dotfiles-old/scripts/packages-debian-apt.txt | 1 + dotfiles-old/scripts/packages-pip.txt | 1 + dotfiles-old/scripts/packages.txt | 35 ++++++++++++++++ dotfiles-old/scripts/yay.sh | 10 +++++ 10 files changed, 139 insertions(+) create mode 100644 dotfiles-old/scripts/README.txt create mode 100644 dotfiles-old/scripts/bootstrap.txt create mode 100644 dotfiles-old/scripts/cdecho.sh create mode 100644 dotfiles-old/scripts/dotfiles.sh create mode 100644 dotfiles-old/scripts/packages-arch-pacman.txt create mode 100644 dotfiles-old/scripts/packages-arch-yay.txt create mode 100644 dotfiles-old/scripts/packages-debian-apt.txt create mode 100644 dotfiles-old/scripts/packages-pip.txt create mode 100644 dotfiles-old/scripts/packages.txt create mode 100644 dotfiles-old/scripts/yay.sh diff --git a/dotfiles-old/scripts/README.txt b/dotfiles-old/scripts/README.txt new file mode 100644 index 0000000..236e975 --- /dev/null +++ b/dotfiles-old/scripts/README.txt @@ -0,0 +1,21 @@ +#!/bin/bash + +set -e + +# dotfiles/scripts +# Basic scripts to rebuild a system. +# Usage: +# bash README.txt arch + +# bootstrap.txt - bare minimum programs. Necessary for system use. +# Install these before running this script. +# packages.txt - packages available in most package managers. +# packages-distro-manager.txt - packages not available in every manager. + +if [ $1 = "arch" ]; then + sudo pacman -S $(cat packages.txt packages-arch-pacman.txt) + bash yay.sh # builds yay for use with Arch Linux. + yay -S $(cat packages-arch-yay) +fi + +bash dotfiles.sh diff --git a/dotfiles-old/scripts/bootstrap.txt b/dotfiles-old/scripts/bootstrap.txt new file mode 100644 index 0000000..9c9e342 --- /dev/null +++ b/dotfiles-old/scripts/bootstrap.txt @@ -0,0 +1,7 @@ +bash +coreutils +gcc +git +less +make +nano diff --git a/dotfiles-old/scripts/cdecho.sh b/dotfiles-old/scripts/cdecho.sh new file mode 100644 index 0000000..7aeac50 --- /dev/null +++ b/dotfiles-old/scripts/cdecho.sh @@ -0,0 +1,4 @@ +cde() { + cd $1 + printf "Entered %s.\n" $(pwd) +} diff --git a/dotfiles-old/scripts/dotfiles.sh b/dotfiles-old/scripts/dotfiles.sh new file mode 100644 index 0000000..cccf002 --- /dev/null +++ b/dotfiles-old/scripts/dotfiles.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +# could be more succinct in places but it works + +source ./cdecho.sh + +# retrieve dotfiles +cde $HOME/src +git clone https://github.com/devenblake/dotfiles.git +cde dotfiles + +# unscii +curl http://pelulamu.net/unscii/unscii-16-full.ttf -o $HOME/.local/share/fonts/unscii-16-full.ttf +fc-cache + +# basic configs +cp {.Xresources,.aliases,.bashrc,.profile} $HOME/ + +# dmenu +cde $HOME/src +git clone https://git.suckless.org/dmenu +cde dmenu +cp $HOME/dotfiles/src/dmenu/config.h ./ +make +[ "Yes." = $(printf "No.\nYes." | ./dmenu -p "Install dmenu?") ] && sudo make install + +# i3wm +mkdir $HOME/.config/i3 +mkdir $HOME/.config/i3status +cde $HOME/.config/ +cp $HOME/src/dotfiles/.config/i3/config i3/ +cp $HOME/src/dotfiles/.config/i3status/config i3status/ + +# winamp skin (checks to see if audacious is installed first) +sudo mkdir -p /usr/share/audacious/Skins/ +which audacious && sudo curl https://archive.org/download/winampskin_Sailor_Moon_Gang/Sailor_Moon_Gang.wsz -o /usr/share/audacious/Skins/Sailor_Moon_Gang.wsz + +# wallpaper +mkdir -p $HOME/Pictures/Wallpapers +curl https://ia801502.us.archive.org/3/items/asuka-98/Asuka%2098.jpg -o Pictures/Wallpapers/Asuka\ 98.jpg + +xrdb -load .Xresources diff --git a/dotfiles-old/scripts/packages-arch-pacman.txt b/dotfiles-old/scripts/packages-arch-pacman.txt new file mode 100644 index 0000000..859f9d9 --- /dev/null +++ b/dotfiles-old/scripts/packages-arch-pacman.txt @@ -0,0 +1,7 @@ +iw +iwd +iwgtk +jre11-openjdk +jre8-openjdk +lastpass-cli +python-pip diff --git a/dotfiles-old/scripts/packages-arch-yay.txt b/dotfiles-old/scripts/packages-arch-yay.txt new file mode 100644 index 0000000..51ad36f --- /dev/null +++ b/dotfiles-old/scripts/packages-arch-yay.txt @@ -0,0 +1,11 @@ +doas +google-chrome +gzdoom +i3-gaps +i3-swallow +minecraft-launcher +moon-buggy +spotify +steam +tor-browser +zoom diff --git a/dotfiles-old/scripts/packages-debian-apt.txt b/dotfiles-old/scripts/packages-debian-apt.txt new file mode 100644 index 0000000..cd3cf3e --- /dev/null +++ b/dotfiles-old/scripts/packages-debian-apt.txt @@ -0,0 +1 @@ +build-essential diff --git a/dotfiles-old/scripts/packages-pip.txt b/dotfiles-old/scripts/packages-pip.txt new file mode 100644 index 0000000..12570ed --- /dev/null +++ b/dotfiles-old/scripts/packages-pip.txt @@ -0,0 +1 @@ +youtube-dl diff --git a/dotfiles-old/scripts/packages.txt b/dotfiles-old/scripts/packages.txt new file mode 100644 index 0000000..081dc9e --- /dev/null +++ b/dotfiles-old/scripts/packages.txt @@ -0,0 +1,35 @@ +audacious +blender +curl +dhcpd +dvdbackup +feh +ffmpeg +firefox +gparted +gwenview +htop +iptables +iputils +k3b +kate +kdenlive +krita +lynx +macchanger +moreutils +mpv +python3 +qbittorrent +s-tui +sed +vi +virtualbox +vlc +wget +which +wireshark-cli +xclip +xpdf +xscreensaver +xterm diff --git a/dotfiles-old/scripts/yay.sh b/dotfiles-old/scripts/yay.sh new file mode 100644 index 0000000..69bdc7f --- /dev/null +++ b/dotfiles-old/scripts/yay.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +set -e +source ./cdecho.sh + +cde $HOME/src +git clone https://aur.archlinux.org/yay.git +cde yay +makepkg -Si +yay -V