diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2020-05-30 18:52:31 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2020-05-30 18:52:31 -0400 |
| commit | f552d9850b393acd366efc34e80e7ccb4ad93b55 (patch) | |
| tree | 2f001295f21d80db9b78d55c2761bb1cce263740 /.local/bin/statusbar/weather | |
| parent | bb8495f27d56705d7ac55bd38c52cc605734cdb6 (diff) | |
| parent | 3222354d50c9cc5a50fc78059e69e423a7009d58 (diff) | |
| download | eibhear-f552d9850b393acd366efc34e80e7ccb4ad93b55.tar.gz eibhear-f552d9850b393acd366efc34e80e7ccb4ad93b55.tar.zst eibhear-f552d9850b393acd366efc34e80e7ccb4ad93b55.zip | |
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/statusbar/weather')
| -rwxr-xr-x | .local/bin/statusbar/weather | 2 |
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. |
