summaryrefslogtreecommitdiff
path: root/mut
diff options
context:
space:
mode:
authorMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-01 10:04:57 +0000
committerMike Vink <59492084+ivi-vink@users.noreply.github.com>2025-01-01 10:04:57 +0000
commit945602c95dbd54c3d952e049e370ece6a7fbff07 (patch)
tree1a189eb2497d9b3e413fba1896a7a9e739d9ce1f /mut
parent9b2131222a6724ec34af4fefc2cc2a540cdd7773 (diff)
clean
Diffstat (limited to 'mut')
-rwxr-xr-xmut/bin/desktop-open-pipe (renamed from mut/bin/xdg-open-pipe)12
-rwxr-xr-xmut/bin/xdg-open2
-rw-r--r--mut/ghostty/config1
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