diff options
Diffstat (limited to 'mut')
| -rwxr-xr-x | mut/bin/desktop-open-pipe (renamed from mut/bin/xdg-open-pipe) | 12 | ||||
| -rwxr-xr-x | mut/bin/xdg-open | 2 | ||||
| -rw-r--r-- | mut/ghostty/config | 1 |
3 files changed, 10 insertions, 5 deletions
diff --git a/mut/bin/xdg-open-pipe b/mut/bin/desktop-open-pipe index 7ae22e1..0ef1901 100755 --- a/mut/bin/xdg-open-pipe +++ b/mut/bin/desktop-open-pipe @@ -1,9 +1,13 @@ #!/usr/bin/env bash -pipe="$HOME/.xdg-open-pipe" -rm "$pipe" -mkfifo "$pipe" +name="$HOME/.cache/desktop-open.pipe" while true; do { - /nix/store/zcw13r2mmpzlnv2yvfl13mcpky3hivq1-system-path/bin/xdg-open "$(cat "$pipe")" + /nix/store/zcw13r2mmpzlnv2yvfl13mcpky3hivq1-system-path/bin/xdg-open "$(cat "$name")" } >/dev/null 2>&1 done + +finish () { + rm -vf "$name" +} + +trap finish EXIT diff --git a/mut/bin/xdg-open b/mut/bin/xdg-open index af5b213..6a5d254 100755 --- a/mut/bin/xdg-open +++ b/mut/bin/xdg-open @@ -1,2 +1,2 @@ #!/bin/bash -echo "$@" | tee "$HOME/.xdg-open-pipe" +echo "$@" | tee "$HOME/.cache/desktop-open.pipe" diff --git a/mut/ghostty/config b/mut/ghostty/config index dafa2b7..656cc20 100644 --- a/mut/ghostty/config +++ b/mut/ghostty/config @@ -8,6 +8,7 @@ keybind = alt+shift+k=increase_font_size:1 keybind = alt+shift+j=decrease_font_size:1 keybind = ctrl+zero=unbind +keybind = ctrl+enter=unbind theme=GruvboxLuke window-decoration=false confirm-close-surface=false |
