diff options
| author | xyz <gky44px1999@gmail.com> | 2021-09-20 23:35:33 -0700 | 
|---|---|---|
| committer | xyz <gky44px1999@gmail.com> | 2021-09-20 23:35:33 -0700 | 
| commit | 6ab7400b3a1d97862cebffb90eb1cb9b11efd866 (patch) | |
| tree | 8095bfa6f93ced06eecf01205d1db7e56288c576 | |
| parent | 21b247f1d0a6381a66c3123a43f2e6ba74e22d53 (diff) | |
upd pac total auto, paru config, refactor mpvy
| -rw-r--r-- | .config/paru/paru.conf | 4 | ||||
| -rwxr-xr-x | .local/bin/mpvy | 4 | ||||
| -rwxr-xr-x | .local/bin/upd | 5 | 
3 files changed, 8 insertions, 5 deletions
| diff --git a/.config/paru/paru.conf b/.config/paru/paru.conf new file mode 100644 index 00000000..d51fa49d --- /dev/null +++ b/.config/paru/paru.conf @@ -0,0 +1,4 @@ +Include = /etc/paru.conf + +[options] +AurOnly diff --git a/.local/bin/mpvy b/.local/bin/mpvy index 26fc1fb5..47c6a9e5 100755 --- a/.local/bin/mpvy +++ b/.local/bin/mpvy @@ -13,8 +13,8 @@ notify ()  	notify-send 'mpvsel failed'  } -# can improve to make s, a, A  mutually exclusive, see curlncm, maybe not, not necessary -# option f and h may do nothing if redownload? since same filename exist, haven't tested. yt-dlp won't download same file even without --auto-file-renameing=false. how improve? +# can improve to make some options mutually exclusive, see curlncm, maybe not +# option f and h may do nothing if redownload? since same filename exist. yt-dlp won't download same file even without --auto-file-renameing=false. how improve? pass argument to aria2c?  while getopts Aabd:f:h:su: opt; do  	case $opt in  		# s: streaming, a: aria2c then mpv, A: aria2c diff --git a/.local/bin/upd b/.local/bin/upd index 06e527a1..6ec24947 100755 --- a/.local/bin/upd +++ b/.local/bin/upd @@ -47,8 +47,8 @@ pac ()  {  	sudo pacman --noconfirm -Syu  	paru --noconfirm -Syu -	# not fully understand -	#rm ~/.cache/paru/clone/neovim-nightly-bin/ -rf && yes 1 | paru --rebuild --redownload neovim-nightly-bin +	# part steal from aur comment +	rm -rf ~/.cache/paru/clone/neovim-nightly-bin/ && yes 1 | PARU_PAGER=cat paru --rebuild --redownload neovim-nightly-bin  	sudo pacman -Fy  } @@ -58,7 +58,6 @@ qb ()  	curlqb "$HOME/programs/qbittorrent_search_plugins/"  } -  refl ()  {  	sudo reflector --save /etc/pacman.d/mirrorlist --latest 200 --sort rate | 
