8 comments

  • I_complete_me 2 days ago

    > so you won’t need the GUI open to use shortcuts

    I've been looking for a Linux clipboard manager to use over SSH but they all error out with for example (on running SSH in Windows Warp to access a LAN Linux box):

         echo "doodah" | xclip -selection c
        Error: Can't open display: (null)
    
    Here I am trying to copy to the X-11 clipboard in order to paste elsewhere inside the Linux box -- hope that's not too confusing!

    Will your (eventual) clipboard manager work over SSH for this use case?

    • yjftsjthsd-h a day ago

      You can just connect to a running X session from an SSH shell; if your X server is on display :0 (usually the default), then you just

        export DISPLAY=:0
        echo foo | xclip -selection clipboard
      
      This even can work with Wayland, where it becomes

        export WAYLAND_DISPLAY=wayland-1
        echo foo | wl-copy
      
      (Note that AFAICT Wayland sessions number from 1 instead of 0)
  • olejorgenb 2 days ago

    I assume this is X11 only or using one of the wayland protocols which is not supported by all major compositors?

    (The exception likely being Gnome, which seems to be very set against implementing protocols allowing generic applications like this to work)

    • victorevogor 2 days ago

      Yes, the current version is X11-only, and we’re using direct device access (e.g. reading from /dev/input/eventX) to detect global keyboard shortcuts.

  • sparrish 2 days ago

    Interesting idea. Parcellite works better for me though. It's been around forever, captures both 'select' and 'copy' and can paste with a middle click or Ctl-v with or without formatting.

  • spatterl1ght 2 days ago

    how does this compare to KDE's Klipper?

    https://userbase.kde.org/Klipper

    • victorevogor 2 days ago

      Klipper is great if you're using KDE and prefer something integrated with your desktop environment. It gives you a history, popup UI, and mouse-driven selection.

      ClipCapsule is more minimal and focused on a keyboard-only workflow. The idea is that you can hit something like CTRL + SHIFT + 3 and instantly move that item to the top of your clipboard stack, so the next CTRL + V pastes it. No popups, no menus,just fast switching.

      It’s also built in Go and Wails, and listens for raw keyboard events (currently X11-only), so it works outside of any particular desktop environment. Still early, but it’s aimed at people who prefer keeping their hands on the keyboard.