From 7c09bc77abefc399c39c2afde40220c1f619d179 Mon Sep 17 00:00:00 2001 From: katherine Date: Mon, 1 Feb 2016 19:06:45 -0700 Subject: uniq --- .config/herbstluftwm/panel.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to '.config') 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) } -- cgit v1.2.3