Added LTE compatibility

This commit is contained in:
jacob.eva 2023-09-16 12:45:49 +01:00
parent d915aaf7ed
commit 0df19f7206
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E
2 changed files with 2 additions and 0 deletions

View File

@ -15,6 +15,7 @@ install: output
install -m 0755 someblocks $(DESTDIR)$(PREFIX)/bin/someblocks
install -m 0755 blocks-battery $(DESTDIR)$(PREFIX)/bin/blocks-battery
install -m 0755 blocks-mail $(DESTDIR)$(PREFIX)/bin/blocks-mail
install -m 0755 blocks-internet $(DESTDIR)$(PREFIX)/bin/blocks-internet
mkdir -p $(DESTDIR)$(MANPREFIX)/man1
install -m 0644 someblocks.1 $(DESTDIR)$(MANPREFIX)/man1/someblocks.1
uninstall:

1
blocks-internet Normal file
View File

@ -0,0 +1 @@
nmcli -t -f active,ssid dev wifi | grep -E 'yes' | cut -c 5- | grep . || (mmcli -m /org/freedesktop/ModemManager1/Modem/0 | grep "operator name:" | cut -c 38- | tr -d '\n' && echo -n ": " && mmcli -m /org/freedesktop/ModemManager1/Modem/0 | grep -P "(\d{3}|\d{2})%" -o) || echo "Disconnected"