diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-20 12:31:58 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2024-01-20 12:31:58 -0500 |
| commit | e2a0cf2a79b43f9f86b74270f3d96fe300687804 (patch) | |
| tree | a87edf55f81e78f4d0968d6f006562090260e068 /distro/arch.sh | |
| parent | ec83443853116b07f18fbef8c6de31cf157939a0 (diff) | |
| download | dotfiles-e2a0cf2a79b43f9f86b74270f3d96fe300687804.tar.gz dotfiles-e2a0cf2a79b43f9f86b74270f3d96fe300687804.tar.xz | |
Cleanup unused files and code.
Diffstat (limited to 'distro/arch.sh')
| -rw-r--r-- | distro/arch.sh | 191 |
1 files changed, 191 insertions, 0 deletions
diff --git a/distro/arch.sh b/distro/arch.sh new file mode 100644 index 0000000..792110f --- /dev/null +++ b/distro/arch.sh @@ -0,0 +1,191 @@ +#!/bin/sh +set -e +if [ "$(id -u)" -ne 0 ] ; then + echo "Run as root" + exit 1; +fi + +pkgs=" +base +linux +linux-zen +linux-firmware +vim +lvm2 +xfsprogs +gdisk +dosfstools +btrfs-progs +networkmanager +wireless_tools +xorg-server +lightdm +lightdm-gtk-greeter +base-devel +libconfig # dmenu-pinentry +neovim +git +picom +chromium +firefox +openssh +feh +qt5ct # https://wiki.archlinux.org/title/qt#Appearance +oxygen +oxygen-icons +oxygen-icons-svg +pass +pass-otp +xclip +redshift +pulseaudio +pavucontrol +xorg-apps +alsa-utils +usbutils +tmux +vlc +xdotool +podman +gimp +rlwrap # used for clj +lxappearance +gdb +mandoc +man-pages +libfido2 +scrot +rsync +shellcheck +fuse +net-tools +efibootmgr +evolution +arandr +seahorse +mpd +ncmpc +noto-fonts-emoji +the_silver_searcher +pwgen +openbsd-netcat +bluez-utils +bluez +pulseaudio-bluetooth +bluez-tools +python-pip +python-pyscard # for pip3 install --user ykman +swig # ykman +dunst +buildah +sipcalc +docker +ansible +jdk11-openjdk +jdk8-openjdk +libvirt # If you want +virt-manager +qemu +nsd # for drill a dig replacement +rclone +git-lfs +avr-gcc +avr-libc +multipath-tools # kpartx +ctags +smartmontools +gpa +xfce4 +xfce4-goodies +picard # musicbrainz +inkscape +ncdu +nm-connection-editor +speedtest-cli +iperf3 +ntfs-3g +pv +exfat-utils +zstd +bind +evince +nload +iotop +hdparm +wlroots +fuzzel +wl-clipboard +pixz +minisign +ncspot +avaihd +colordiff +ethtool +kdenlive +zathura +zathura-pdf +zathura-mupdf +zathura-pdf-mupdf +zathura-ps +zathura-djvu +neofetch +wireguard +wireguard-tools +cmake +dia +ed +htop +whois +shellcheck +xournalpp +libxcb +xorg-xwayland +libxkbcommon +wayland-protocols" + +# pacman -S "$(echo "$pkgs" | awk '{print $1}' | tr '\n' ' ')" + +fn="/etc/systemd/logind.conf" +bak="$fn.$(date +%s)" +cp "$fn" "$bak" +ed "$fn" <<EOF +/^\[Login +/^KillUserProcesses= +d +i +KillUserProcesses=yes +. +/^HandleLidSwitch= +d +i +HandleLidSwitch=ignore +. +w +q +EOF +if diff -q "$fn" "$bak" >/dev/null ; then + rm "$bak" +fi + + +cat > /etc/udev/rules.d/99-removable.rules <<EOF +# /etc/udev/rules.d/99-removable.rules +ACTION=="add", SUBSYSTEM=="thunderbolt", ATTR{authorized}=="0", ATTR{authorized}="1" +EOF + + +cat > /etc/pacman.d/hooks/95-bootbackup.hook <<EOF +# /etc/pacman.d/hooks/95-bootbackup.hook +[Trigger] +Operation = Upgrade +Operation = Install +Operation = Remove +Type = Path +Target = usr/lib/modules/*/vmlinuz + +[Action] +Depends = rsync +Description = Backing up /boot... +When = PostTransaction +Exec = /bin/sh -c 'tar -C / -cf /.bootbackup."\$(date +%m.%d.%Y)".tar boot' +EOF |
