Adding a copy utility (thx Mats)
This commit is contained in:
parent
0f175c9ccc
commit
84e19fe583
1 changed files with 12 additions and 0 deletions
|
@ -36,5 +36,17 @@ self: super:
|
|||
--replace 'system.nixosVersion' 'system.nixos.version'
|
||||
'';
|
||||
});
|
||||
# Originally from Mats Rauhala ®2018
|
||||
copy = super.writeScriptBin "copy" ''
|
||||
function clean() {
|
||||
sleep 10
|
||||
echo cleaning
|
||||
${super.xclip}/bin/xclip -sel clipboard -i /dev/null
|
||||
}
|
||||
|
||||
${super.xclip}/bin/xclip -sel clipboard < /dev/stdin
|
||||
|
||||
clean &
|
||||
'';
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue