summaryrefslogtreecommitdiff
path: root/.local/bin/upd
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/upd')
-rwxr-xr-x.local/bin/upd120
1 files changed, 0 insertions, 120 deletions
diff --git a/.local/bin/upd b/.local/bin/upd
deleted file mode 100755
index 65452b37..00000000
--- a/.local/bin/upd
+++ /dev/null
@@ -1,120 +0,0 @@
-#!/bin/sh
-
-all ()
-{
- fast
- usb
- qb
- ncm
- kg
- refl
- gall
-}
-
-# not in all
-clean ()
-{
- nsxiv -c
- # my ways
- # -exec can't replace -execdir here
- find "$XDG_CACHE_HOME/nsxiv/" -depth -type d -empty -execdir rmdir -- '{}' \+
- # -exec can replace -execdir here
- #find "$XDG_CACHE_HOME/nsxiv/" -depth -type d -execdir rmdir --ignore-fail-on-non-empty -- '{}' \+
- # nsxiv man page way
- #find "$XDG_CACHE_HOME/nsxiv/" -depth -type d -empty ! -name '.' -exec rmdir -- '{}' \;
- rm "$HOME/.mozilla/firefox/xxxxxxxx.fly/prefs.js.backup."*
-}
-
-fast ()
-{
- pac
- misc
-}
-
-gall ()
-{
- gallery-dl --download-archive "$XDG_DOCUMENTS_DIR/database/gallery-dl.sqlite3" -d "$XDG_PICTURES_DIR/anime/gallery-dl/" -i "$XDG_CONFIG_HOME/myconf/gallery_urls"
-}
-
-userjs ()
-{
- kill $(pidof "$BROWSER")
- "$HOME/.mozilla/firefox/xxxxxxxx.fly/prefsCleaner.sh" -s
- "$HOME/.mozilla/firefox/xxxxxxxx.fly/updater.sh" -us
-}
-
-g ()
-{
- curlkg -u649b9e82272a348b -- "$XDG_MUSIC_DIR/not_pure/lan_lan/kg/"
- curlkg -u64949d822c25328c -- "$XDG_MUSIC_DIR/not_pure/cheng_ruan/kg/"
-}
-
-misc ()
-{
- cfg -c submodule foreach git pull
- nvim +PlugUpgrade +PlugClean! +PlugUpdate +qa
- tldr --update
- sudo hardcode-fixer
- userjs
-}
-
-ncm ()
-{
- curlncm -a48860966 -- "$XDG_MUSIC_DIR/not_pure/lan_lan/ncm/artist/"
- curlncm -a46703185 -- "$XDG_MUSIC_DIR/not_pure/cheng_ruan/ncm/artist/"
- curlncm -r793052426 -- "$XDG_MUSIC_DIR/not_pure/lan_lan/ncm/djradio/"
- curlncm -r792968433 -- "$XDG_MUSIC_DIR/not_pure/cheng_ruan/ncm/djradio/"
-}
-
-pac ()
-{
- sudo pacman --noconfirm -Syu
- paru --noconfirm -aSyu
- # part steal from aur comment
- # sometimes "ERROR: Failure while downloading": https://github.com/neovim/neovim/issues/15709
- rm -rf ~/.cache/paru/clone/neovim-nightly-bin/ && yes 1 | PARU_PAGER=cat paru --rebuild --redownload neovim-nightly-bin
- sudo pacman -Fy
-}
-
-qb ()
-{
- rm -r -- "$HOME/programs/qbittorrent_search_plugins/"
- curlqb "$HOME/programs/qbittorrent_search_plugins/"
-}
-
-refl ()
-{
- sudo reflector --save /etc/pacman.d/mirrorlist --latest 200 --sort rate
-}
-
-usb ()
-{
- cfg -c push usb
- cfg -l push usb
- cfg -s push
- git --git-dir="$XDG_DOCUMENTS_DIR/notes/.git" --work-tree="$XDG_DOCUMENTS_DIR/notes/" push usb
-}
-
-
-if [ $# -eq 0 ]; then
- fast
-else
- while getopts acfgjkmnpqru opt; do
- case $opt in
- a)all;;
- # not in all
- c)clean;;
- f)fast;;
- g)gall;;
- j)userjs;;
- k)kg;;
- m)misc;;
- n)ncm;;
- p)pac;;
- q)qb;;
- r)refl;;
- u)usb;;
- \?)exit 1;;
- esac
- done
-fi