artix changes plus other things
This commit is contained in:
parent
abad8486de
commit
8f11fc9500
@ -14,23 +14,26 @@ mkdir -p $HOME/bin # executables
|
|||||||
mkdir -p $HOME/src # source code
|
mkdir -p $HOME/src # source code
|
||||||
|
|
||||||
if [ $1 = "arch" ]; then
|
if [ $1 = "arch" ]; then
|
||||||
# this enables the multilib repo. may fuck shit up.
|
sudo bash arch_enable-multilib.sh
|
||||||
sudo printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' >>/etc/pacman.conf
|
|
||||||
|
|
||||||
# because of this right here packages/all should have a trailing
|
sudo pacman -S $(cat packages/all packages/*arch_pacman*)
|
||||||
# newline
|
|
||||||
sudo pacman -S $(cat packages/all packages/arch_pacman)
|
|
||||||
|
|
||||||
bash arch_yay.sh
|
bash arch_yay.sh
|
||||||
yay -S $(cat packages/arch_yay)
|
yay -S $(cat packages/*arch_yay*)
|
||||||
|
|
||||||
# PKGBUILD to symlink sudo to doas
|
bash doas-sudo.sh arch
|
||||||
# sudo is provided by base-devel so this has to be done after the
|
# you can undo this with pacman -S sudo
|
||||||
# pacman stuff. however, it might be beneficial to do this before the
|
|
||||||
# yay stuff so it doesn't constantly prompt for the sudo password.
|
elif [ $1 = "artix" ]; then
|
||||||
# all depends on how careful you wanna be.
|
sudo bash arch_enable-multilib.sh
|
||||||
bash arch_doas-sudo.sh
|
|
||||||
# btw, you can undo this with pacman -S sudo
|
sudo pacman -S $(cat packages/all packages/*artix_pacman*)
|
||||||
|
|
||||||
|
bash arch_yay.sh
|
||||||
|
yay -S $(cat packages/*artix_yay*)
|
||||||
|
|
||||||
|
bash doas-sudo.sh arch
|
||||||
|
# you can undo this with pacman -S sudo
|
||||||
|
|
||||||
elif [ $1 = "debian" ]; then
|
elif [ $1 = "debian" ]; then
|
||||||
|
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
set -e
|
|
||||||
source ./cdecho.sh
|
|
||||||
|
|
||||||
mkdir -p $HOME/src/doas-sudo
|
|
||||||
cp PKGBUILD_doas-sudo $HOME/src/doas-sudo/PKGBUILD
|
|
||||||
|
|
||||||
cde $HOME/src/doas-sudo
|
|
||||||
makepkg -si
|
|
9
dotfiles-old/scripts/arch_enable-multilib.sh
Executable file
9
dotfiles-old/scripts/arch_enable-multilib.sh
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# must be run as root
|
||||||
|
|
||||||
|
if [ $1 = "artix" ]; then
|
||||||
|
printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist-arch\n' >>/etc/pacman.conf
|
||||||
|
else
|
||||||
|
printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' >>/etc/pacman.conf
|
||||||
|
fi
|
2
dotfiles-old/scripts/arch_yay.sh
Normal file → Executable file
2
dotfiles-old/scripts/arch_yay.sh
Normal file → Executable file
@ -4,7 +4,7 @@ set -e
|
|||||||
source ./cdecho.sh
|
source ./cdecho.sh
|
||||||
|
|
||||||
cde $HOME/src
|
cde $HOME/src
|
||||||
git clone https://aur.archlinux.org/yay.git
|
git clone https://aur.archlinux.org/yay.git || git pull
|
||||||
cde yay
|
cde yay
|
||||||
makepkg -si
|
makepkg -si
|
||||||
yay -V
|
yay -V
|
||||||
|
12
dotfiles-old/scripts/doas-sudo.sh
Executable file
12
dotfiles-old/scripts/doas-sudo.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
source ./cdecho.sh
|
||||||
|
|
||||||
|
if [ $1 = "arch" ]; then
|
||||||
|
mkdir -p $HOME/src/doas-sudo
|
||||||
|
cp PKGBUILD_doas-sudo $HOME/src/doas-sudo/PKGBUILD
|
||||||
|
|
||||||
|
cde $HOME/src/doas-sudo
|
||||||
|
makepkg -si
|
||||||
|
fi
|
@ -36,6 +36,6 @@ printf $SHABANG"xrandr --output VGA-1 --off\n" >vgaoff
|
|||||||
printf $SHABANG"youtube-dl --add-metadata -i -o \"$HOME/%%(upload_date)s %%(title)s.%%(ext)s\" \"\$@\"\n" >youtube-dlo
|
printf $SHABANG"youtube-dl --add-metadata -i -o \"$HOME/%%(upload_date)s %%(title)s.%%(ext)s\" \"\$@\"\n" >youtube-dlo
|
||||||
printf $SHABANG"youtube-dlo -f \"bestvideo[vcodec=vp9]+bestaudio[acodec=opus]\" \"\$@\"\n" >youtube-dlp
|
printf $SHABANG"youtube-dlo -f \"bestvideo[vcodec=vp9]+bestaudio[acodec=opus]\" \"\$@\"\n" >youtube-dlp
|
||||||
printf $SHABANG"youtube-dlp -f \$(youtube-dl -F \$1 | 9 tail +4 | dmenu -p \"Choose a format.\" -l 20 | asplit - SP 0) \"\$@\"\n" >youtube-dl-interactive
|
printf $SHABANG"youtube-dlp -f \$(youtube-dl -F \$1 | 9 tail +4 | dmenu -p \"Choose a format.\" -l 20 | asplit - SP 0) \"\$@\"\n" >youtube-dl-interactive
|
||||||
printf $SHABANG"youtube-dl-interactive \"\$@\" -o - | mpv -\n" >youtube-mpv
|
printf $SHABANG"youtube-dl-interactive \"\$@\" -o - | mpv -\n" >youtube-dl-mpv
|
||||||
|
|
||||||
ls && [ $(printf "Yes.\nNo." | dmenu -p "Any risky files?") = "No." ] && printf "Making executable.\n" && chmod +x *
|
ls && [ $(printf "Yes.\nNo." | dmenu -p "Any risky files?") = "No." ] && printf "Making executable.\n" && chmod +x *
|
||||||
|
Loading…
Reference in New Issue
Block a user