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 7e72b8cf60
commit 59b29a51d3

View file

@ -2,7 +2,7 @@
[ "$(stat -c %y /tmp/weatherreport | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] && getforecast [ "$(stat -c %y /tmp/weatherreport | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] && getforecast
case $BLOCK_BUTTON in 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> 3) pgrep -x dunst >/dev/null && notify-send "<b>🌈 Weather module:</b>
- Click for wttr.in forecast. - Click for wttr.in forecast.
☔: Chance of rain/snow ☔: Chance of rain/snow