From 4b317593460c794f96778301a45d8982734ade9c Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Wed, 30 Oct 2019 11:01:14 +0200 Subject: [PATCH] Update dotfiles --- .config/dircolors | 3 +++ .config/mpv/mpv.conf | 2 +- .config/youtube-dl/config | 4 ++-- .local/arch/init.sh | 21 ++++++++++++++------- 4 files changed, 20 insertions(+), 10 deletions(-) diff --git a/.config/dircolors b/.config/dircolors index 160a04a..9a3cb83 100644 --- a/.config/dircolors +++ b/.config/dircolors @@ -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 diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf index 5bc74a3..9b1184b 100644 --- a/.config/mpv/mpv.conf +++ b/.config/mpv/mpv.conf @@ -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" # }}} diff --git a/.config/youtube-dl/config b/.config/youtube-dl/config index 05ebb4f..50236bb 100644 --- a/.config/youtube-dl/config +++ b/.config/youtube-dl/config @@ -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: diff --git a/.local/arch/init.sh b/.local/arch/init.sh index cc42399..d5a7d92 100755 --- a/.local/arch/init.sh +++ b/.local/arch/init.sh @@ -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} " -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 < ~/.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]