diff options
author | awy <awy@awy.one> | 2025-08-14 05:46:25 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-08-14 05:46:25 +0300 |
commit | 222fe9a9ffc5430ea28173f01482f30b26f22648 (patch) | |
tree | d11094fe10c854cd23dfa5f49850e1facfefe116 /.local/bin/dmenuhandler | |
parent | 9e12eb5b61daa6fc864301893bc6242614777d76 (diff) | |
download | hyprdots-222fe9a9ffc5430ea28173f01482f30b26f22648.tar.gz |
update
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 d2c6f83..875bbc2 100755 --- a/.local/bin/dmenuhandler +++ b/.local/bin/dmenuhandler @@ -1,10 +1,10 @@ #!/bin/sh -# Feed this script a link and it will give rofi -dmenu +# Feed this script a link and it will give mew # some choice programs to use to open it. -feed="${1:-$(true | rofi -dmenu -p 'Paste URL or file path')}" +feed="${1:-$(true | mew -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" | rofi -dmenu -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" | mew -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 ;; |