Add notification to copy

This commit is contained in:
Martin Potier 2019-06-03 09:11:50 +03:00
parent 572e929b58
commit 80c39ff049
No known key found for this signature in database
GPG key ID: D4DD957DBA4AD89E

View file

@ -38,11 +38,12 @@ self: super:
copy = super.writeScriptBin "copy" '' copy = super.writeScriptBin "copy" ''
function clean() { function clean() {
sleep 10 sleep 10
echo cleaning ${super.libnotify}/bin/notify-send -u low 'Clipboard cleaned'
${super.xclip}/bin/xclip -sel clipboard -i /dev/null ${super.xclip}/bin/xclip -sel clipboard -i /dev/null
} }
${super.xclip}/bin/xclip -sel clipboard < /dev/stdin ${super.xclip}/bin/xclip -sel clipboard < /dev/stdin
${super.libnotify}/bin/notify-send -u low -t 10000 'Clipboard set'
clean & clean &
''; '';