Log In  
Follow
Feyn
[ :: Read More :: ]

Clip is a clipboard manager that adds a simple clipboard to your tooltray

Maybe it's not so handy as other clipboard managers, but I think it's good enough for the first version

Feel free to comment if you find any bugs or have suggestions!

Cart #clip-0 | 2024-03-20 | Embed ▽ | License: CC4-BY-NC-SA
3

P#143949 2024-03-20 15:39

[ :: Read More :: ]

makes locs on desktop

usage: loc path (name)

put code in appdata/system/util/loc.lua
you can change file name to whatever you like, like ln.lua to use as ln

function ext(str)
    for i=1,#str do
        if (str:sub(i,i)==".") return i-1
    end
    return #str
end
local orig=env().argv[1]
if (not orig) print("usage: "..env().argv[0].." path (name)") exit(1)
if (orig:sub(#orig)=="/") orig=orig:sub(1,#orig-1)
if (orig:sub(1,1)!="/") orig=fetch("/ram/system/pwd.pod").."/"..orig
if (not fstat(orig)) print("file does not exist ("..orig..")") exit(1)
local name=env().argv[2] and #env().argv[2]!=0 and env().argv[2] or orig:basename()
name=name:sub(1,ext(name))
local targ="/desktop/"..name..".loc"
if (fstat(targ)) print("loc already exists ("..targ..")") exit(1)
store(targ,{location=orig})
local orig_meta=fetch_metadata(orig)
local targ_meta=fetch_metadata(targ)
if (orig_meta and orig_meta.icon) then
    targ_meta.icon=fetch_metadata(orig).icon
    store_metadata(targ,targ_meta)
end
print("-> "..targ.." done")
P#143431 2024-03-17 03:55 ( Edited 2024-03-18 09:43)

[ :: Read More :: ]

yay my fiwst game owo!!
(may be buggy!!)

Cart #first_game-2 | 2023-04-12 | Code ▽ | Embed ▽ | No License
1

P#128479 2023-04-12 17:53 ( Edited 2023-04-12 18:57)