diff --git a/dots/bash/.bashrc b/dots/bash/.bashrc index 4d6c0e2..de007b0 100644 --- a/dots/bash/.bashrc +++ b/dots/bash/.bashrc @@ -56,6 +56,7 @@ alias nr="nitrogen --restore" alias quantumfix="pw-metadata -n settings 0 clock.force-quantum 1024" alias sb="source ~/.bashrc" alias sbr="source /home/poq/syncDir/gitRepos/gi.op.fo/lnx-arch/dots/bash/.bashrc" # source bash (from) repo +alias sizeInBytes="stat -c %s" alias ssh_weba_r="ssh -t root@178.156.192.201 -p 1808 'export TERM=xterm; cd /tmp; bash -l'" alias ssh_weba_u="ssh -t usr@178.156.192.201 -p 1808 'export TERM=xterm; cd /tmp; bash -l'" alias starwars="telnet towel.blinkenlights.nl" @@ -606,6 +607,12 @@ pdfCompress() { -dNOPAUSE -dQUIET -dBATCH -sOutputFile=$1.compressed.pdf $1 } +# https://stackoverflow.com/questions/8933053/check-duration-of-audio-files-on-the-command-line +lengthInSeconds() { + ffprobe -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 $1 2>/dev/null +} + + # --- # ajp related