1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-12-27 23:46:42 +00:00
dotfiles/bin/setup

76 lines
3.3 KiB
Plaintext
Raw Normal View History

#!/bin/sh
set -e
2024-10-24 22:28:49 +00:00
alias g=git l='ln -s' p='s pacman --noconfirm' s=sudo t='s tee -a' w=wget
2024-10-25 16:18:45 +00:00
if command -v doas; then
alias s='doas'
fi
2023-04-09 03:46:35 +00:00
2023-12-05 17:34:37 +00:00
s pacman-key --recv-key 3056513887B78AEB --keyserver keyserver.ubuntu.com
s pacman-key --lsign-key 3056513887B78AEB
2024-10-24 22:28:49 +00:00
p -U 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-keyring.pkg.tar.zst' 'https://cdn-mirror.chaotic.cx/chaotic-aur/chaotic-mirrorlist.pkg.tar.zst'
s pacman-key --recv BC26F752D25B92CE272E0F44F7FD5492264BB9D0 --keyserver keyserver.ubuntu.com
s pacman-key --lsign BC26F752D25B92CE272E0F44F7FD5492264BB9D0
2024-10-24 22:28:49 +00:00
p -U 'https://pkg.devkitpro.org/devkitpro-keyring.pkg.tar.xz'
2024-10-25 16:18:45 +00:00
t /etc/pacman.conf < ~/.dotfiles/arch/pacman.conf
2024-10-25 16:18:45 +00:00
echo permit nopass :wheel | t /etc/doas.conf
2024-10-24 22:28:49 +00:00
p -Syu
2024-10-25 16:18:45 +00:00
#shellcheck disable=SC2046
p -S --needed $(grep -v devkit ~/.dotfiles/arch/packages)
2024-10-24 22:28:49 +00:00
yay -S pandoc-bin shellcheck-bin --noconfirm
2024-10-25 16:18:45 +00:00
cp ~/.dotfiles/arch/dwarfs-universal /tmp/PKGBUILD
makepkg -srD /tmp
p -U /tmp/*.tar.zst
t /etc/pacman.conf < ~/.dotfiles/arch/devkitpro.conf
echo kernel.core_pattern=/dev/null | t /etc/sysctl.d/50-coredump.conf
echo options i915 enable_rc6=1 enable_fbc=1 lvds_downclock=1 enable__psr=1 | t /etc/modprobe.d/i915.conf
2024-10-25 16:18:45 +00:00
if bootctl status | grep systemd-boot; then
echo options lsm=landlock,lockdown,yama,integrity,apparmor,bpf | t /boot/loader/entries/*.conf
fi
2021-10-27 06:58:27 +00:00
mkdir -p ~/.parallel/will-cite ~/.config/aria2
stow --no-folding -d ~/.dotfiles -t ~/.config .
2024-07-16 22:02:30 +00:00
~/.dotfiles/bin/config.fish
2024-10-25 16:18:45 +00:00
s chsh -s "$(grep -m1 bin/fish /etc/shells)" "$USER"
2024-07-01 15:25:37 +00:00
w https://github.com/dracula/kitty/raw/master/dracula.conf -P ~/.config/kitty
w https://github.com/dracula/musikcube/raw/main/dracula.json -P ~/.config/musikcube/themes
w https://github.com/dracula/rofi/raw/main/theme/config2.rasi -P ~/.config/rofi
l /usr/share/netsurf/adblock.css ~/.config/qutebrowser/css
2024-07-06 03:23:04 +00:00
w https://github.com/redlib-org/redlib/raw/main/static/themes/laserwave.css -P ~/.config/qutebrowser/css
sed -i s/laserwave/fixed_navbar/ ~/.config/qutebrowser/css/laserwave.css
w https://github.com/zedeus/nitter/raw/master/public/css/themes/twitter_dark.css -P ~/.config/qutebrowser/css
2024-07-06 03:23:04 +00:00
ao3=~/.config/qutebrowser/css/ao3.scss
echo ":root:has(div#outer.wrapper) {" > "$ao3"
curl https://archiveofourown.org/skins/929 | pup -p .css pre text{} >> "$ao3"
sed -i -e '/232323/d' -e 's/#5998D6/MediumPurple/' -e 's/background:.*/background: #000;/' "$ao3"
echo "}" >> "$ao3"
2024-07-06 03:23:04 +00:00
sass "$ao3" ~/.config/qutebrowser/css/ao3.css
2024-07-08 13:54:38 +00:00
sass ~/.config/qutebrowser/css/user.scss ~/.config/qutebrowser/css/user.css
2024-07-01 15:25:37 +00:00
w https://github.com/mrzool/bash-sensible/raw/master/sensible.bash -O ~/.bashrc
w https://github.com/savq/paq-nvim/raw/master/lua/paq.lua -P ~/.config/nvim/lua
nvim +PaqInstall +q
w https://github.com/4ndrs/PureMPV/raw/main/main.js -P ~/.config/mpv/scripts
l /usr/share/mpv/scripts/autocrop.lua ~/.config/mpv/scripts
l /usr/share/mpv/scripts/autodeint.lua ~/.config/mpv/scripts
l /usr/share/nnn/plugins/ ~/.config/nnn
printf bt-tracker= > ~/.config/aria2/aria2.conf
2024-03-18 17:19:59 +00:00
curl -L https://github.com/ngosang/trackerslist/raw/master/trackers_best.txt | tr "\n" , >> ~/.config/aria2/aria2.conf
g g p:appdwarf ~/.local/appdwarf
2021-10-26 19:01:32 +00:00
g g p:haiku-icons ~/.local/share/icons/Haiku
2024-10-25 16:18:45 +00:00
if test "$DBUS_SESSION_BUS_ADDRESS"; then
for i in ~/.dotfiles/dconf/*; do
dconf reset -f "$(basename "$i" | tr : /)"
#shellcheck disable=SC2094
dconf load "$(basename "$i" | tr : /)" < "$i"
done
fi