Terminal - Mistium/Origin-OS GitHub Wiki
OTS
Jumping, loops, and conditions
Managing and viewing files with OTS
Other
htop
Returns a list of processes and how long they take to render in milliseconds
The system returns an app list
Upload
Allows you to upload files from your computer into originOS
Get
get network
returns an integer of how many network requests are currently in execution
collect the value in osl using the "data" variable
get logs
returns an array of system logs
collect the value in osl using the "data" variable
get filepaths
returns an array of every file path in the system
collect the value in osl using the "data" variable
get windowpositions
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
]
get packetlist
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
]
get heapinf
returns the info about the js heap (is not accessible using "data")
get mediadevices
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
Flags donotdisturb
flags donotdisturb set true
flags donotdisturb set false
flags donotdisturb get
(Sets osl variable "data" to the state of donotdisturb)
Flags allowjs
flags allowjs true
flags allowjs false
enables and disables the use of the eval function in all of osl
System
kill app_name
Force closes an application
connect
Reconnects to the networking system
exit
Closes the window
clear
Sets the osl variable "terminal" to []
Info
Gives the user data about their current origin version and runtime
Shutdown
Reboots the OS and uploads your files
Legacy
-get.windows
Returns a list of window names, ids, frame times and errors (in that order)
Use in osl
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
System wallpapermode
Sets the wallpaper display mode
system wallpapermode stretch
system wallpapermode fill
system wallpapermode fit
System wallpaper
Sets the wallpaper through a url
system wallpaper url
System scrollspeed
Sets the scrolling multiplier (default 1)
// Reset scroll direction
system scrollspeed 1
// Inverted scroll direction
system scrollspeed -1
System sound
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
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
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
system windows close app_name
// force quits an app
system windows add app_name
// opens an app