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.
This commit is contained in:
Nikolai Weidt 2019-03-23 10:20:43 +01:00 committed by GitHub
parent ec155d2e3e
commit 65f42bf415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 "<b>🌈 Weather module:</b>
- Click for wttr.in forecast.
☔: Chance of rain/snow