From 29e2cdfb1032279e879a48bf37332a0014a77ae7 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 26 Apr 2019 21:18:55 -0400 Subject: [PATCH 1/5] mailbox module for new mw --- .scripts/statusbar/mailbox | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scripts/statusbar/mailbox b/.scripts/statusbar/mailbox index c0794e5a..21c85aba 100755 --- a/.scripts/statusbar/mailbox +++ b/.scripts/statusbar/mailbox @@ -6,11 +6,11 @@ case $BLOCK_BUTTON in 1) "$TERMINAL" -e neomutt ;; - 2) setsid $HOME/.config/mutt/etc/mailsync.sh >/dev/null & ;; + 2) setsid mailsync >/dev/null & ;; 3) pgrep -x dunst >/dev/null && notify-send "📬 Mail module" "\- Shows unread mail - Shows 🔃 if syncing mail - Left click opens neomutt - Middle click syncs mail" ;; esac -echo "$(du -a ~/.local/share/mail/*/INBOX/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon 2>/dev/null)" +echo "$(du -a ~/.local/share/mail/*/INBOX/new/* 2>/dev/null | sed -n '$=')$(cat /tmp/imapsyncicon_$USER 2>/dev/null)" From 8a09ddf8d5688195fd900f83c69ed40f45528625 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 2 May 2019 17:42:48 -0400 Subject: [PATCH 2/5] passed arg, weather always redl --- .scripts/statusbar/weather | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scripts/statusbar/weather b/.scripts/statusbar/weather index 0b600cc5..e298bda1 100755 --- a/.scripts/statusbar/weather +++ b/.scripts/statusbar/weather @@ -1,5 +1,5 @@ #!/bin/sh -location="$1"; [ -z "$location" ] || location="$location+" +location="$1"; [ -z "$location" ] || location="$location+" && rm -f "$HOME/.local/share/weatherreport" getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1 curl -s "wttr.in/$location" > "$HOME/.local/share/weatherreport" || exit 1 ;} @@ -17,7 +17,7 @@ case $BLOCK_BUTTON in 🌞: Daily high" ;; esac -if [ "$(stat -c %y "$HOME/.local/share/weatherreport" | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] +if [ "$(stat -c %y "$HOME/.local/share/weatherreport" >/dev/null 2>&1 | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] then getforecast && showweather else showweather fi From 601e664955d2eb5b84c7fe5840277708339c61c9 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 2 May 2019 17:43:11 -0400 Subject: [PATCH 3/5] dumb mistake --- .config/vifm/vifmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/vifm/vifmrc b/.config/vifm/vifmrc index 8c255c06..d646f860 100644 --- a/.config/vifm/vifmrc +++ b/.config/vifm/vifmrc @@ -57,7 +57,7 @@ fileviewer *.csv sed "s/,,,,/,,-,,/g;s/,,/ /g" %c | column -t | sed "s/ - / /g" filetype *.wav,*.mp3,*.flac,*.m4a,*.wma,*.ape,*.ac3,*.og[agx],*.spx,*.opus mpv --no-audio-display --input-ipc-server=/tmp/mpvsoc$(date +%%s) %c filextype *.pdf,*.ps,*.eps,*.ps.gz,*.djvu,*.epub zathura %f 2>/dev/null &, fileviewer *.pdf pdftotext -l 1 -nopgbrk %c - -fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac mediafile %c +fileviewer *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.qt,*.divx,*.as[fx],*mp3,*.flac file filextype *.avi,*.mp4,*.wmv,*.dat,*.3gp,*.ogv,*.mkv,*.mpg,*.mpeg,*.vob,*.fl[icv],*.m2v,*.mov,*.webm,*.ts,*.mts,*.m4v,*.r[am],*.qt,*.divx,*.as[fx] mpv --input-ipc-server=/tmp/mpvsoc$(date +%%s) %f 2>/dev/null &, fileview *.zip,*.rar,*.tar.gz atool -l %f From c16ec5219364caa56cc99894f934d30ab8ac41be Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 2 May 2019 17:43:25 -0400 Subject: [PATCH 4/5] rotdir now actually works as intended --- .scripts/tools/rotdir | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.scripts/tools/rotdir b/.scripts/tools/rotdir index c04666db..e7103db7 100755 --- a/.scripts/tools/rotdir +++ b/.scripts/tools/rotdir @@ -1,8 +1,4 @@ #!/bin/sh [ -z "$1" ] && echo "usage: rotdir regex 2>&1" && exit 1 -ed -s < Date: Thu, 2 May 2019 20:25:45 -0400 Subject: [PATCH 5/5] weather fix --- .scripts/statusbar/weather | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/statusbar/weather b/.scripts/statusbar/weather index e298bda1..e4de6800 100755 --- a/.scripts/statusbar/weather +++ b/.scripts/statusbar/weather @@ -1,5 +1,5 @@ #!/bin/sh -location="$1"; [ -z "$location" ] || location="$location+" && rm -f "$HOME/.local/share/weatherreport" +location="$1"; [ -z "$location" ] || { location="$location+" && rm -f "$HOME/.local/share/weatherreport" ;} getforecast() { ping -q -c 1 1.1.1.1 >/dev/null || exit 1 curl -s "wttr.in/$location" > "$HOME/.local/share/weatherreport" || exit 1 ;}