The restart command does not exists in sway, only reload. See https://github.com/swaywm/sway/blob/1.4/sway/sway.5.scd
Fixes `..../generation/activate: line 181: [: too many arguments` when, for whatever reason, the user has multiple `sway-ipc` sockets. PR #1086
PR #829