diff options
Diffstat (limited to '.local/bin/dmenuhandler')
-rwxr-xr-x | .local/bin/dmenuhandler | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/.local/bin/dmenuhandler b/.local/bin/dmenuhandler index 875bbc2..d2c6f83 100755 --- a/.local/bin/dmenuhandler +++ b/.local/bin/dmenuhandler @@ -1,10 +1,10 @@ #!/bin/sh -# Feed this script a link and it will give mew +# Feed this script a link and it will give rofi -dmenu # some choice programs to use to open it. -feed="${1:-$(true | mew -p 'Paste URL or file path')}" +feed="${1:-$(true | rofi -dmenu -p 'Paste URL or file path')}" -case "$(printf "copy url\\nswayimg\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dlp\\nqueue yt-dlp audio" | mew -i -p "Open it with?")" in +case "$(printf "copy url\\nswayimg\\nsetbg\\nPDF\\nbrowser\\nlynx\\nvim\\nmpv\\nmpv loop\\nmpv float\\nqueue download\\nqueue yt-dlp\\nqueue yt-dlp audio" | rofi -dmenu -i -p "Open it with?")" in "copy url") echo "$feed" | wl-copy ;; mpv) setsid -f mpv -quiet "$feed" >/dev/null 2>&1 ;; "mpv loop") setsid -f mpv -quiet --loop "$feed" >/dev/null 2>&1 ;; |