Debian-%E5%AE%89%E8%A3%85-Flameshot-%E5%92%8C%E8%BF%85%E9%9B%B7%E4%BB%A5%E5%8F%8A-Neovim-%E5%89%AA%E5%88%87%E6%9D%BF/ #19
Replies: 1 comment 1 reply
-
|
要迅雷做什么 🤓🙈🥵 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Debian-%E5%AE%89%E8%A3%85-Flameshot-%E5%92%8C%E8%BF%85%E9%9B%B7%E4%BB%A5%E5%8F%8A-Neovim-%E5%89%AA%E5%88%87%E6%9D%BF/
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 里面有讨论这个问题
https://hcy-asleep.github.io/Debian-%E5%AE%89%E8%A3%85-Flameshot-%E5%92%8C%E8%BF%85%E9%9B%B7%E4%BB%A5%E5%8F%8A-Neovim-%E5%89%AA%E5%88%87%E6%9D%BF/
Beta Was this translation helpful? Give feedback.
All reactions