feat(home/hyprland): simplify remote

This commit is contained in:
Gabriel Fontes
2024-06-24 17:20:50 -03:00
parent 840c3ef85f
commit 398b40a613
@@ -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
[