mime-copy

Crates.iomime-copy
lib.rsmime-copy
version1.0.0
created_at2025-07-04 15:08:42.396888+00
updated_at2025-07-04 15:08:42.396888+00
descriptionA dead-simple utility for copying URLs passed to xdg-open.
homepage
repositoryhttps://github.com/sysrqmagician/mime-copy
max_upload_size
id1738123
size36,707
(sysrqmagician)

documentation

README

mime-copy

crates.io badge

A dead-simple utility for copying URLs passed to xdg-open.

Features

  • Copy opened URLs to clipboard
  • Notify the user via D-Bus

Installing

from source

Run just install inside the repository root. The binary will be installed to $HOME/.local/bin/ and the Desktop entry placed in $HOME/.local/share/applications/. Alternatively, run just install-http If you want to automatically set up the example configuration and copy HTTP/HTTPs URLs.

If you want to set any other handlers, you can do so using the xdg-mime CLI.

  • For example: xdg-mime default mime-copy.desktop x-scheme-handler/ssh x-scheme-handler/telnet would set up copying of URLs with the ssh and telnet schemes.

from crates.io

  1. Run cargo install mime-copy to build and install the binaries.
  2. Place the Desktop file into the applications directory yourself using wget https://github.com/sysrqmagician/mime-copy/raw/refs/heads/main/mime-copy.desktop -o ~/.local/share/applications/mime-copy.desktop.
  3. Set up the mime handlers as described in the previous section.
Commit count: 0

cargo fmt