diff options
| author | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2024-12-12 22:41:27 +0000 |
|---|---|---|
| committer | Mike Vink <59492084+ivi-vink@users.noreply.github.com> | 2024-12-12 22:41:27 +0000 |
| commit | aa5794e7e70b63393043a09a49e16a5f1235aae3 (patch) | |
| tree | f17a060cc36ae0f4e3d32cc6a17e77589b99170d /mut/bin | |
| parent | 33e45ed710d478e01db665d4355e9f4b51ecc3c0 (diff) | |
push again for once
Diffstat (limited to 'mut/bin')
| -rwxr-xr-x | mut/bin/xdg-open | 2 | ||||
| -rwxr-xr-x | mut/bin/xdg-open-pipe | 9 |
2 files changed, 11 insertions, 0 deletions
diff --git a/mut/bin/xdg-open b/mut/bin/xdg-open new file mode 100755 index 0000000..af5b213 --- /dev/null +++ b/mut/bin/xdg-open @@ -0,0 +1,2 @@ +#!/bin/bash +echo "$@" | tee "$HOME/.xdg-open-pipe" diff --git a/mut/bin/xdg-open-pipe b/mut/bin/xdg-open-pipe new file mode 100755 index 0000000..7ae22e1 --- /dev/null +++ b/mut/bin/xdg-open-pipe @@ -0,0 +1,9 @@ +#!/usr/bin/env bash +pipe="$HOME/.xdg-open-pipe" +rm "$pipe" +mkfifo "$pipe" +while true; do + { + /nix/store/zcw13r2mmpzlnv2yvfl13mcpky3hivq1-system-path/bin/xdg-open "$(cat "$pipe")" +} >/dev/null 2>&1 +done |
