diff options
| author | spv <spv@spv.sh> | 2025-07-30 10:46:30 -0400 |
|---|---|---|
| committer | spv <spv@spv.sh> | 2025-07-30 10:46:30 -0400 |
| commit | 030bd922eedddc71f514ca44d668d0370b5329e1 (patch) | |
| tree | 8f002a17e6c8d843e4a85f4ab4a178d301278e58 /src/dirty_hack.sh | |
| parent | 636632b1d03f14c45911c1051d39ff01bd6f118a (diff) | |
last night's signal hack
Diffstat (limited to 'src/dirty_hack.sh')
| -rwxr-xr-x | src/dirty_hack.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/dirty_hack.sh b/src/dirty_hack.sh index 67691a3..6366d80 100755 --- a/src/dirty_hack.sh +++ b/src/dirty_hack.sh @@ -1,8 +1,11 @@ #!/usr/bin/env zsh -mmcli -m any --location-get | # get location from modem manager -grep "long\|lat\|alt" | # select only relevant lines +(mmcli -m any --location-get; + mmcli -m any | + grep ignal | + cut -d'%' -f1) | # get location from modem manager +grep "long\|lat\|alt\|ignal" | # select only relevant lines cut -d':' -f2 | # remove colons, cut -d' ' -f2 | # and leading spaces tr '\n' ',' | # csv-esque -cut -d',' -f1-3 # remove unwanted newline
\ No newline at end of file +cut -d',' -f1-4 # remove unwanted newline
\ No newline at end of file |
