Using Custom Shortcuts of DE as Diodon hotkey

A hotkey feature to open the clipboard history has been available in Diodon since its very first release and is a major part of its usability. Unfortunately this hotkey has not always worked as expected, causing issues on certain desktop environments or stopped working altogether caused by regressions of updated libraries. Furthermore, customization of the hotkey did not always work such as using Symbols. Sometimes even the order how the keys were pressed mattered. All in all this feature has not been very stable. The main underlying problem for this is that there is no standard across desktop environments to register global hotkeys.

Looking at all those issues it is kind of obvious that handling of a hotkey should not be the responsibility of Diodon but be handled by the desktop environment itself. Therefore the decision has been made to drop the internal Diodon hotkey feature altogether as per version 1.4.0. Instead a custom shortcut needs to be registered through the settings offered by whatever desktop environment you use.

For GNOME/Unity this can be done by opening Keyboard app through the Dash/Activities overview. There you go to Shortcuts -> Custom Shortcuts and add a new one with the name “Diodon” and command “/usr/bin/diodon”. Afterwards assign your preferred hotkey and you are done.
Custom-Shortcut-Diodon

Unfortunately for Diodon at this point it is not possible to register this Custom Shortcut during package installation. So as of version 1.4.0 registration of a hotkey needs to be done manually. Additionally the special keybinding to browse through the history will not work anymore as Diodon doesn’t know anymore what keybinding was used. (Of course you can still use the up and down or k and j keys to cycle through the history.)
We believe though the additional stability in the hotkey feature makes up for this one-time manual step.

If you have any questions or concerns about this change leave a comment – feedback is always appreciated. And if you actually know a way how an application could register a custom shortcut during installation best have a look at this question.

33 thoughts on “Using Custom Shortcuts of DE as Diodon hotkey

  1. hi,

    It would be great if there was an option to periodically delete all saved items…

    Even a command line option would be good… (cause we could create a cron job)

    + a Question:
    If the list is set to “show” 25 items…
    older ones are saved, too?

    Than you for developing Diodon !! 🙂

    Peter

  2. Great Tool thank you!!!
    I just come from MS Windows where I used Ditto – quite similar 😉

    But I miss often/ very much to search in my list. In Ditto it works perfectly i this way:
    like in Diodon open the list of entry, then just start typing the searched text – it is a field at the bottom of the list.

    Is there hope to get this feature?
    Also nice would be the possibility to delete single entries.

    Thank you!

    And as I am new: How to donate for the tool (in general for Linux Mint open Source contributions)

    greets
    Sven

    1. Thanks for your feedback and reaching out. Welcome in the Linux world.

      There is an feature request concerning a searchable history see here https://bugs.launchpad.net/diodon/+bug/891042 but currently no-one working on it. If this is a must feature for you, you can have a look at the alternative clipboard managers see https://alternativeto.net/software/diodon/?platform=linux maybe you find something suitable.

      In terms of donation it is great that you think about this. As Diodon is in maintenance mode there is no need for donations. However you can always donate to Linux Mint or any other open source projects you use, I am sure they will certainly appreciate it.

      1. Thank you for the quick response. The tool Klipper looks interesting to me- close to Ditto under Microsoft…
        Regards,
        Sven

  3. I changed the settings to store 100 entries (yes, I want to keep the copy history as long as possible). But now I can not reach the «preferences» any more.
    What can I do?

  4. I am using Linux Mint 22.1 Cinnamon, version 6.4.7
    In Libre Writer, when I press super + v, ‘v’ appears in the document. I’d like the keyboard history instead.
    So I have installed Diodon and setup the Keyboard to use the Super + v key as advised by posts here and now when I press super+v, either the clipboard history appears, or more often than not, nothing happens.
    Why does it sometimes work and sometimes not?
    Thank you for any assistance.

  5. Great! My Linux Mint 22 in Virtual Box does not use Super+V (Windows 11’s version of Clipboard shortcut), so I use that keybinding for Diodon in my

    Menu > System > Preferences > Keyboard > Shortcuts > Custom Shortcuts

    Name: Diodon
    Command: /usr/bin/diodon
    Keyboard bindings: Super+V

  6. Thanks for this app, its very cool ! I only miss the option to paste when selecting, because now i must press shortcut, select the desired clipboard and then press ctrl + v. Would be cool if i can simply select and it automatically pastes 🙂

    Chheeers

    1. Of course you can simply select and it automatically pastes. The default settings allow this except you’ve altered it:)

      Check “Automatically paste selected item” under Preferences>Clipboard

  7. It doesn’t seem possible to hide diodon menu anymore. After menu is opened the only option to exit it is to pick some item.

  8. In Ubuntu:
    Settings>Keyboard>Keyboard Shortcuts>View and Customize Shortcuts>Custom Shortcuts>”+”

    My setting “Set Custom Shortcut”

    Name: 🐡️ Diodon Clipboard History
    Command: /usr/bin/diodon
    Shortcut: Ctrl+Alt+V

    1. terimakasih banyak… ini berhasil di linuxmint 21.1 codename: vera. ubuntu codename: jammy

      Translated:
      thanks a lot… it worked on linux mint 21.1 codename: vera. ubuntu codename: jammy

  9. Super-V (Win-V) keyboard shortcut (as used for Windows smart clipboard) doesn’t show diodon (nothing happens – at least in Mint 20.1).

    The script below makes it work:

    #!/bin/bash
    sleep 0.1
    /usr/bin/diodon

    Hope this helps.

          1. As this is a race condition between X events (Xorg) and GTK events the hotkey actually works with Wayland without any problems (at least on my machine).

      1. What I did is I made a text file named ‘diodon-shortcut’ in my home `/home/fenglengshun/.local/bin`, write Adam’s three line commands in the file, made it executable by right-click > properties > permission, then put in `/home/fenglengshun/.local/bin/diodon-shortcut` as the shortcut’s command.

        I have tested this in Ubuntu Budgie 21.10, and it works. I’ve also tried “sleep 0.1 && /usr/bin/diodon” and “~/.local/bin/diodon-shortcut” but neither works, it has to specifically be `/home/fenglengshun/.local/bin/diodon-shortcut`as the command.

  10. Beautiful!
    Although it’d be nice to have this OS binding loadable along with Diodon, it’d also be nice for the OS to give me a massage.
    Still, maybe note this need in the Diodon documentation? The panel has great mover-over guides, why not add this to that?
    Cheers!

Leave a Reply to Feng Lengshun Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.