We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60b4c63 commit 7cc047bCopy full SHA for 7cc047b
src/utils/clipboard/linux.sh
@@ -11,19 +11,8 @@ wayland)
11
echo >&2 "no wl-clipboard"
12
exit 1
13
}
14
- filePath=$(wl-copy -o 2>/dev/null | grep ^file:// | cut -c8-)
15
- if [ -z "$filePath" ]; then
16
- if
17
- wl-copy -t image/png image/png -o >"$1" 2>/dev/null
18
- then
19
- echo "$1"
20
- else
21
- rm -f "$1"
22
- echo "no image"
23
- fi
24
25
- echo "$filePath"
26
+ wl-paste > "$1" 2>/dev/null
+ echo "$1"
27
;;
28
x11 | tty)
29
# require xclip(see http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script/677212#677212)
0 commit comments