diff --git a/home.nix b/home.nix index 3bc9f24..1cf1c0a 100644 --- a/home.nix +++ b/home.nix @@ -104,7 +104,6 @@ in # check träwelling traewelling set_color normal - echo end function edit-todo hx ~/sync/todo.txt diff --git a/traewelling.script.nix b/traewelling.script.nix index afb155c..43f581b 100644 --- a/traewelling.script.nix +++ b/traewelling.script.nix @@ -31,6 +31,7 @@ pkgs.writeShellScriptBin "traewelling" '' date -d "@$(( $(date -d "$(j .train.destination.arrival)" +%s) - $(date +%s) - 60 * 60))" +%H:%M ) at $(j .train.destination.rilIdentifier) $(j .train.destination.arrivalPlatformReal)" echo "bahn.expert: https://bahn.expert/details/$(j .train.lineName | sed -E 's/(.*?) .*/\1/g')%20$(j .train.journeyNumber)" + echo fi ''