mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
Merge branch 'master' of https://github.com/lukesmithxyz/voidrice
This commit is contained in:
commit
2a6a0ba820
@ -22,6 +22,9 @@ cmd open ${{
|
|||||||
audio/*) mpv --audio-display=no $f ;;
|
audio/*) mpv --audio-display=no $f ;;
|
||||||
video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;;
|
video/*) setsid mpv $f -quiet >/dev/null 2>&1 & ;;
|
||||||
application/pdf) setsid zathura $fx >/dev/null 2>&1 & ;;
|
application/pdf) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||||
|
application/epub+zip) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||||
|
application/vnd.comicbook+zip) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||||
|
application/vnd.comicbook-rar) setsid zathura $fx >/dev/null 2>&1 & ;;
|
||||||
*) for f in $fx; do setsid $OPENER $f >/dev/null 2>&1 & done;;
|
*) for f in $fx; do setsid $OPENER $f >/dev/null 2>&1 & done;;
|
||||||
esac
|
esac
|
||||||
}}
|
}}
|
||||||
|
|||||||
BIN
.config/wall.png
BIN
.config/wall.png
Binary file not shown.
|
Before Width: | Height: | Size: 524 KiB |
@ -39,6 +39,6 @@ do
|
|||||||
done < "$2"
|
done < "$2"
|
||||||
# The last track must be done outside the loop.
|
# The last track must be done outside the loop.
|
||||||
echo "From $start to the end: $title"
|
echo "From $start to the end: $title"
|
||||||
file="$escbook/$track-$esctitle.$ext"
|
file="$escbook/$(printf "%.2d" "$track")-$esctitle.$ext"
|
||||||
echo "Splitting \"$title\"..." && ffmpeg -nostdin -y -loglevel -8 -i "$inputaudio" -ss "$start" -vn "$file" &&
|
echo "Splitting \"$title\"..." && ffmpeg -nostdin -y -loglevel -8 -i "$inputaudio" -ss "$start" -vn "$file" &&
|
||||||
echo "Tagging \"$title\"..." && tag -a "$author" -A "$booktitle" -t "$title" -n "$track" -N "$total" -d "$year" "$file"
|
echo "Tagging \"$title\"..." && tag -a "$author" -A "$booktitle" -t "$title" -n "$track" -N "$total" -d "$year" "$file"
|
||||||
|
|||||||
@ -10,16 +10,14 @@ case "$BLOCK_BUTTON" in
|
|||||||
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
6) "$TERMINAL" -e "$EDITOR" "$0" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
rxfile="${XDG_CACHE_HOME:-$HOME/.cache}/rxlog"
|
logfile="${XDG_CACHE_HOME:-$HOME/.cache}/netlog"
|
||||||
txfile="${XDG_CACHE_HOME:-$HOME/.cache}/txlog"
|
prevdata="$(cat "$logfile")"
|
||||||
|
|
||||||
rxcurrent="$(cat /sys/class/net/*/statistics/rx_bytes | paste -sd '+' | bc)"
|
rxcurrent="$(($(cat /sys/class/net/*/statistics/rx_bytes | paste -sd '+')))"
|
||||||
txcurrent="$(cat /sys/class/net/*/statistics/tx_bytes | paste -sd '+' | bc)"
|
txcurrent="$(($(cat /sys/class/net/*/statistics/tx_bytes | paste -sd '+')))"
|
||||||
|
|
||||||
printf "🔻%sKiB 🔺%sKiB\\n" \
|
printf "🔻%sKiB 🔺%sKiB\\n" \
|
||||||
"$(printf -- "(%s-%s)/1024\\n" "$rxcurrent" "$(cat "$rxfile")" | bc)" \
|
"$(((rxcurrent-${prevdata%% *})/1024))" \
|
||||||
"$(printf -- "(%s-%s)/1024\\n" "$txcurrent" "$(cat "$txfile")" | bc)"
|
"$(((txcurrent-${prevdata##* })/1024))"
|
||||||
|
|
||||||
# Log the current values for next run.
|
echo "$rxcurrent $txcurrent" > "$logfile"
|
||||||
echo "$rxcurrent" > "$rxfile"
|
|
||||||
echo "$txcurrent" > "$txfile"
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
../../.config/wall.png
|
thiemeyer_road_to_samarkand.jpg
|
||||||
BIN
.local/share/thiemeyer_road_to_samarkand.jpg
Normal file
BIN
.local/share/thiemeyer_road_to_samarkand.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 394 KiB |
Loading…
x
Reference in New Issue
Block a user