From 59b29a51d314a5d19d1dcb8c3a311aca1a26c5fe Mon Sep 17 00:00:00 2001 From: Nikolai Weidt Date: Sat, 23 Mar 2019 10:20:43 +0100 Subject: [PATCH] raw control chars in less, no "ESC" anymore My weatherreport was full with ESC and other control chars. Using the -R flag for less makes it pretty again. --- .scripts/statusbar/weather | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/statusbar/weather b/.scripts/statusbar/weather index f3699ee..54c2a43 100755 --- a/.scripts/statusbar/weather +++ b/.scripts/statusbar/weather @@ -2,7 +2,7 @@ [ "$(stat -c %y /tmp/weatherreport | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] && getforecast case $BLOCK_BUTTON in - 1) $TERMINAL -e less -S /tmp/weatherreport ;; + 1) $TERMINAL -e less -S -R /tmp/weatherreport ;; 3) pgrep -x dunst >/dev/null && notify-send "🌈 Weather module: - Click for wttr.in forecast. ☔: Chance of rain/snow