summaryrefslogtreecommitdiffstats
path: root/.local/bin/statusbar/weather
diff options
context:
space:
mode:
authorKian Kasad <kdkasad@gmail.com>2020-05-30 14:01:18 -0700
committerGitHub <noreply@github.com>2020-05-30 17:01:18 -0400
commit3222354d50c9cc5a50fc78059e69e423a7009d58 (patch)
tree53cd87a34815f7e7b8d8c670777208a728616e2a /.local/bin/statusbar/weather
parent52d9140820d3e39446cb8414220c9bc5a052216c (diff)
downloadeibhear-3222354d50c9cc5a50fc78059e69e423a7009d58.tar.gz
eibhear-3222354d50c9cc5a50fc78059e69e423a7009d58.tar.zst
eibhear-3222354d50c9cc5a50fc78059e69e423a7009d58.zip
make use of setsid(1)'s `-f` flag (#652)
Co-authored-by: Luke Smith <luke@lukesmith.xyz>
Diffstat (limited to '.local/bin/statusbar/weather')
-rwxr-xr-x.local/bin/statusbar/weather2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/statusbar/weather b/.local/bin/statusbar/weather
index 2599e91..9a6c40a 100755
--- a/.local/bin/statusbar/weather
+++ b/.local/bin/statusbar/weather
@@ -16,7 +16,7 @@ showweather() { printf "%s" "$(sed '16q;d' "${XDG_DATA_HOME:-$HOME/.local/share}
sed '13q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " 🥶" $1 "°","🌞" $2 "°"}' ;}
case $BLOCK_BUTTON in
- 1) setsid "$TERMINAL" -e less -Srf "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" & ;;
+ 1) setsid -f "$TERMINAL" -e less -Srf "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" ;;
2) getforecast && showweather ;;
3) notify-send "🌈 Weather module" "\- Left click for full forecast.
- Middle click to update forecast.