Debian 安装 Flameshot 和迅雷以及 Neovim 剪切板
Flameshot 直接从仓库安装 flameshot 1 sudo apt install flameshot 要在 Wayland 下面可以复制粘贴图片还需安装: 1 sudo apt install xdg-desktop-portal xdg-desktop-portal-kde wl-clipboard 为了让 flameshot 在 wayland 和 x11 下都可以使用剪切板,可以编写一个小脚本: 1 2 3 4 5 if [[ $XDG_SESSION_TYPE == "wayland" ]] || [[ -n $WAYLAND_DISPLAY ]]; then flameshot gui -c --raw | wl-copy else flameshot gui -c fi 将这一个脚本压缩为一行: 1 [[ $XDG_SESSION_TYPE == "wayland" ]] || [[ -n $WAYLAND_DISPLAY ]] && flameshot gui -c --raw | wl-copy || flameshot gui -c Flameshot 的 GitHub 仓库 Issue 里面有讨论这个问题 1 https://github.com/flameshot-org/flameshot/issues/2848 Neovim 剪切板 和上面的 Flameshot 需要 wl-clipboard 一样,在 X11 环境里面也需要: ...