types.ts 21 KB

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