From b78a9f27b37eca6b75ec1f2fc993c1e5b717609d Mon Sep 17 00:00:00 2001 From: Mart Lubbers Date: Tue, 9 Dec 2014 13:19:23 +0100 Subject: [PATCH] update bar --- .mutt/msmtprc | 3 ++- .mutt/muttrc | 2 +- i3/bar | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.mutt/msmtprc b/.mutt/msmtprc index cd701d0..f2b2054 100644 --- a/.mutt/msmtprc +++ b/.mutt/msmtprc @@ -4,5 +4,6 @@ port 587 auth on tls on tls_certcheck off -passwordeval gpg -qdb --use-agent ~/pw/mail.asc | grep -A4 "^mart@martlubbers.net" | grep -Po "(?<=pass: ).*" +user mart@martlubbers.net +passwordeval gpg -qd --use-agent ~/pw/mail.asc | grep -A4 "^mart@martlubbers.net" | grep -Po "(?<=pass: ).*" from mart@martlubbers.net diff --git a/.mutt/muttrc b/.mutt/muttrc index 8871d6d..523d813 100644 --- a/.mutt/muttrc +++ b/.mutt/muttrc @@ -2,7 +2,7 @@ set from="mart@martlubbers.net" set use_from="yes set envelope_from=yes -set sendmail="msmtp -C /home/mart/.mutt/msmtp" +set sendmail="msmtp -C /home/mart/.mutt/msmtprc" macro index,pager $ "offlineimap -c ~/.mutt/offlineimaprc &" "Force refresh" macro index \ diff --git a/i3/bar b/i3/bar index 5ae1bac..30e24ce 100755 --- a/i3/bar +++ b/i3/bar @@ -5,10 +5,10 @@ item(){ battery(){ path=/sys/class/power_supply - now=$(($(cat "$path/BAT0/charge_now")*100/$(cat "$path/BAT0/charge_full")))% + now=$(($(cat "$path/BAT0/charge_now")*100/$(cat "$path/BAT0/charge_full"))) [ "$(cat "$path/ADP1/online")" -eq "1" ] && charge="(C)" - [ "$now" = "100%" ] && now="FULL" - echo -n "$now$charge" + [ "$now" -ge "100" ] && now="FULL" + echo -n "$now%$charge" } volume(){ -- 2.20.1