various smaller changes

This commit is contained in:
Alexander Bocken 2020-12-30 15:48:47 +01:00
parent 99e8109bf0
commit de4272ac52
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
7 changed files with 9 additions and 10 deletions

View File

@ -354,7 +354,7 @@ media_library_albums_split_by_date = no
#
#lines_scrolled = 2
#
#lyrics_fetchers = lyricwiki, azlyrics, genius, sing365, lyricsmania, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet
lyrics_fetchers = genius, azlyrics, sing365, metrolyrics, justsomelyrics, jahlyrics, plyrics, tekstowo, internet
#
#follow_now_playing_lyrics = no
#

View File

@ -12,13 +12,13 @@
"blocklist-url": "http://www.example.com/blocklist",
"cache-size-mb": 4,
"dht-enabled": true,
"download-dir": "/home/alex/dl",
"download-dir": "/home/alex/dls",
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/home/alex/dl",
"incomplete-dir": "/home/alex/dls",
"incomplete-dir-enabled": false,
"lpd-enabled": false,
"message-level": 2,

View File

@ -16,13 +16,13 @@
"details-window-height": 755,
"details-window-width": 898,
"dht-enabled": true,
"download-dir": "/home/alex",
"download-dir": "/home/alex/dls",
"download-queue-enabled": true,
"download-queue-size": 5,
"encryption": 1,
"idle-seeding-limit": 30,
"idle-seeding-limit-enabled": false,
"incomplete-dir": "/home/alex/dl",
"incomplete-dir": "/home/alex/dls",
"incomplete-dir-enabled": false,
"inhibit-desktop-hibernation": false,
"lpd-enabled": false,

View File

@ -35,7 +35,7 @@ mountandroid() { \
chosen="$(echo "$chosen" | cut -d : -f 1)"
getmount "$HOME -maxdepth 3 -type d"
simple-mtpfs --device "$chosen" "$mp"
echo "OK" | dmenu -i -p "Tap Allow on your phone if it asks for permission and then press enter" || exit 1
#echo "OK" | dmenu -i -p "Tap Allow on your phone if it asks for permission and then press enter" || exit 1
simple-mtpfs --device "$chosen" "$mp"
notify-send "🤖 Android Mounting" "Android device mounted to $mp."
}

View File

@ -30,6 +30,5 @@ else
rx_avg=$rx
tx_avg=$tx
fi
printf '⬇%s ⬆%s\n' $(numfmt --to=iec $rx_avg) $(numfmt --to=iec $tx_avg)
printf '⬇%s ⬆%s\n' "$(numfmt --to=iec "$rx_avg")" "$(numfmt --to=iec "$tx_avg")"
date +'%s' > "$lasttime"

View File

@ -7,7 +7,7 @@ case "$(printf "mpv\\ncopy url\\nqueue download\\nqueue youtube-dl\\nbrowser\\nr
mpv) setsid mpv --quiet --ytdl-format='bestvideo[height<=1080]+bestaudio/best[height<=1080]' "$1" & ;;
"mpv (loop)") setsid mpv --input-ipc-server=/tmp/mpvsoc$(date +%s) -quiet --loop "$1" >/dev/null 2>&1 & ;;
"queue download") name="$( dmenuinput 'Name for file:' )"
tsp curl -L -o $name "$1" >/dev/null 2>&1 ;;
tsp curl -C - -L -o $name "$1" >/dev/null 2>&1 ;;
"queue youtube-dl") youtube-dl --add-metadata -i -o $HOME/'%(upload_date)s-%(title)s.%(ext)s' "$1" >/dev/null 2>&1;;
cast) setsid $TERMINAL -e mkchromecast -y $1 --video --control
;;

View File

@ -1,5 +1,5 @@
#!/bin/sh
while true; do
mpc idle > /dev/null
mpc idle player > /dev/null
pkill -RTMIN+11 dwmblocks
done