dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 5ce7250a6a2a45a8222fab5ba873c85067c84488
parent c1f9cf0fd9be8674d358fe63f3dd34dcc462271c
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Mon,  5 Feb 2018 19:34:11 -0500

my i3status: Remove dependency on upstream i3status

Diffstat:
M.local/bin/my | 16+++++-----------
1 file changed, 5 insertions(+), 11 deletions(-)

diff --git a/.local/bin/my b/.local/bin/my @@ -267,23 +267,17 @@ case $command in ;; status) echo -n "Batt: `my battery percent`% | " - cat $HOME/.local/var/forecastio/current_forecast.txt + cat $HOME/.local/var/forecastio/current_forecast.txt | tr -d '\n' echo -n " | " - [ -z "$1" ] && date +'%l:%M %p' + date +'%l:%M %p' exit 0 ;; i3status) - if type i3status > /dev/null 2>&1 - then - i3status | while : + while : do - read line - echo "`my status noclock` $line" || exit 1 + echo "`my status`" || exit 1 + sleep 15 done - else - __mylog "my i3status" "i3status not found" - exit 1 - fi ;; copy) uname=`uname -s`