Update dotfiles
This commit is contained in:
parent
83e64cfe7e
commit
4b31759346
|
@ -109,6 +109,7 @@ STICKY_OTHER_WRITABLE 48;5;10;38;5;16 # dir that is sticky and other-writable
|
|||
|
||||
# image formats (magenta) {{{
|
||||
.apng 38;5;13
|
||||
.avif 38;5;13
|
||||
.bmp 38;5;13
|
||||
.bpg 38;5;13
|
||||
.eps 38;5;13
|
||||
|
@ -152,11 +153,13 @@ STICKY_OTHER_WRITABLE 48;5;10;38;5;16 # dir that is sticky and other-writable
|
|||
.bk2 38;5;202
|
||||
.cgm 38;5;202
|
||||
.dl 38;5;202
|
||||
.drc 38;5;202
|
||||
.emf 38;5;202
|
||||
.flc 38;5;202
|
||||
.fli 38;5;202
|
||||
.flv 38;5;202
|
||||
.gl 38;5;202
|
||||
.hevc 38;5;202
|
||||
.m2v 38;5;202
|
||||
.m4v 38;5;202
|
||||
.mkv 38;5;202
|
||||
|
|
|
@ -22,7 +22,7 @@ video-sync=display-resample
|
|||
# Network {{{
|
||||
|
||||
# User agent for HTTP streaming.
|
||||
user-agent="Mozilla/5.0 (X11; Linux x86_64) mpv/0.29.1"
|
||||
user-agent="Mozilla/5.0 (X11; Linux x86_64) mpv/0.30.0"
|
||||
|
||||
# }}}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
--external-downloader-args "--file-allocation=none"
|
||||
|
||||
# Video format code.
|
||||
--format "bestvideo[height<=?1080]+bestaudio/best"
|
||||
--format "(bestvideo+bestaudio/best)[height<=?1080]"
|
||||
|
||||
# Do not use .part files - write directly into output file.
|
||||
--no-part
|
||||
|
@ -17,6 +17,6 @@
|
|||
--output "%(title)s.%(ext)s"
|
||||
|
||||
# Specify a custom user agent.
|
||||
--user-agent "Mozilla/5.0 (X11; Linux x86_64) youtube-dl/2019.10.16"
|
||||
--user-agent "Mozilla/5.0 (Linux x86_64) youtube-dl/2019.10.29"
|
||||
|
||||
# vim:ft=conf:
|
||||
|
|
|
@ -15,6 +15,15 @@ sudo pacman -Syyu
|
|||
sudo pacman -S base-devel git aria2 reflector go --noconfirm
|
||||
git clone https://aur.archlinux.org/yay.git /tmp/yay
|
||||
(cd /tmp/yay && makepkg -sic --noconfirm)
|
||||
git clone https://github.com/alfunx/dotfiles.sh \
|
||||
--single-branch --branch=sparse-edit /tmp/dotfiles.sh
|
||||
(cd /tmp/dotfiles.sh && sudo make install)
|
||||
# }}}
|
||||
|
||||
# Clone dotfiles {{{
|
||||
mkdir -p ~/Documents/Code/GitHub
|
||||
dotfiles clone https://github.com/ObserverOfTime/home.files \
|
||||
~/Documents/Code/GitHub/home.files && dotfiles checkout -f
|
||||
# }}}
|
||||
|
||||
# Rank pacman mirrors {{{
|
||||
|
@ -35,9 +44,7 @@ Target = pacman-mirrorlist
|
|||
Description = Updating pacman-mirrorlist with reflector
|
||||
When = PostTransaction
|
||||
Depends = reflector
|
||||
Exec = /bin/bash -c $(printf '"reflector %s; %s"' \
|
||||
"$(eval 'echo ${REF_OPTS[*]}')" \
|
||||
'rm -f /etc/pacman.d/mirrorlist.pacnew')
|
||||
Exec = /usr/bin/reflector ${REF_OPTS[*]}
|
||||
EOF
|
||||
unset REF_OPTS
|
||||
# }}}
|
||||
|
@ -45,7 +52,7 @@ unset REF_OPTS
|
|||
# Use aria2 for makepkg & set packager {{{
|
||||
NAME="$(awk -F'[:,]' -vu="$USER" '$1 == u {print $5}' /etc/passwd)"
|
||||
PACKAGER="${NAME:-ObserverOfTime} <chronobserver@disroot.org>"
|
||||
ARIA='::/usr/bin/aria2c --no-conf --conf-path=/etc/aria2.conf %u -o %o'
|
||||
ARIA='::/usr/bin/aria2c --conf-path=/etc/aria2.conf -o %o %u'
|
||||
WGET="$(wget -V | awk 'NR == 1 {print $2"/"$3}')"
|
||||
sudo tee /etc/aria2.conf >/dev/null <<EOF
|
||||
user-agent=${WGET:-Wget}
|
||||
|
@ -58,7 +65,7 @@ sudo sed -i /etc/makepkg.conf \
|
|||
-e "s#'ftp::.*'#'ftp$ARIA'#" \
|
||||
-e "s#'http::.*'#'http$ARIA'#" \
|
||||
-e "s#'https::.*'#'https$ARIA'#" \
|
||||
-e "s/^#PACKAGER.*/PACKAGER='$PACKAGER'"
|
||||
-e "s/^#PACKAGER.*/PACKAGER='$PACKAGER'/"
|
||||
unset NAME PACKAGER ARIA WGET
|
||||
# }}}
|
||||
|
||||
|
@ -154,7 +161,7 @@ sudo tee --append /etc/sudoers <<< \
|
|||
|
||||
# Setup mozilla profiles {{{
|
||||
mkdir -p ~/.thunderbird ~/.mozilla/firefox
|
||||
rclone sync -vv mega:/Thunderbird \
|
||||
rclone sync -vv Mega:/Thunderbird \
|
||||
~/.thunderbird/o8q08m34.default
|
||||
cat > ~/.thunderbird/profiles.ini <<'EOF'
|
||||
[Profile0]
|
||||
|
@ -162,7 +169,7 @@ Name=default
|
|||
IsRelative=1
|
||||
Path=o8q08m34.default
|
||||
EOF
|
||||
rclone sync -vv mega:/Firefox \
|
||||
rclone sync -vv Mega:/Firefox \
|
||||
~/.mozilla/firefox/6fgcqba8.dev-edition-default
|
||||
cat > ~/.mozilla/firefox/profiles.ini <<'EOF'
|
||||
[Profile0]
|
||||
|
|
Loading…
Reference in New Issue