summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsnailed <luca@snaile.de>2023-04-12 12:11:29 +0000
committerGitHub <noreply@github.com>2023-04-12 12:11:29 +0000
commitd4ff2ebaf3e88efe20cae0d1e592fddfc433c96e (patch)
tree06f7997a5492d2420f2d7f29ba4308e60630d7d2
parent5c92a1770f1a496cfa188632e2bf3d34bd325ad4 (diff)
downloadeibhear-d4ff2ebaf3e88efe20cae0d1e592fddfc433c96e.tar.gz
eibhear-d4ff2ebaf3e88efe20cae0d1e592fddfc433c96e.tar.zst
eibhear-d4ff2ebaf3e88efe20cae0d1e592fddfc433c96e.zip
fix shellcheck (#1301)
Shellcheck wines when printf doesn't get an argument
-rwxr-xr-x.local/bin/dmenuhandler2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/dmenuhandler b/.local/bin/dmenuhandler
index 0b3c713..acfd71b 100755
--- a/.local/bin/dmenuhandler
+++ b/.local/bin/dmenuhandler
@@ -2,7 +2,7 @@
# Feed this script a link and it will give dmenu
# some choice programs to use to open it.
-feed="${1:-$(printf "%s" | dmenu -p 'Paste URL or file path')}"
+feed="${1:-$(true | dmenu -p 'Paste URL or file path')}"
case "$(printf "copy url\\nsxiv\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dlp\\nqueue yt-dlp audio" | dmenu -i -p "Open it with?")" in
"copy url") echo "$feed" | xclip -selection clipboard ;;