mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-15 17:18:08 -05:00
added a clipboard daemon, changed default services
This commit is contained in:
parent
fbef63f9b0
commit
2c9bb81fe9
@ -1,2 +1,3 @@
|
|||||||
minitel.lua
|
minitel.lua
|
||||||
tape-iofs.lua
|
tape-iofs.lua
|
||||||
|
fsmanager.service
|
||||||
|
11
service/clipboard.lua
Normal file
11
service/clipboard.lua
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
local lc = computer.uptime()
|
||||||
|
_G.clip = ""
|
||||||
|
while true do
|
||||||
|
local eT = {coroutine.yield()}
|
||||||
|
if eT[1] == "clipboard" then
|
||||||
|
if computer.uptime() > lc + 5 then
|
||||||
|
_G.clip = ""
|
||||||
|
end
|
||||||
|
_G.clip = _G.clip .. eT[3]
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue
Block a user