From 398b40a613138e5543f9cedcbb1eaf75b6777972 Mon Sep 17 00:00:00 2001 From: Gabriel Fontes Date: Mon, 24 Jun 2024 17:20:50 -0300 Subject: [PATCH] feat(home/hyprland): simplify remote --- home/gabriel/features/desktop/hyprland/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home/gabriel/features/desktop/hyprland/default.nix b/home/gabriel/features/desktop/hyprland/default.nix index d67ed122..295ba3c8 100644 --- a/home/gabriel/features/desktop/hyprland/default.nix +++ b/home/gabriel/features/desktop/hyprland/default.nix @@ -168,8 +168,9 @@ notify-send = lib.getExe' pkgs.libnotify "notify-send"; defaultApp = type: "${lib.getExe pkgs.handlr-regex} launch ${type}"; remote = lib.getExe (pkgs.writeShellScriptBin "remote" '' - host="$(cat ~/.current-remote)" - waypipe ssh "$host" "\$SHELL -c '$@ && sleep 5'" + socket="$(basename "$(find ~/.ssh -name 'master-*' | head -1 | cut -d ':' -f1)")" + host="''${socket#master-}" + ssh "$host" "$@" ''); in [