From e6c9844e61ab62835e8e7a1bdf933759d598d196 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Fri, 4 Oct 2024 13:30:08 +0200 Subject: [PATCH] Update 2024-10-04 13:30 OpenBSD/amd64-t14 --- .Xdefaults | 3 +- .bin/OLD/subsonic | 97 ------------------ .bin/apps/amused | 2 +- .bin/cbar | Bin 10304 -> 10304 bytes .mutt/scripts/portpatch2.sh | 5 +- .../start/vim-snipmate/snippets/c.snippets | 2 +- .vim/vimrc | 3 + 7 files changed, 8 insertions(+), 104 deletions(-) delete mode 100755 .bin/OLD/subsonic diff --git a/.Xdefaults b/.Xdefaults index 915b109..8addd9c 100644 --- a/.Xdefaults +++ b/.Xdefaults @@ -1,7 +1,6 @@ ! -- CURSOR --! !Xcursor.size: 32 -!Xcursor.size: 32 -Xcursor.size: +Xcursor.size: 32 Xcursor.theme: xterm.cursorTheme: diff --git a/.bin/OLD/subsonic b/.bin/OLD/subsonic deleted file mode 100755 index bbc63b4..0000000 --- a/.bin/OLD/subsonic +++ /dev/null @@ -1,97 +0,0 @@ -#!/bin/sh - -# subsonic -alias subsonic-cli="\subsonic-cli -c $HOME/.subsonic-cli.conf" - -subsonic-play() { - # $1 songId - for song in $@ - do - echo $song > /tmp/.playing - subsonic-cli stream -p id $song \ - | mpv --loop=no - || exit 0 - done -} - -subsonic-random() { - while true; - do - echo "Fetching moar dataaa.." - subsonic-play $(subsonic-cli getRandomSongs \ - | jq -r '.randomSongs[][].id') - done -} - -subsonic-favorites() { - while true; - do - echo "Fetching moar dataaa.." - subsonic-play $(subsonic-cli getStarred \ - | jq -r '.starred[][].id' \ - | sort -r) - done -} - -subsonic-search() { - { - echo "|ALBUMID|ID|ALBUM|ARTIST|TITLE|GENRE|" - printf "|%s|%s|%s|%s|%s|%s|\n" "--------------------------------"\ - "--------------------------------"\ - "--------" "--------" "--------" "--------" - subsonic-cli search3 \ - -p songcount 200 \ - -p query "$@" \ - | jq -r '.searchResult3[][]|select(.contentType!=null)|[.albumId,.id,.album,.title,.artist,.genre]' \ - | tr -d '", ' \ - | awk '/^\[/ { S++ } \ - /^\]/ { S-- } \ - S==0 { NR=0 } \ - NR==2 { AID=$0 } \ - NR==3 { ID=$0 } \ - NR==4 { ALBUM=$0 } \ - NR==5 { TITLE=$0 } \ - NR==6 { ARTIST=$0 } \ - NR==7 { GENRE=$0 } \ - NR==0 { printf("|%s|%s|%s|%s|%s|%s|\n", AID, ID, ALBUM, ARTIST, TITLE, GENRE) }' - } | column -s'|' -t -} - -subsonic-star() { - [ -f /tmp/.playing ] \ - && subsonic-cli star -p id $(cat /tmp/.playing | tail -1) \ - || echo bruh. -} - -subsonic-unstar() { - [ -f /tmp/.playing ] \ - && subsonic-cli unstar -p id $(cat /tmp/.playing | tail -1) \ - || echo bruh. -} - -subsonic-download() { - # $1 albumId - NAME=$(subsonic-cli getAlbum -p id $1 \ - | jq -r '.album.artist,.album.name' | xargs | tr ' ' '-') - printf "Downloading to %s/subsonic-download/%s.zip\n" "$HOME" "$NAME" - mkdir -p "$HOME/subsonic-download" - subsonic-cli download -p id $1 | pv > "$HOME/subsonic-download/$NAME.zip" -} - -if [ -z $1 ] -then - cat <<"EOF" - usage: subsonic - - play - play song with id - download - download album with id - [un]star - [un]star currently playing song - search - show song/album for term - favorites - play starred songs - random - play random songs - -EOF -else - subsonic-$1 $2 -fi - - diff --git a/.bin/apps/amused b/.bin/apps/amused index 2c841fd..5305f10 100755 --- a/.bin/apps/amused +++ b/.bin/apps/amused @@ -34,7 +34,7 @@ amused_sort() {( amused_load_tank() {( NOTIFY_CMD "loading started in background" - ssh 192.168.1.20 "find /tank/pub/Audio_* -type f" | grep -Ev "jpg|jpeg|png|gif|/[Cc]over\." | amused load + ssh 10.20.30.20 "find /tank/pub/Audio_* -type f" | grep -Ev "jpg|jpeg|png|gif|/[Cc]over\." | amused load NOTIFY_CMD "loading finished" amused_cmd play )&} diff --git a/.bin/cbar b/.bin/cbar index 157c4a59d163e8058a668aef71010b86429ddf7d..8ce219f372b9b9866fb186fd846d9307b7d0c144 100755 GIT binary patch delta 427 zcmX>Qa3ElV49nyz%p$BN3=9l{lN*_Y87(JYWEP+7pvp2ig++%k2*jJD23EBB080WR zFB?!L2(SV%$7Ef$QV2F<| zc4J5@D9X$$Nn-$tQa3ElV49jE_77<3H$rqW$8Lhyi^W;Pp{mBk$ER(M=i!g?P#5NybNnqq