Add notification to copy
This commit is contained in:
parent
572e929b58
commit
80c39ff049
1 changed files with 2 additions and 1 deletions
|
@ -38,11 +38,12 @@ self: super:
|
|||
copy = super.writeScriptBin "copy" ''
|
||||
function clean() {
|
||||
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 < /dev/stdin
|
||||
${super.libnotify}/bin/notify-send -u low -t 10000 'Clipboard set'
|
||||
|
||||
clean &
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue