update bar, uptade mutt with nomuch
authorMart Lubbers <mart@martlubbers.net>
Tue, 9 Dec 2014 10:07:18 +0000 (11:07 +0100)
committerMart Lubbers <mart@martlubbers.net>
Tue, 9 Dec 2014 10:07:18 +0000 (11:07 +0100)
.mutt/muttrc
i3/bar
user-dirs.dirs [deleted file]

index 6a2d903..8871d6d 100644 (file)
@@ -5,6 +5,13 @@ set envelope_from=yes
 set sendmail="msmtp -C /home/mart/.mutt/msmtp"
 
 macro index,pager $ "<shell-escape>offlineimap -c ~/.mutt/offlineimaprc &<enter>" "Force refresh"
+macro index <F8> \
+                               "<enter-command>set my_old_pipe_decode=\$pipe_decode my_old_wait_key=\$wait_key nopipe_decode nowait_key<enter>\
+                               <shell-escape>notmuch-mutt -r --prompt search<enter>\
+                               <change-folder-readonly>`echo ${XDG_CACHE_HOME:-$HOME/.cache}/notmuch/mutt/results`<enter>\
+                               <enter-command>set pipe_decode=\$my_old_pipe_decode wait_key=\$my_old_wait_key<enter>" \
+                               "notmuch: search mail"
+
 macro index,pager \cb "| urlview\n"
 
 set mbox_type=Maildir
diff --git a/i3/bar b/i3/bar
index 615a111..5ae1bac 100755 (executable)
--- a/i3/bar
+++ b/i3/bar
@@ -13,7 +13,7 @@ battery(){
 
 volume(){
        mixer=$(amixer | head -5 | tail -1)
-       echo $mixer | grep "\[on\]" && mute="(M)"
+       echo $mixer | grep "\[on\]" || mute="(M)"
        volume=$(echo $mixer | grep -Po "(?<=\[)[0-9]{1,3}%")
        echo -n "vol: $volume$mute"
 }
diff --git a/user-dirs.dirs b/user-dirs.dirs
deleted file mode 100644 (file)
index 9056b79..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-XDG_DESKTOP_DIR="$HOME/downloads"
-XDG_DOCUMENTS_DIR="$HOME/downloads"
-XDG_DOWNLOAD_DIR="$HOME/downloads"
-XDG_MUSIC_DIR="$HOME/music"
-XDG_PICTURES_DIR="$HOME/downloads"
-XDG_VIDEOS_DIR="$HOME/downloads"