diff --git a/users/profiles/sway/default.nix b/users/profiles/sway/default.nix index 01b76ce..d439bfc 100644 --- a/users/profiles/sway/default.nix +++ b/users/profiles/sway/default.nix @@ -67,8 +67,9 @@ in exec = pkgs.writeShellScript "riley-gender" '' set -euo pipefail until ping -c1 google.com >/dev/null 2>&1; do :; done - gender="$(${pkgs.curl}/bin/curl 'https://rly.cx/api/gender')" - pronouns="$(${pkgs.curl}/bin/curl 'https://rly.cx/api/pronouns')" + summary="$(${pkgs.curl}/bin/curl 'https://riley.lgbt/api/summary')" + pronouns="$(echo $summary | jq -r '.pronouns')" + gender="$(echo $summary | jq -r '.gender')" echo -n "Riley: $gender ($pronouns)" ''; };