A dead-simple utility for copying URLs passed to xdg-open.
- Copy opened URLs to clipboard
- Notify the user via D-Bus
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.
- Run
cargo install mime-copy
to build and install the binaries. - 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
. - Set up the mime handlers as described in the previous section.