summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
authorNikolai Weidt <aramus92@gmail.com>2019-03-23 10:20:43 +0100
committerGitHub <noreply@github.com>2019-03-23 10:20:43 +0100
commit59b29a51d314a5d19d1dcb8c3a311aca1a26c5fe (patch)
treed303b4508040ee9a726eefe03ac96eb3c3fe7c14 /.scripts
parent7e72b8cf60ee28c14f8cc59edf095bfa25a2e4df (diff)
downloadeibhear-59b29a51d314a5d19d1dcb8c3a311aca1a26c5fe.tar.gz
eibhear-59b29a51d314a5d19d1dcb8c3a311aca1a26c5fe.tar.zst
eibhear-59b29a51d314a5d19d1dcb8c3a311aca1a26c5fe.zip
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.
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/statusbar/weather2
1 files changed, 1 insertions, 1 deletions
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 "<b>🌈 Weather module:</b>
- Click for wttr.in forecast.
☔: Chance of rain/snow