scripts

Random scripts
git clone git://git.margiolis.net/scripts.git
Log | Files | Refs | README | LICENSE

commit 96d2a5796015e47e782d5d6485056d5312fac707
parent 9a017b7c0e913a999991c3fc7f7c6707a6a370e5
Author: Christos Margiolis <christos@margiolis.net>
Date:   Tue, 10 May 2022 16:45:31 +0300

fix some stuff

Diffstat:
MMakefile | 2++
Mmntdroid | 7++++---
Mvdq | 2+-
Mvds | 2+-
4 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/Makefile b/Makefile @@ -4,11 +4,13 @@ TARGS = ausplit \ autocomp \ backup \ batnfy \ + deljail \ doccomp \ docprev \ extr \ fontupd \ irssi_torconf \ + mkjail \ mntdroid \ namefmt \ passget \ diff --git a/mntdroid b/mntdroid @@ -10,11 +10,12 @@ case "${arg}" in esac done -n=$(simple-mtpfs -l 2>/dev/null | dmenu -i -p "Available devices" | cut -f1 -d':') +test -z $(jmtpfs -l | sed 1d) && echo "No devices found" | nfy && exit 1 +devno=$(jmtpfs -l | sed 1d | dmenu -i -p "Available devices" | cut -f1 -d':') if [ ${f_umnt} -ne 1 ]; then mkdir -p "${MTPT}/${n}" - simple-mtpfs --device "${n}" -o allow_other "${MTPT}/${n}" | dmenu -p "Check" >/dev/null - simple-mtpfs --device "${n}" -o allow_other "${MTPT}/${n}" && + jmtpfs --device "${n}" -o allow_other "${MTPT}/${n}" | dmenu -p "Check" >/dev/null + jmtpfs --device "${n}" -o allow_other "${MTPT}/${n}" && echo "Mounted: ${MTPT}/${n}" | nfy else umount "${MTPT}/${n}" diff --git a/vdq b/vdq @@ -15,4 +15,4 @@ case "${arg}" in exit 1 ;; esac done -cat ${QUEUE} | awk '{print $1}' | xargs mpv +mpv $(awk '{print $1}' ${QUEUE}) diff --git a/vds b/vds @@ -11,4 +11,4 @@ case "${arg}" in exit 1 ;; esac done -cat ${PLAYLIST} | dmenu -l 30 | awk '{print $1}' | xargs mpv +mpv $(cat ${PLAYLIST} | dmenu -l 30 | awk '{print $1}')