-
-
Notifications
You must be signed in to change notification settings - Fork 17
Terminal
Jumping, loops, and conditions
Managing and viewing files with OTS
Returns a list of processes and how long they take to render in milliseconds
The system returns an app list
Allows you to upload files from your computer into originOS
returns an integer of how many network requests are currently in execution
collect the value in osl using the "data" variable
returns an array of system logs
collect the value in osl using the "data" variable
returns an array of every file path in the system
collect the value in osl using the "data" variable
returns an array of the window positions
collect the value in osl using the "data" variable
example:
[
"-1,0", // the window is snapped horizontally left and vertically middle
"1,1", // the window is snapped horizontally right and vertically top
"" // the window is not snapped
]
returns an array of all packets sent to and from your device
collect the value in osl using the "data" variable
example:
[
"{\"timestamp\":1708477125284,\"payload\":\"Upload_Files\",\"recipient\":\"origin.System\",\"network_identifier\":\"Quick_Settings\"}",
"{\"timestamp\":1708476833098,\"payload\":[160347,25000000,0.00641388],\"source\":\"origin.System\"}", // from origin.System
]
returns the info about the js heap (is not accessible using "data")
returns an object of your current media devices
collect the value in osl using the "data" variable
example:
{
"inputDevices": [
"Default - AirPods",
"AirPods",
"Mist's iphoneXS Microphone",
"MacBook Pro Microphone (Built-in)",
"Immersed (Virtual)",
"Meta Quest Remote Desktop Audio (Virtual)",
"Virtual Desktop Mic (Virtual)",
"Virtual Desktop Speakers (Virtual)"
],
"outputDevices": [
"Default - AirPods",
"AirPods",
"MacBook Pro Speakers (Built-in)",
"Immersed (Virtual)",
"Meta Quest Remote Desktop Audio (Virtual)",
"Virtual Desktop Mic (Virtual)",
"Virtual Desktop Speakers (Virtual)"
]
}
flags donotdisturb set true
flags donotdisturb set false
flags donotdisturb get
(Sets osl variable "data" to the state of donotdisturb)
flags allowjs true
flags allowjs false
enables and disables the use of the eval function in all of osl
Force closes an application
Reconnects to the networking system
Closes the window
Sets the osl variable "terminal" to []
Gives the user data about their current origin version and runtime

Reboots the OS and uploads your files
Returns a list of window names, ids, frame times and errors (in that order)
terminal "-get.windows"
log windows_names
// A variable called windows_names is logged
log windows_ids
// A variable called windows_ids is logged
log windows_drawtimes
// A variable called windows_drawtimes is logged
Sets the wallpaper display mode
system wallpapermode stretch
system wallpapermode fill
system wallpapermode fit
Sets the wallpaper through a url
system wallpaper url
Sets the scrolling multiplier (default 1)
// Reset scroll direction
system scrollspeed 1
// Inverted scroll direction
system scrollspeed -1
Sets the wallpaper display mode
system sound get volume
// Set the osl "return" variable to the system volume from 0-100
system sound set volume
// Set the system volume from 0-100
system runtime fps_limit 1-250
// Sets the maximum fps of the system
system runtime interpolate true/false
// Sets whether to use interpolation or not
system display reset
// Resets all display effects
system display refresh
// Clears the screen cache
system display pixelated true/false
// Changes the screen mode. Most effective when the render resolution is low
system display get effect
// Sets the variable "return" to the effect data
system display set effect value
// Sets the canvas display effect to a value
Effects list:
blur
constrast
saturation
colour_shift
brightness
invert
sepia
scale_x
scale_y
skew_x
skew_y
offset_x
offset_y
rotation
system windows close app_name
// force quits an app
system windows add app_name
// opens an app
originOS is a web desktop gui with a self contained file system, programming languages, internet system and a whole lot of stuff an os should be able to do Use originOS here