Skip to content

sysrqmagician/mime-copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published