mirror of
https://github.com/liclac/ambient
synced 2024-11-21 19:33:08 +00:00
Merge pull request #11 from rrika/master
Add TransPennine Express to list of recognized SSIDs
This commit is contained in:
commit
2cb14704fe
3 changed files with 7 additions and 1 deletions
|
@ -18,6 +18,9 @@ case "SWR WiFi"
|
|||
case "VirginTrainsEC-WiFi"
|
||||
set ambient_icomera_country GB
|
||||
set ambient_icomera_provider "Virgin Trains East Coast"
|
||||
case "TPE Wi-Fi"
|
||||
set ambient_icomera_country GB
|
||||
set ambient_icomera_provider "TransPennine Express"
|
||||
case "SJ"
|
||||
set ambient_icomera_country SE
|
||||
set ambient_icomera_provider SJ
|
||||
|
|
|
@ -3,7 +3,7 @@ function ambient_get_ssid
|
|||
if test (uname) = "Darwin"
|
||||
set -g ambient_ssid (/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | sed -n 's/^ *SSID: //p')
|
||||
else
|
||||
set -g ambient_ssid (iw dev | grep ssid | awk '{print $2}')
|
||||
set -g ambient_ssid (iw dev | grep ssid | sed -n 's/^\s*ssid //p')
|
||||
end
|
||||
end
|
||||
echo $ambient_ssid
|
||||
|
|
3
widgets.d/trains/_icomera.fish
Normal file
3
widgets.d/trains/_icomera.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
if set -q AMBIENT_ICOMERA_POSITION_SPEED
|
||||
echo "💨 $AMBIENT_ICOMERA_POSITION_SPEED km/h"
|
||||
end
|
Loading…
Reference in a new issue