diff options
Diffstat (limited to 'home-manager/soispha/packages/scripts/wrappers')
6 files changed, 0 insertions, 127 deletions
diff --git a/home-manager/soispha/packages/scripts/wrappers/backsnap b/home-manager/soispha/packages/scripts/wrappers/backsnap deleted file mode 100755 index cd08045d..00000000 --- a/home-manager/soispha/packages/scripts/wrappers/backsnap +++ /dev/null @@ -1,3 +0,0 @@ -#! /usr/bin/env dash -snap-sync --noconfirm -u d1c6e0f6-1837-40fd-bb29-251d5ea0ddb0 -umount /run/dt/d1c6e0f6-1837-40fd-bb29-251d5ea0ddb0 diff --git a/home-manager/soispha/packages/scripts/wrappers/ll b/home-manager/soispha/packages/scripts/wrappers/ll deleted file mode 100755 index cb1fc0ea..00000000 --- a/home-manager/soispha/packages/scripts/wrappers/ll +++ /dev/null @@ -1,14 +0,0 @@ -#!/usr/bin/env dash - -# shellcheck source=/dev/null -SHELL_LIBRARY_VERSION="1.1.4" . %SHELL_LIBRARY_PATH - -last_directory="$(mktemp)" - -command lf -last-dir-path="$last_directory" "$@" - -dir="$(cat "$last_directory")" -cd "$dir" || die "$dir does not exist!" -rm "$last_directory" - -# vim: ft=sh diff --git a/home-manager/soispha/packages/scripts/wrappers/llp b/home-manager/soispha/packages/scripts/wrappers/llp deleted file mode 100755 index 2a21450c..00000000 --- a/home-manager/soispha/packages/scripts/wrappers/llp +++ /dev/null @@ -1,19 +0,0 @@ -#! /bin/bash - -export LLP=1 -cleanup() { - exec 3>&- - rm "$FIFO_UEBERZUG" -} - -if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then - lf "$@" -else - [ ! -d "$HOME/.cache/lf" ] && mkdir --parents "$HOME/.cache/lf" - export FIFO_UEBERZUG="$HOME/.cache/lf/ueberzug-$$" - mkfifo "$FIFO_UEBERZUG" - ueberzug layer -s <"$FIFO_UEBERZUG" -p json & - exec 3>"$FIFO_UEBERZUG" - trap cleanup EXIT - lf "$@" 3>&- -fi diff --git a/home-manager/soispha/packages/scripts/wrappers/spodi b/home-manager/soispha/packages/scripts/wrappers/spodi deleted file mode 100755 index 4ff53bff..00000000 --- a/home-manager/soispha/packages/scripts/wrappers/spodi +++ /dev/null @@ -1,45 +0,0 @@ -#!/usr/bin/env dash - -# shellcheck source=/dev/null -SHELL_LIBRARY_VERSION="1.1.4" . %SHELL_LIBRARY_PATH - -DOWN_DIR="/home/soispha/media/music/down"; - -download_url="$1"; - - - -already_downloaded_files="$(mktmp)" -fd . "$DOWN_DIR" --exclude spotdl.log > "$already_downloaded_files"; - -config="$(mktmp)" -cat << EO > "$config" ---log-level INFO ---cache-path /home/soispha/.local/share/spotdl/.spotipy ---audio youtube-music youtube ---lyrics genius musixmatch azlyrics ---ffmpeg ffmpeg ---format mp3 ---output {artists}_-_{title} ---overwrite skip ---client-id 5f573c9620494bae87890c0f08a60293 ---client-secret 212476d9b0f3472eaa762d90b19b0ba8 ---threads 16 ---print-errors ---preload -EO - -if [ -z "$NO_CHECK" ] && [ "$(wc -l < "$already_downloaded_files" )" -ne 0 ];then - die "something is already downloaded" -fi - -rm "$DOWN_DIR/spotdl.log" -cd "$DOWN_DIR" || die "BUG: no $DOWN_DIR" - - -# The sub shell needs to be unquoted, as the arguments may not be treated as one. -# shellcheck disable=2046 -unbuffer spotdl $(cat "$config") download "$download_url" | tee "$DOWN_DIR/spotdl.log" - -[ -d ~/.spotdl ] && rm -r ~/.spotdl -# vim: ft=sh diff --git a/home-manager/soispha/packages/scripts/wrappers/virsh-del b/home-manager/soispha/packages/scripts/wrappers/virsh-del deleted file mode 100755 index afcd87c1..00000000 --- a/home-manager/soispha/packages/scripts/wrappers/virsh-del +++ /dev/null @@ -1,10 +0,0 @@ -#! /usr/bin/env dash - -# shellcheck source=/dev/null -SHELL_LIBRARY_VERSION="1.1.4" . %SHELL_LIBRARY_PATH - -virsh destroy "$1" -virsh undefine "$1" --nvram -virsh vol-delete --pool default "$1".qcow2 - -# vim: ft=sh diff --git a/home-manager/soispha/packages/scripts/wrappers/yti b/home-manager/soispha/packages/scripts/wrappers/yti deleted file mode 100755 index 0b737b30..00000000 --- a/home-manager/soispha/packages/scripts/wrappers/yti +++ /dev/null @@ -1,36 +0,0 @@ -#! /usr/bin/env dash - -# shellcheck source=/dev/null -SHELL_LIBRARY_VERSION="1.1.4" . %SHELL_LIBRARY_PATH - -die "Use spodi instead!" # TODO: fix this script -DOWN_DIR=/home/soispha/media/playlist/down/ - - -tmp=$(mktmp) -config=$(mktmp) - -for e in "$DOWN_DIR"/*.mp3;do echo "$e" >> "$tmp";done -[ "$(wc -l "$tmp" | awk '{print $1}')" -gt 2 ] && die "something is already downloaded" - -cat << EO > "$config" ---paths home:"$DOWN_DIR" -#--output %(fulltitle) ---restrict-filenames ---no-overwrites ---no-write-info-json ---clean-info-json ---prefer-free-formats -#--format mp3 ---extract-audio ---audio-quality 0 ---audio-format best -EO - - -rm ${DOWN_DIR}yt-dlp.log -cd $DOWN_DIR || die "BUG: no $DOWN_DIR" - -unbuffer yt-dlp --config-location "$config" "$1" | tee $DOWN_DIR/yt-dlp.log - -# vim: ft=sh |