Always use Emoji for widgets

This commit is contained in:
Tjark Saul 2020-01-23 19:23:46 +01:00
parent 9bf2c7809c
commit 97159ab6b5
3 changed files with 6 additions and 12 deletions

View file

@ -1,11 +1,5 @@
#!/usr/bin/env fish #!/usr/bin/env fish
if test (uname) = "Darwin"
set -g icons 🚏 ⏱ 🚄 💨
else
set -g icons    
end
for file in ./widgets.d/**/*.fish for file in ./widgets.d/**/*.fish
source $file source $file
end end

View file

@ -1,12 +1,12 @@
if set -q AMBIENT_DE_ICE_STOP_NEXT if set -q AMBIENT_DE_ICE_STOP_NEXT
echo "$icons[1] $AMBIENT_DE_ICE_STOP_NEXT" echo "🚏 $AMBIENT_DE_ICE_STOP_NEXT"
end end
if [ -n "$AMBIENT_DE_ICE_STOP_NEXT_ARRIVE_DELAY" ] if [ -n "$AMBIENT_DE_ICE_STOP_NEXT_ARRIVE_DELAY" ]
echo "$icons[2] $AMBIENT_DE_ICE_STOP_NEXT_ARRIVE_DELAY" echo " $AMBIENT_DE_ICE_STOP_NEXT_ARRIVE_DELAY"
end end
if set -q AMBIENT_DE_ICE_TRAIN_TYPE if set -q AMBIENT_DE_ICE_TRAIN_TYPE
echo "$icons[3] $AMBIENT_DE_ICE_TRAIN_TYPE-$AMBIENT_DE_ICE_VZN" echo "🚄 $AMBIENT_DE_ICE_TRAIN_TYPE-$AMBIENT_DE_ICE_VZN"
end end
if set -q AMBIENT_DE_ICE_SPEED if set -q AMBIENT_DE_ICE_SPEED
echo "$icons[4] $AMBIENT_DE_ICE_SPEED km/h" echo "💨 $AMBIENT_DE_ICE_SPEED km/h"
end end

View file

@ -1,6 +1,6 @@
if set -q AMBIENT_EU_EUROSTAR_TRAIN_ID if set -q AMBIENT_EU_EUROSTAR_TRAIN_ID
echo "$icons[3] Eurostar $AMBIENT_EU_EUROSTAR_TRAIN_ID" echo "🚄 Eurostar $AMBIENT_EU_EUROSTAR_TRAIN_ID"
end end
if set -q AMBIENT_EU_EUROSTAR_SPEED if set -q AMBIENT_EU_EUROSTAR_SPEED
echo "$icons[4] $AMBIENT_EU_EUROSTAR_SPEED km/h" echo "💨 $AMBIENT_EU_EUROSTAR_SPEED km/h"
end end