diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f07b8d4e..13c46ebd 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -22,6 +22,9 @@ cmd open ${{ audio/*) mpv --audio-display=no $f ;; video/*) setsid mpv $f -quiet >/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;; esac }} diff --git a/.config/wall.png b/.config/wall.png deleted file mode 100644 index 6e9889cc..00000000 Binary files a/.config/wall.png and /dev/null differ diff --git a/.local/bin/booksplit b/.local/bin/booksplit index 0029d0bc..3d0ab075 100755 --- a/.local/bin/booksplit +++ b/.local/bin/booksplit @@ -39,6 +39,6 @@ do done < "$2" # The last track must be done outside the loop. 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 "Tagging \"$title\"..." && tag -a "$author" -A "$booktitle" -t "$title" -n "$track" -N "$total" -d "$year" "$file" diff --git a/.local/bin/statusbar/nettraf b/.local/bin/statusbar/nettraf index 3c41dfc7..9a81ad24 100755 --- a/.local/bin/statusbar/nettraf +++ b/.local/bin/statusbar/nettraf @@ -10,16 +10,14 @@ case "$BLOCK_BUTTON" in 6) "$TERMINAL" -e "$EDITOR" "$0" ;; esac -rxfile="${XDG_CACHE_HOME:-$HOME/.cache}/rxlog" -txfile="${XDG_CACHE_HOME:-$HOME/.cache}/txlog" +logfile="${XDG_CACHE_HOME:-$HOME/.cache}/netlog" +prevdata="$(cat "$logfile")" -rxcurrent="$(cat /sys/class/net/*/statistics/rx_bytes | paste -sd '+' | bc)" -txcurrent="$(cat /sys/class/net/*/statistics/tx_bytes | paste -sd '+' | bc)" +rxcurrent="$(($(cat /sys/class/net/*/statistics/rx_bytes | paste -sd '+')))" +txcurrent="$(($(cat /sys/class/net/*/statistics/tx_bytes | paste -sd '+')))" printf "🔻%sKiB 🔺%sKiB\\n" \ - "$(printf -- "(%s-%s)/1024\\n" "$rxcurrent" "$(cat "$rxfile")" | bc)" \ - "$(printf -- "(%s-%s)/1024\\n" "$txcurrent" "$(cat "$txfile")" | bc)" + "$(((rxcurrent-${prevdata%% *})/1024))" \ + "$(((txcurrent-${prevdata##* })/1024))" -# Log the current values for next run. -echo "$rxcurrent" > "$rxfile" -echo "$txcurrent" > "$txfile" +echo "$rxcurrent $txcurrent" > "$logfile" diff --git a/.local/share/bg b/.local/share/bg index 6c5d2998..b41641dc 120000 --- a/.local/share/bg +++ b/.local/share/bg @@ -1 +1 @@ -../../.config/wall.png \ No newline at end of file +thiemeyer_road_to_samarkand.jpg \ No newline at end of file diff --git a/.local/share/thiemeyer_road_to_samarkand.jpg b/.local/share/thiemeyer_road_to_samarkand.jpg new file mode 100644 index 00000000..6a30adb2 Binary files /dev/null and b/.local/share/thiemeyer_road_to_samarkand.jpg differ