From 11d1dce120d0c78f3b1fc22c89c11db565f2daee Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 23 Mar 2026 17:51:21 +0100 Subject: fuzzel-floating: Add script --- .local/bin/fuzzel-floating | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 .local/bin/fuzzel-floating (limited to '.local/bin') diff --git a/.local/bin/fuzzel-floating b/.local/bin/fuzzel-floating new file mode 100755 index 0000000..4828a3b --- /dev/null +++ b/.local/bin/fuzzel-floating @@ -0,0 +1,16 @@ +#!/bin/sh + +file="$( + { + echo "$XDG_DATA_HOME" + echo "$XDG_DATA_DIRS" | tr : '\n' + } \ + | sed -E -e 's|$|/applications|' \ + | tr '\n' '\0' \ + | find -files0-from - -name "$FUZZEL_DESKTOP_FILE_ID" 2>/dev/null \ + | head -n1 +)" +[ -z "$file" ] && exit 1 +cmd="$(sed -n '/^Exec=/ { s///; s/ *%u//g; p; q; }' "$file")" +[ -z "$cmd" ] && exit 1 +wl-proxy -a "$(basename "$FUZZEL_DESKTOP_FILE_ID" .desktop)-floating" -- $cmd -- cgit v1.2.3