types.ts 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732
  1. import type { ImageAdjustments } from './imageAdjustments'
  2. import type { VideoSegment } from './videoTrim'
  3. import type { DesktopEnvironment } from './desktop'
  4. import type { Appearance } from './appearance'
  5. import type { Language, LanguagePreference } from './i18n'
  6. import type { CardBorders } from './cardBorders'
  7. import type { CardBadges } from './cardBadges'
  8. export type { ImageAdjustments } from './imageAdjustments'
  9. export type WallpaperType = 'scene' | 'video' | 'web' | 'application'
  10. export type XrayMode = 'normal' | 'full' | 'disabled'
  11. /** Matches linux-wallpaperengine's --scaling choices */
  12. export type ScalingMode = 'default' | 'stretch' | 'fit' | 'fill' | 'center'
  13. export type WallpaperBackend =
  14. | 'swww'
  15. | 'hyprpaper'
  16. | 'swaybg'
  17. | 'feh'
  18. | 'xwallpaper'
  19. | 'gsettings'
  20. | 'qdbus'
  21. | 'windows'
  22. | 'macos'
  23. | 'auto'
  24. export type WorkshopQueryType =
  25. | 'RankedByVote'
  26. | 'RankedByPublicationDate'
  27. | 'RankedByTrend'
  28. | 'RankedByTotalUniqueSubscriptions'
  29. | 'RankedByTextSearch'
  30. | 'RankedByLastUpdatedDate'
  31. export type ContentRating = 'everyone' | 'questionable' | 'mature' | 'uncategorized'
  32. export interface LedSettings {
  33. enabled: boolean
  34. server: string
  35. /** percent, 100 leaves the colors as they are */
  36. brightness: number
  37. boost: boolean
  38. reduceFps: boolean
  39. }
  40. export interface LoaderSettings {
  41. textures: boolean
  42. shaders: boolean
  43. /** worker threads, 0 lets the engine pick */
  44. threads: number
  45. }
  46. /** See getSteamIdentity() */
  47. export type SteamIdentity = 'wallpaper-engine' | 'standalone'
  48. export interface ExtraLibrary {
  49. path: string
  50. name: string
  51. }
  52. export type VerifyProblem =
  53. | 'notInstalled'
  54. | 'needsUpdate'
  55. | 'missingFolder'
  56. | 'brokenProject'
  57. | 'missingMainFile'
  58. | 'missingData'
  59. | 'missingDependency'
  60. export interface VerifyProgressEvent {
  61. done: number
  62. total: number
  63. }
  64. export interface VerifyResult {
  65. checked: number
  66. skipped: number
  67. damaged: string[]
  68. }
  69. export interface RepairResult {
  70. /** rechecked in the background once finished */
  71. started: number
  72. failed: number
  73. }
  74. export interface WallpaperMeta {
  75. id: string
  76. title: string
  77. description?: string
  78. type: WallpaperType
  79. contentRating?: ContentRating
  80. previewUrl?: string
  81. previewLocal?: string
  82. localPath?: string
  83. file?: string
  84. fileSize?: number
  85. createdAt: number
  86. updatedAt: number
  87. subscribed: boolean
  88. appliedCount: number
  89. lastAppliedAt?: number
  90. authorSteamId?: string
  91. authorName?: string
  92. source: 'workshop' | 'local' | 'backup'
  93. tags: string[]
  94. /** Workshop resolution tags, e.g. "Ultrawide 3440 x 1440" */
  95. resolutions?: string[]
  96. categories: string[]
  97. downloading?: boolean
  98. downloadFailed?: boolean
  99. fpsOverride?: number
  100. volumeOverride?: number
  101. /** xray reveal covers the whole mask instead of following the mouse */
  102. xrayFullReveal?: boolean
  103. xrayDisabled?: boolean
  104. /** --scaling */
  105. scalingMode?: ScalingMode
  106. /** --zoom on top of scalingMode, 1 = none */
  107. zoom?: number
  108. /** --offset, each axis in [-1, 1] */
  109. offsetX?: number
  110. offsetY?: number
  111. /** --disable-parallax */
  112. disableParallax?: boolean
  113. /** --expand-canvas: shows layers that stick out past the camera */
  114. expandCanvas?: boolean
  115. /** --repair-assets: loads what broken wallpapers meant, e.g. a texture named "" */
  116. repairAssets?: boolean
  117. /** --corner-color, "RRGGBB"/"RRGGBBAA" outside the wallpaper's bounds */
  118. cornerColor?: string
  119. /** WE's image filter, color options and flip (scene and video) */
  120. imageAdjustments?: ImageAdjustments
  121. /** --speed, 1 = normal */
  122. playbackSpeed?: number
  123. /** --video-segments parts, empty plays the whole video */
  124. videoSegments?: VideoSegment[]
  125. /** Old single loop range, read through videoSegmentsOf */
  126. videoStart?: number
  127. videoEnd?: number
  128. backedUp?: boolean
  129. backupDir?: string
  130. /** The workshop copy no longer matches the backup */
  131. backupOutdated?: boolean
  132. /** Removed from the Workshop, set by the unavailable check */
  133. unavailable?: boolean
  134. /** Set by "Verify files", cleared once it checks out */
  135. verifyProblem?: VerifyProblem
  136. /** --disable-object ids or names */
  137. disabledObjects?: string[]
  138. /** --enable-object ids or names */
  139. enabledObjects?: string[]
  140. /** --disable-effect ids or names */
  141. disabledEffects?: string[]
  142. /** --enable-effect ids or names */
  143. enabledEffects?: string[]
  144. /** --set-property name=value */
  145. propertyOverrides?: Record<string, string>
  146. /** --audio-sensitivity id=multiplier, 0 = no pulse, 1 = as authored */
  147. audioSensitivity?: Record<string, number>
  148. /** Sound object id -> volume (0-1), independent of the global volume */
  149. soundVolume?: Record<string, number>
  150. /** Extra launch arguments, changing them always restarts the engine */
  151. customArgs?: string
  152. /** Unset flags fall back to the global setting */
  153. engineFlags?: EngineFlags
  154. compat?: WallpaperCompat
  155. /** Scene with general.hdr on, or a PQ/HLG video. Unset until detected */
  156. hdr?: boolean
  157. /** Scene with a spatialized sound object. Unset until detected */
  158. hrtf?: boolean
  159. customPreview?: string
  160. useOriginalPreview?: boolean
  161. }
  162. export type FullscreenPauseMode = 'default' | 'off' | 'active-only'
  163. /** "ultra" turns on HDR for scenes that ask for it */
  164. type PostProcessingQuality = 'enabled' | 'ultra'
  165. type LightingQuality = 'disabled' | 'low' | 'medium' | 'high' | 'ultra'
  166. /** Only scenes with 3D models use it */
  167. type MsaaQuality = 'none' | 'x2' | 'x4' | 'x8'
  168. /** Per axis */
  169. type SsaaQuality = 'none' | 'x2' | 'x3' | 'x4'
  170. export type HwdecBackend = 'auto' | 'no' | 'vaapi' | 'vaapi-copy' | 'nvdec' | 'nvdec-copy' | 'vulkan'
  171. /** How web wallpapers hand their frames to the engine: shared GPU buffers or a copy through memory */
  172. type WebFramesMode = 'auto' | 'shm' | 'dmabuf'
  173. type FrameLimiter = 'budget' | 'fixed'
  174. /** auto = while the default output is headphones */
  175. export type HrtfMode = 'auto' | 'on' | 'off'
  176. export type TransitionMode = 'none' | 'fade' | 'slide-left' | 'slide-right' | 'wipe-left' | 'wipe-right' | 'zoom'
  177. /** --transition-duration in milliseconds */
  178. export type TransitionDuration = '300' | '600' | '1000' | '1500' | '2500'
  179. /** FPS limit on battery, off = same as plugged in */
  180. export type BatteryFps = 'off' | 'pause' | '10' | '15' | '20' | '30'
  181. /** Minutes without input before wallpapers pause */
  182. export type IdlePause = 'off' | '1' | '5' | '10' | '15' | '30'
  183. export interface EngineFlags {
  184. disableParticles?: boolean
  185. noDesktopIcons?: boolean
  186. disableMouse?: boolean
  187. disableAnimations?: boolean
  188. noAudioProcessing?: boolean
  189. fullscreenPause?: FullscreenPauseMode
  190. /** --pause-on-focus, WE's "Other application focused: Pause" */
  191. pauseOnFocus?: boolean
  192. /** --pause-on-maximized, wlroots only (KDE and GNOME always pause) */
  193. pauseOnMaximized?: boolean
  194. automute?: boolean
  195. silent?: boolean
  196. hdr?: boolean
  197. postProcessing?: PostProcessingQuality
  198. volumetrics?: LightingQuality
  199. shadows?: LightingQuality
  200. msaa?: MsaaQuality
  201. ssaa?: SsaaQuality
  202. hwdec?: HwdecBackend
  203. /** --web-frames, applies when the web wallpaper starts */
  204. webFrames?: WebFramesMode
  205. frameLimiter?: FrameLimiter
  206. hrtf?: HrtfMode
  207. transition?: TransitionMode
  208. transitionDuration?: TransitionDuration
  209. /** --fps-battery / --pause-on-battery */
  210. batteryFps?: BatteryFps
  211. /** --idle-pause */
  212. idlePause?: IdlePause
  213. /** --window sized like the first screen instead of --screen-root, global only */
  214. windowed?: boolean
  215. /** --window --window-background: that window acts as the desktop background, global only */
  216. windowBackground?: boolean
  217. /** --layer background; key kept for stored configs */
  218. kdeBackgroundLayer?: boolean
  219. }
  220. export interface EngineFlagPreset {
  221. id: string
  222. name: string
  223. flags: EngineFlags
  224. /** undefined leaves the FPS alone */
  225. fps?: number | null
  226. builtIn?: boolean
  227. }
  228. export type CrashPhase = 'launch' | 'hotswap' | 'runtime'
  229. interface WallpaperCrash {
  230. at: number
  231. phase: CrashPhase
  232. screen: string
  233. log: string[]
  234. }
  235. export interface WallpaperCompat {
  236. hotswapCrash?: boolean
  237. freshLaunch?: 'ok' | 'crash'
  238. runtimeCrashes?: number
  239. lastCrash?: WallpaperCrash
  240. note?: string
  241. }
  242. export type CompatStatus = 'ok' | 'crashes' | 'hotswap-only' | 'hotswap-untested' | 'unstable'
  243. export interface CrashEvent {
  244. wallpaperId: string
  245. title: string
  246. screen: string
  247. phase: CrashPhase
  248. outcome: string
  249. }
  250. /** '*' = one engine for every screen */
  251. export type ScreenTarget = string
  252. export type DisplayMode = 'shared' | 'per-screen'
  253. export interface ScreenAssignment {
  254. screen: ScreenTarget
  255. wallpaperId: string
  256. }
  257. /** How the slots of a split screen share it, see the engine's --split-layout */
  258. export type SplitLayout = 'aspect' | 'equal' | 'center'
  259. interface SplitSlot {
  260. wallpaperId: string
  261. /** this slot's --scaling, the wallpaper's own when unset */
  262. scalingMode?: ScalingMode
  263. }
  264. /** --screen-slot, per-screen display mode only */
  265. export interface SplitScreen {
  266. layout: SplitLayout
  267. slots: SplitSlot[]
  268. }
  269. export type ScheduleAction =
  270. | { type: 'wallpaper'; wallpaperId: string }
  271. | { type: 'playlist'; playlistId: string }
  272. | { type: 'stop' }
  273. export type ScheduleTrigger =
  274. | { type: 'time'; time: string; days: number[] }
  275. | { type: 'theme'; theme: 'dark' | 'light' }
  276. export interface ScheduleRule {
  277. id: string
  278. name: string
  279. enabled: boolean
  280. trigger: ScheduleTrigger
  281. action: ScheduleAction
  282. screen: ScreenTarget
  283. }
  284. export interface LweSceneObject {
  285. id: string
  286. name: string
  287. type: 'image' | 'particle' | 'text' | 'sound' | 'unknown'
  288. }
  289. /** From --list-effects */
  290. export interface LweSceneEffect {
  291. id: string
  292. /** Not unique across objects */
  293. name: string
  294. objectId: string
  295. objectName: string
  296. /** e.g. "Blur/Sharpen", may be empty */
  297. group: string
  298. }
  299. export interface LweFontNeed {
  300. kind: 'font' | 'emoji'
  301. family: string
  302. /** installed, a metric compatible clone stands in (compatible), or something else does (missing) */
  303. status: 'installed' | 'compatible' | 'missing'
  304. using: string
  305. objects: string[]
  306. }
  307. export interface UserFont {
  308. name: string
  309. size: number
  310. }
  311. /** From --list-audio-objects */
  312. export interface LweAudioObject {
  313. objectId: string
  314. objectName: string
  315. /** e.g. "scale" or "alpha" */
  316. property: string
  317. minvalue: number
  318. maxvalue: number
  319. frequency: number
  320. smoothing: number
  321. }
  322. export interface LweProperty {
  323. name: string
  324. type:
  325. | 'slider'
  326. | 'boolean'
  327. | 'color'
  328. | 'combo'
  329. | 'text'
  330. | 'scene-texture'
  331. | 'file'
  332. | 'textinput'
  333. | 'usershortcut'
  334. | 'unknown'
  335. text?: string
  336. value: string
  337. min?: number
  338. max?: number
  339. step?: number
  340. options?: { value: string; label: string }[]
  341. }
  342. export interface DesktopApplication {
  343. name: string
  344. file: string
  345. }
  346. export interface WorkshopAuthorInfo {
  347. steamId: string
  348. name: string
  349. avatarUrl: string
  350. }
  351. export interface WorkshopItem {
  352. publishedFileId: string
  353. title: string
  354. description: string
  355. previewUrl: string
  356. creatorSteamId: string
  357. tags: string[]
  358. timeCreated: number
  359. timeUpdated: number
  360. subscriptions: number
  361. upvotes: number
  362. downvotes: number
  363. isSubscribed: boolean
  364. /** Bytes, as on the item's Steam page */
  365. fileSize?: number
  366. }
  367. export interface WorkshopQueryParams {
  368. appId?: number
  369. searchText?: string
  370. tags?: string[]
  371. excludedTags?: string[]
  372. queryType?: WorkshopQueryType
  373. page?: number
  374. }
  375. export interface WorkshopQueryResult {
  376. items: WorkshopItem[]
  377. page: number
  378. totalResults: number
  379. }
  380. export interface CreatorWorkshopQueryParams {
  381. searchText?: string
  382. tags?: string[]
  383. excludedTags?: string[]
  384. queryType?: WorkshopQueryType
  385. page?: number
  386. }
  387. export interface ApplyWallpaperOptions {
  388. wallpaperId: string
  389. screen?: ScreenTarget
  390. backend?: WallpaperBackend
  391. }
  392. // write failed, or Steam's favorites list never showed it
  393. export interface FavoriteFailure {
  394. add: boolean
  395. message: string
  396. readBack: boolean
  397. }
  398. export interface FavoriteStatus {
  399. failed: Record<string, FavoriteFailure>
  400. // written, not yet in the favorites list
  401. checking: string[]
  402. }
  403. export interface DownloadProgressEvent {
  404. itemId: string
  405. bytesDownloaded: number
  406. bytesTotal: number
  407. percentage: number
  408. status: 'downloading' | 'completed' | 'error'
  409. }
  410. export interface LibraryFilters {
  411. tags?: string[]
  412. categories?: string[]
  413. type?: WallpaperType
  414. contentRating?: ContentRating
  415. searchText?: string
  416. sortBy?: 'title' | 'createdAt' | 'updatedAt' | 'lastApplied' | 'appliedCount' | 'fileSize'
  417. sortDir?: 'asc' | 'desc'
  418. }
  419. export interface WallpaperFolder {
  420. id: string
  421. title: string
  422. items: string[]
  423. }
  424. export interface WallpaperEnvironment {
  425. displayServer: 'wayland' | 'x11' | 'unknown'
  426. desktopEnv: DesktopEnvironment
  427. availableBackends: WallpaperBackend[]
  428. recommendedBackend: WallpaperBackend
  429. linuxWallpaperEngine: LweStatus
  430. }
  431. /** The engine's GNOME Shell extension (GNOME Wayland only) */
  432. export interface GnomeExtensionStatus {
  433. needed: boolean
  434. state: 'not-needed' | 'active' | 'outdated' | 'needs-relogin' | 'disabled' | 'not-installed' | 'error'
  435. bundled?: boolean
  436. bundledVersion?: string
  437. installedVersion?: string
  438. detail?: string
  439. /** Flatpak: manual host commands if the button fails */
  440. flatpakCommands?: string[]
  441. }
  442. export interface LweStatus {
  443. installed: boolean
  444. path?: string
  445. version?: string
  446. /** A package manager owns the binary, it can't be uninstalled here */
  447. managedBy?: string
  448. }
  449. export interface DesktopIconsStatus {
  450. enabled: boolean
  451. problem?: 'not-kde' | 'not-wayland' | 'missing-lib' | 'unavailable-distro' | 'missing-modules' | 'failed'
  452. detail?: string
  453. command?: string
  454. }
  455. export type LinuxDistro = 'fedora' | 'arch' | 'debian' | 'suse' | 'unknown'
  456. /** Which prebuilt release archive fits this machine, or why none does */
  457. export interface LwePrebuiltTarget {
  458. supported: boolean
  459. /** Release asset name */
  460. asset?: string
  461. label?: string
  462. reason?: string
  463. /** The engine comes with the app (Flatpak) */
  464. managed?: boolean
  465. }
  466. export interface LweInstallProgress {
  467. stage: 'installing-deps' | 'downloading' | 'cloning' | 'building' | 'installing' | 'done' | 'error'
  468. message: string
  469. percentage: number
  470. }
  471. export interface UpdateChecks {
  472. app: boolean
  473. engine: boolean
  474. }
  475. export type UpdateTarget = keyof UpdateChecks
  476. export type AppInstallKind = 'appimage' | 'deb' | 'flatpak' | 'pacman' | 'rpm' | 'source' | 'unknown'
  477. /** package: package manager or Nix, build: source or unknown, bundled: the Flatpak's */
  478. export type EngineInstallKind = 'prebuilt' | 'package' | 'build' | 'bundled'
  479. export interface AvailableUpdate {
  480. version: string
  481. /** null when unknown */
  482. current: string | null
  483. notes: string
  484. url: string
  485. publishedAt: string
  486. }
  487. export interface ReleaseChoice {
  488. tag: string
  489. publishedAt: string
  490. prerelease: boolean
  491. }
  492. export interface AppUpdateProgress {
  493. stage: 'downloading' | 'installing' | 'ready' | 'error'
  494. percentage: number
  495. /** Release tag being installed, so a notice for another version ignores it */
  496. version?: string
  497. message?: string
  498. }
  499. export interface UpdateStatus {
  500. checks: UpdateChecks | null
  501. checking: boolean
  502. checkedAt: number | null
  503. checked: UpdateChecks
  504. error: string | null
  505. appVersion: string
  506. appInstall: AppInstallKind
  507. app: AvailableUpdate | null
  508. appProgress: AppUpdateProgress | null
  509. engineInstall: EngineInstallKind | null
  510. engineManagedBy?: string
  511. /** Installed engine version when known (prebuilt tag, package version) */
  512. engineVersion: string | null
  513. engine: AvailableUpdate | null
  514. /** "Don't notify me again", kept in the config */
  515. dismissed: Partial<Record<UpdateTarget, string>>
  516. /** Closed with the X, back after the next start */
  517. snoozed: Partial<Record<UpdateTarget, string>>
  518. }
  519. export interface BackupProgressEvent {
  520. itemId: string
  521. bytesCopied: number
  522. bytesTotal: number
  523. percentage: number
  524. status: 'copying' | 'verifying' | 'completed' | 'error'
  525. message?: string
  526. /** Plain backup when unset */
  527. action?: 'backup' | 'copy' | 'move'
  528. }
  529. export interface PlaylistItem {
  530. wallpaperId: string
  531. /** 0-100, overrides the playlist's defaultVolume when set */
  532. volume?: number
  533. /** Overrides the playlist's defaultDurationSec when set */
  534. durationSec?: number
  535. }
  536. export interface PlaylistSettings {
  537. /** Reshuffled on every loop */
  538. randomize: boolean
  539. /** Used when randomize is off */
  540. sortBy: 'manual' | 'title' | 'createdAt'
  541. /** Seconds per wallpaper */
  542. defaultDurationSec: number
  543. /** Longer videos play to the end before advancing */
  544. finishVideos?: boolean
  545. /** Only Steam favorites, everything when none is */
  546. favoritesOnly?: boolean
  547. /** 0-100 */
  548. defaultVolume: number
  549. }
  550. export interface Playlist {
  551. id: string
  552. title: string
  553. items: PlaylistItem[]
  554. settings: PlaylistSettings
  555. createdAt: number
  556. updatedAt: number
  557. }
  558. export interface PlaylistPlaybackState {
  559. screen: ScreenTarget
  560. playlistId: string | null
  561. currentItemId: string | null
  562. currentIndex: number
  563. isPlaying: boolean
  564. order: string[]
  565. }
  566. /** Why wallpapers would be drawn on the CPU, shown as a notice */
  567. export interface GraphicsWarning {
  568. kind: 'software' | 'flatpak-nvidia'
  569. /** the renderer the engine reported */
  570. renderer?: string
  571. /** flatpak-nvidia: the NVIDIA GL extension for the host's driver, when the version could be read */
  572. extension?: string
  573. }
  574. export interface AppConfigSnapshot {
  575. workshopPath: string | null
  576. defaultWorkshopPath: string
  577. extraLibraries: ExtraLibrary[]
  578. isConfigured: boolean
  579. defaultFps: number | null
  580. recommendedFpsEnabled: boolean
  581. recommendedWebFpsEnabled: boolean
  582. lweRepoUrl: string | null
  583. lweRepoBranch: string | null
  584. lweCmakeArgs: string | null
  585. defaultLweRepoUrl: string
  586. backupPath: string | null
  587. isBackupConfigured: boolean
  588. autoUnsubscribeAfterBackup: boolean
  589. trayEnabled: boolean
  590. autostartSupported: boolean
  591. autostartCompositorLine: string | null
  592. autostartEnabled: boolean
  593. autostartMinimized: boolean
  594. autostartPlaylistId: string | null
  595. killLweOnQuit: boolean
  596. skipPlaylistResume: boolean
  597. freshProcessOnPathChange: boolean
  598. cardBorders: CardBorders
  599. cardBadges: CardBadges
  600. audioScreen: string | null
  601. ambientVolume: number | null
  602. defaultAudioSensitivity: number
  603. disablePuppetAnimation: boolean
  604. scriptLimits: boolean
  605. leds: LedSettings
  606. loader: LoaderSettings
  607. disableAnimations: boolean
  608. steamIdentity: SteamIdentity
  609. ignoredCreators: string[]
  610. engineFlags: EngineFlags
  611. engineFlagPresets: EngineFlagPreset[]
  612. displayMode: DisplayMode
  613. disabledScreens: string[]
  614. splitScreens: Record<string, SplitScreen>
  615. appearance: Appearance
  616. language: LanguagePreference
  617. uiLanguage: Language
  618. appearanceRestartNeeded: boolean
  619. windowTranslucent: boolean
  620. desktopEnv: DesktopEnvironment
  621. }
  622. export interface HotswapSettings {
  623. disabledObjects?: string[]
  624. enabledObjects?: string[]
  625. volume?: number
  626. xray?: XrayMode
  627. scaling?: string
  628. zoom?: number
  629. offsetX?: number
  630. offsetY?: number
  631. disableParallax?: boolean
  632. expandCanvas?: boolean
  633. repairAssets?: boolean
  634. cornerColor?: string
  635. imageAdjustments?: ImageAdjustments
  636. speed?: number
  637. videoSegments?: VideoSegment[]
  638. videoSeek?: number
  639. propertyOverrides?: Record<string, string>
  640. /** Empty string = every screen can produce audio */
  641. audioScreen?: string
  642. ambientVolume?: number
  643. audioSensitivity?: Record<string, number>
  644. soundVolume?: Record<string, number>
  645. }