Update 2023-11-04 10:58 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2023-11-04 10:58:13 +01:00
parent a8256e307f
commit cd7fa30038
5 changed files with 43 additions and 24 deletions

View File

@ -21,30 +21,28 @@ amused show | cut -d'/' -f5-
SEL="$( showlist | $DMENU_CMD -p Playlist -l 30)"
amused_shuffle() {(
twmnc -d 2000 -t "amused" -c "shuffle started in background";
notify-send "shuffle started in background";
amused show | sort -R | amused load;
twmnc -d 2000 -t "amused" -c "shuffle finished";
notify-send "shuffle finished";
)&}
amused_sort() {(
twmnc -d 2000 -t "amused" -c "sorting started in background"
notify-send "sorting started in background"
amused show | sort -u | amused load
twmnc -d 2000 -t "amused" -c "sorting finished"
notify-send "sorting finished"
)&}
amused_load_tank() {(
twmnc -d 2000 -t "amused" -c "loading started in background"
notify-send "loading started in background"
amused load < /home/sdk/.music.all.txt
twmnc -d 2000 -t "amused" -c "loading finished"
notify-send "loading finished"
)&}
amused_load_local() {(
twmnc -d 2000 -t "amused" -c "loading started in background"
notify-send "loading started in background"
find ~/MusicSelection -type f | amused load
twmnc -d 2000 -t "amused" -c "loading finished"
notify-send "loading finished"
)&}
amused_cmd() {
amused "${@}"
twmnc -d 5000 \
-t "amused $1" \
-c "$(amused status | head -1 | cut -d'/' -f5-)"
notify-send "$(amused status | head -1 | cut -d'/' -f5-)"
}
case "${SEL}" in

View File

@ -131,7 +131,7 @@ choose_browser() {
*hetzner.de*) DEFAULT="Vimb (default)"; ;;
*duckduckgo.com/*images*) DEFAULT="Vimb (default)"; ;;
*codevoid.de*) DEFAULT="Vimb (default)"; ;;
*openbsd.org*) DEFAULT="Netsurf (default)"; ;;
*openbsd.org*) DEFAULT="Vimb (default)"; ;;
*google.*) DEFAULT="Firefox (default)"; ;;
*youtube.com*) DEFAULT="Chrome (default)"; ;;
*youtu.be*) DEFAULT="Chrome (default)"; ;;

View File

@ -9,7 +9,7 @@ subsonic-play() {
do
echo $song > /tmp/.playing
subsonic-cli stream -p id $song \
| mpv --loop=no -
| mpv --loop=no - || exit 0
done
}
@ -77,5 +77,21 @@ subsonic-download() {
subsonic-cli download -p id $1 | pv > "$HOME/subsonic-download/$NAME.zip"
}
subsonic-$1
if [ -z $1 ]
then
cat <<"EOF"
usage: subsonic <command> <args>
play <song id> - play song with id
download <album id> - download album with id
[un]star - [un]star currently playing song
search <term> - show song/album for term
favorites - play starred songs
random - play random songs
EOF
else
subsonic-$1 $2
fi

View File

@ -16,9 +16,9 @@ color_focus_maximized = rgb:28/28/28
color_focus_free = rgb:77/77/77
color_unfocus = rgb:47/47/47
color_unfocus_free = rgb:47/47/47
region_padding = 32
tile_gap = 32
region_padding = 32
region_padding = 12
tile_gap = 12
region_padding = 12
disable_border = 1
# +--------------------------------------------------
@ -62,13 +62,14 @@ urgent_enabled = 1
# | FOCUS BEHAVIOR
# +--------------------------------------------------
workspace_clamp = 1
warp_focus = 0
warp_pointer = 0
cycle_visible = 0
focus_close_wrap = 1
focus_mode = default
click_to_raise = 1
workspace_clamp = 1
workspace_autorotate = 0
warp_focus = 0
warp_pointer = 0
cycle_visible = 0
focus_close_wrap = 1
focus_mode = default
click_to_raise = 1
# +--------------------------------------------------
# | QUIRKS

4
.kshrc
View File

@ -584,6 +584,10 @@ ytdl_audio() {
yt-dlp $YTDL_OPTS --user-agent "$YTDL_AGENT" -f bestaudio --extract-audio --embed-thumbnail \
--add-metadata -o "%(title)s-%(id)s.%(ext)s" "$@";
}
xdl() {
mkdir -p "$HOME/x/$1/"
cd "$HOME/x/$1/" && ytdl "$2"
}
########################################################################
# KSH COMPLETIONS