diff --git a/home/modules/window_manager/scripts/exchangerate.nix b/home/modules/window_manager/scripts/exchangerate.nix index 8ac2c91..6f5c702 100644 --- a/home/modules/window_manager/scripts/exchangerate.nix +++ b/home/modules/window_manager/scripts/exchangerate.nix @@ -12,6 +12,6 @@ pkgs.symlinkJoin { buildInputs = [ pkgs.makeWrapper ]; postBuild = '' - wrapProgram $out/bin/exchangerate --prefix PATH : @out/bin + wrapProgram $out/bin/exchangerate --prefix PATH : $out/bin ''; } diff --git a/home/modules/window_manager/scripts/external_ip.nix b/home/modules/window_manager/scripts/external_ip.nix index 777657d..36a88c3 100644 --- a/home/modules/window_manager/scripts/external_ip.nix +++ b/home/modules/window_manager/scripts/external_ip.nix @@ -10,6 +10,6 @@ pkgs.symlinkJoin { buildInputs = [ pkgs.makeWrapper ]; postBuild = '' - wrapProgram $out/bin/external_ip --prefix PATH : @out/bin + wrapProgram $out/bin/external_ip --prefix PATH : $out/bin ''; } diff --git a/home/modules/window_manager/scripts/external_ip.sh b/home/modules/window_manager/scripts/external_ip.sh index 0f34815..68257cb 100755 --- a/home/modules/window_manager/scripts/external_ip.sh +++ b/home/modules/window_manager/scripts/external_ip.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash res=$(dig +timeout=1 +short myip.opendns.com @resolver1.opendns.com 2>/dev/null) -if [ -z "$res" ]; then +if [ -z "$res+x" ]; then text="NO CONN" echo "%{F@error@}${text}%{F-}" exit 0