diff --git a/ambient.d/trains/_icomera.fish b/ambient.d/trains/_icomera.fish index 9bf9640..e34fc98 100644 --- a/ambient.d/trains/_icomera.fish +++ b/ambient.d/trains/_icomera.fish @@ -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 diff --git a/functions.d/ambient_get_ssid.fish b/functions.d/ambient_get_ssid.fish index cfc949b..bdc9684 100644 --- a/functions.d/ambient_get_ssid.fish +++ b/functions.d/ambient_get_ssid.fish @@ -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 diff --git a/widgets.d/trains/_icomera.fish b/widgets.d/trains/_icomera.fish new file mode 100644 index 0000000..68f7023 --- /dev/null +++ b/widgets.d/trains/_icomera.fish @@ -0,0 +1,3 @@ +if set -q AMBIENT_ICOMERA_POSITION_SPEED + echo "💨 $AMBIENT_ICOMERA_POSITION_SPEED km/h" +end