dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dotfiles
Log | Files | Refs

commit 38ef2b427126e942f1ada72de029b27d0d37846a
parent c513f26d1913a4e05c92b769febeb1dca01f4059
Author: Ed van Bruggen <ed@edryd.org>
Date:   Mon, 25 Sep 2017 23:50:19 -0700

bin: Rename .msg to .dwm.msg

Diffstat:
bin/dwmmail.sh | 10+++++-----
bin/dwmstatus.sh | 4++--
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/bin/dwmmail.sh b/bin/dwmmail.sh @@ -2,12 +2,12 @@ fetchmail --check 2>/dev/null | while read line; do new=$(echo "$line" | sed 's/(//' | awk '{print $1-$3}') - if [ "$new" != 0 ] && [ ! -e ~/.msg ]; then - echo "New mail($new)" > ~/.msg - echo "!!! !!! !!!" >> ~/.msg + if [ "$new" != 0 ] && [ ! -e ~/.dwm.msg ]; then + echo "New mail($new)" > ~/.dwm.msg + echo "!!! !!! !!!" >> ~/.dwm.msg sleep 5 - if grep '^New mail' ~/.msg >/dev/null 2>/dev/null; then - rm -f ~/.msg + if grep '^New mail' ~/.dwm.msg >/dev/null 2>/dev/null; then + rm -f ~/.dwm.msg fi fi done diff --git a/bin/dwmstatus.sh b/bin/dwmstatus.sh @@ -2,12 +2,12 @@ while true; do status="" - if [ -r ~/.msg ]; then + if [ -r ~/.dwm.msg ]; then while read line; do status+=" $line" xsetroot -name "$(echo -e "$status")" sleep 1 - done < ~/.msg + done < ~/.dwm.msg else song=$(basename "$(cmus-remote -Q | grep file | cut -d ' ' -f 2-)" .mp3) ramused=$(free -m | grep Mem | awk '{print $3}')