diff options
author | awy <awy@awy.one> | 2025-07-30 20:30:23 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-07-30 20:30:23 +0300 |
commit | 6a42018cf2d55f9a8e8f9809415556cd50028590 (patch) | |
tree | 93e6871b100832b6fd0942e4586729c7580270a3 /.local/bin/dmenuhandler | |
parent | bd77fbce81efc16fc91dd7cc9d9807e27d70d064 (diff) | |
download | hyprdots-6a42018cf2d55f9a8e8f9809415556cd50028590.tar.gz |
rofi
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 ;; |