diff options
author | katherine <shmibs@shmibbles.me> | 2016-02-01 19:06:45 -0700 |
---|---|---|
committer | katherine <shmibs@shmibbles.me> | 2016-02-01 19:06:45 -0700 |
commit | 7c09bc77abefc399c39c2afde40220c1f619d179 (patch) | |
tree | e5a5fcc84bcb35d9e4c94d30ebfcf6707a7ac0dd | |
parent | d224a39d7401673760ca11196a784e9377a54afd (diff) | |
download | dotfiles-7c09bc77abefc399c39c2afde40220c1f619d179.tar.gz |
uniq
-rwxr-xr-x | .config/herbstluftwm/panel.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/.config/herbstluftwm/panel.sh b/.config/herbstluftwm/panel.sh index 7d21cd0..890bc96 100755 --- a/.config/herbstluftwm/panel.sh +++ b/.config/herbstluftwm/panel.sh @@ -41,10 +41,6 @@ hc pad $monitor $bheight # SUBROUTINES # ################# -unique_line() { - awk '$0 != l { print ; l=$0 ; fflush(); }' -} - # functions for retrieving and processing data # upon events @@ -155,7 +151,7 @@ event_mpd() { fi mpc idle player >/dev/null 2>&1 fi - done > >(unique_line) + done > >(uniq) } event_stat() { @@ -170,7 +166,7 @@ event_when() { echo -e 'when\t1' fi sleep 10 - done > >(unique_line) + done > >(uniq) } |