From: Tucker Johnson Date: Mon, 17 Feb 2025 02:25:43 +0000 (-0500) Subject: fix X-Git-Url: https://git.newer.systems/?a=commitdiff_plain;h=0fc947c7385c4105d82545bb1d2abc67d61eb27c;p=dwmblocks.git fix --- diff --git a/Makefile b/Makefile index 32c9294..9ee494d 100644 --- a/Makefile +++ b/Makefile @@ -20,6 +20,7 @@ install: dwmblocks chmod 755 $(DESTDIR)$(PREFIX)/bin/sb-memory chmod 755 $(DESTDIR)$(PREFIX)/bin/sb-nettraf chmod 755 $(DESTDIR)$(PREFIX)/bin/sb-volume + chmod 755 $(DESTDIR)$(PREFIX)/bin/sb-weather uninstall: rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks\ $(DESTDIR)$(PREFIX)/bin/sb-* diff --git a/config.h b/config.h index 859d9a2..26a2ea8 100644 --- a/config.h +++ b/config.h @@ -2,8 +2,9 @@ static const Block blocks[] = { /*Icon*/ /*Command*/ /*Update Interval*/ /*Update Signal*/ {"", "cat /tmp/recordingicon 2>/dev/null", 0, 9}, + {"", "sb-weather", 600, 19}, {"", "sb-memory", 10, 14}, - {"", "sb-cpu", 10, 18}, +/* {"", "sb-cpu", 10, 18}, */ {"", "sb-volume", 0, 10}, {"", "sb-nettraf", 1, 16}, {"", "sb-internet", 5, 4}, diff --git a/statusbar-scripts/sb-weather b/statusbar-scripts/sb-weather new file mode 100755 index 0000000..15e8734 --- /dev/null +++ b/statusbar-scripts/sb-weather @@ -0,0 +1,8 @@ +#!/bin/sh + +case $BLOCK_BUTTON in + 1) notify-send " weather" "$(curl 'wttr.in/Brockport?format=%l:+\n%C+%c\nfeels-like:%f+actual:%t\nsunrise:%S+sunset:%s\n')" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; +esac + +echo ["$(curl 'wttr.in/Brockport?format=%f+%C\n')"]