added copy to clipboard script
This commit is contained in:
parent
3509cb94dd
commit
647415fad1
12
.local/share/scripts/copy-to-clipboard.sh
Executable file
12
.local/share/scripts/copy-to-clipboard.sh
Executable file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
if test -t 0; then
|
||||
>&2 echo "Provide a file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
xclip -i -selection "clipboard" < /dev/stdin
|
||||
|
||||
notify-send -u low "${1:-Copied}"
|
||||
|
Loading…
Reference in New Issue
Block a user