From f3406f1ae9ffda28dce4e9fdf6d4b95a2ec52f64 Mon Sep 17 00:00:00 2001 From: MaeIsBad Date: Tue, 11 Oct 2022 10:02:26 +0200 Subject: [PATCH] Update riley gender api endpoints --- users/profiles/sway/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)" ''; };