-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathConfig.qml
More file actions
432 lines (421 loc) 路 25.2 KB
/
Copy pathConfig.qml
File metadata and controls
432 lines (421 loc) 路 25.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Io
QtObject {
id: configRoot
property alias apiWeather: runtimeSettings.apiWeather
property alias audioMaxVolume: runtimeSettings.audioMaxVolume
property alias barDensity: runtimeSettings.barDensity
property alias barHeight: runtimeSettings.barHeight
property alias barShowActiveClient: runtimeSettings.barShowActiveClient
property alias barShowBattery: runtimeSettings.barShowBattery
property alias barShowBluetooth: runtimeSettings.barShowBluetooth
property alias barShowClock: runtimeSettings.barShowClock
property alias barShowMedia: runtimeSettings.barShowMedia
property alias barShowMicrophone: runtimeSettings.barShowMicrophone
property alias barShowNetwork: runtimeSettings.barShowNetwork
property alias barShowNotifications: runtimeSettings.barShowNotifications
property alias barShowRecording: runtimeSettings.barShowRecording
property alias barShowSysTray: runtimeSettings.barShowSysTray
property alias barShowWeather: runtimeSettings.barShowWeather
property alias barShowWorkspaces: runtimeSettings.barShowWorkspaces
property var base16: ({})
readonly property string cacheHome: Quickshell.env("XDG_CACHE_HOME") || homeDir + "/.cache"
readonly property string cacheRoot: cacheHome + "/sownteeshell"
property alias caffeineAutoDisableMinutes: runtimeSettings.caffeineAutoDisableMinutes
property alias calendarShowLocalTasks: runtimeSettings.calendarShowLocalTasks
property alias captureAutoCopyRecording: runtimeSettings.captureAutoCopyRecording
property alias captureAutoCopyScreenshot: runtimeSettings.captureAutoCopyScreenshot
property alias captureEditorColor: runtimeSettings.captureEditorColor
property alias captureEditorTool: runtimeSettings.captureEditorTool
property alias captureEditorWidth: runtimeSettings.captureEditorWidth
property alias captureRecordingCodec: runtimeSettings.captureRecordingCodec
property alias captureRecordingCountdown: runtimeSettings.captureRecordingCountdown
property alias captureRecordingCursor: runtimeSettings.captureRecordingCursor
readonly property string captureRecordingDir: expandHomePath(captureRecordingDirPath)
property alias captureRecordingDirPath: runtimeSettings.captureRecordingDirPath
property alias captureRecordingFps: runtimeSettings.captureRecordingFps
property alias captureRecordingMicrophone: runtimeSettings.captureRecordingMicrophone
property alias captureRecordingMicrophoneSource: runtimeSettings.captureRecordingMicrophoneSource
property alias captureRecordingMode: runtimeSettings.captureRecordingMode
property alias captureRecordingQuality: runtimeSettings.captureRecordingQuality
property alias captureScreenshotAction: runtimeSettings.captureScreenshotAction
readonly property string captureScreenshotDir: expandHomePath(captureScreenshotDirPath)
property alias captureScreenshotDirPath: runtimeSettings.captureScreenshotDirPath
property alias captureScreenshotFilenameTemplate: runtimeSettings.captureScreenshotFilenameTemplate
property alias captureScreenshotFormat: runtimeSettings.captureScreenshotFormat
property alias captureScreenshotQuality: runtimeSettings.captureScreenshotQuality
property alias cavaEnabled: runtimeSettings.cavaEnabled
property alias clock24h: runtimeSettings.clock24h
readonly property string defaultWallpaper: dotfilesDir + "/.walls/flower-plant-petal.jpg"
readonly property string dotfilesDir: dotfilesRoot + "/dotf"
readonly property string dotfilesRoot: homeDir + "/Dotfiles"
property alias fontName: runtimeSettings.fontName
property alias greeterDefaultSession: runtimeSettings.greeterDefaultSession
property alias greeterRememberLastSession: runtimeSettings.greeterRememberLastSession
readonly property string homeDir: Quickshell.env("HOME")
property alias idleBatteryDisplayTimeout: runtimeSettings.idleBatteryDisplayTimeout
property alias idleBatteryLockTimeout: runtimeSettings.idleBatteryLockTimeout
property alias idleBatterySleepAction: runtimeSettings.idleBatterySleepAction
property alias idleBatterySuspendTimeout: runtimeSettings.idleBatterySuspendTimeout
property alias idleDimDuration: runtimeSettings.idleDimDuration
property alias idleDimOpacity: runtimeSettings.idleDimOpacity
property alias idleDisplayTimeout: runtimeSettings.idleDisplayTimeout
property alias idleEnabled: runtimeSettings.idleEnabled
property alias idleLockBeforeSleep: runtimeSettings.idleLockBeforeSleep
property alias idleLockTimeout: runtimeSettings.idleLockTimeout
property alias idleLockedDisplayTimeout: runtimeSettings.idleLockedDisplayTimeout
property alias idleRespectInhibitors: runtimeSettings.idleRespectInhibitors
property alias idleSeparatePowerProfiles: runtimeSettings.idleSeparatePowerProfiles
property alias idleSleepAction: runtimeSettings.idleSleepAction
property alias idleSuspendTimeout: runtimeSettings.idleSuspendTimeout
property alias latLon: runtimeSettings.latLon
property alias launcherCalculatorAngleMode: runtimeSettings.launcherCalculatorAngleMode
property alias launcherCalculatorEnabled: runtimeSettings.launcherCalculatorEnabled
property alias launcherCalculatorPrefix: runtimeSettings.launcherCalculatorPrefix
property alias launcherClipboardAutoPaste: runtimeSettings.launcherClipboardAutoPaste
property alias launcherClipboardEnabled: runtimeSettings.launcherClipboardEnabled
property alias launcherClipboardPrefix: runtimeSettings.launcherClipboardPrefix
property alias launcherEmojiEnabled: runtimeSettings.launcherEmojiEnabled
property alias launcherEmojiPrefix: runtimeSettings.launcherEmojiPrefix
property alias launcherFilesEnabled: runtimeSettings.launcherFilesEnabled
property alias launcherFilesPrefix: runtimeSettings.launcherFilesPrefix
property alias launcherFuzzySearch: runtimeSettings.launcherFuzzySearch
property alias launcherGifEnabled: runtimeSettings.launcherGifEnabled
property alias launcherGifPrefix: runtimeSettings.launcherGifPrefix
property alias launcherKlipyApiKey: runtimeSettings.launcherKlipyApiKey
property alias launcherMaxResults: runtimeSettings.launcherMaxResults
property alias launcherStickerEnabled: runtimeSettings.launcherStickerEnabled
property alias launcherStickerPrefix: runtimeSettings.launcherStickerPrefix
readonly property string legacyWallpaperEngineWorkshopDir: homeDir + "/.steam/steam/steamapps/workshop/content/431960"
readonly property bool lightTheme: themeLuminance > 0.58
readonly property string liveWallFolder: expandHomePath(liveWallFolderPath)
property alias liveWallFolderPath: runtimeSettings.liveWallFolderPath
property alias lockFaceMaxAttempts: runtimeSettings.lockFaceMaxAttempts
property alias lockFaceRetryOnWake: runtimeSettings.lockFaceRetryOnWake
property alias matugenAnimateColors: runtimeSettings.matugenAnimateColors
property alias matugenEnabled: runtimeSettings.matugenEnabled
property alias matugenTransitionDuration: runtimeSettings.matugenTransitionDuration
property QtObject md3: QtObject {
property color background: "#ffffff"
property color error: "#ffffff"
property color error_container: "#ffffff"
property color inverse_on_surface: "#000000"
property color inverse_primary: "#ffffff"
property color inverse_surface: "#ffffff"
property color on_background: "#000000"
property color on_error: "#000000"
property color on_error_container: "#000000"
property color on_primary: "#000000"
property color on_primary_container: "#000000"
property color on_primary_fixed: "#000000"
property color on_primary_fixed_variant: "#000000"
property color on_secondary: "#000000"
property color on_secondary_container: "#000000"
property color on_secondary_fixed: "#000000"
property color on_secondary_fixed_variant: "#000000"
property color on_surface: "#000000"
property color on_surface_variant: "#000000"
property color on_tertiary: "#000000"
property color on_tertiary_container: "#000000"
property color on_tertiary_fixed: "#000000"
property color on_tertiary_fixed_variant: "#000000"
property color outline: "#ffffff"
property color outline_variant: "#ffffff"
property color primary: "#ffffff"
property color primary_container: "#ffffff"
property color primary_fixed: "#ffffff"
property color primary_fixed_dim: "#ffffff"
property color scrim: "#ffffff"
property color secondary: "#ffffff"
property color secondary_container: "#ffffff"
property color secondary_fixed: "#ffffff"
property color secondary_fixed_dim: "#ffffff"
property color shadow: "#ffffff"
property color surface: "#ffffff"
property color surface_bright: "#ffffff"
property color surface_container: "#ffffff"
property color surface_container_high: "#ffffff"
property color surface_container_highest: "#ffffff"
property color surface_container_low: "#ffffff"
property color surface_container_lowest: "#ffffff"
property color surface_dim: "#ffffff"
property color surface_variant: "#ffffff"
property color tertiary: "#ffffff"
property color tertiary_container: "#ffffff"
property color tertiary_fixed: "#ffffff"
property color tertiary_fixed_dim: "#ffffff"
}
readonly property string niriOutputConfig: dotfilesDir + "/.config/niri/include/outputs.kdl"
property alias notificationBlockedApps: runtimeSettings.notificationBlockedApps
property alias notificationCriticalTimeout: runtimeSettings.notificationCriticalTimeout
property alias notificationDndEnd: runtimeSettings.notificationDndEnd
property alias notificationDndScheduleEnabled: runtimeSettings.notificationDndScheduleEnabled
property alias notificationDndStart: runtimeSettings.notificationDndStart
property alias notificationHistoryExcludedApps: runtimeSettings.notificationHistoryExcludedApps
property alias notificationHistoryLimit: runtimeSettings.notificationHistoryLimit
property alias notificationLockscreenPrivacy: runtimeSettings.notificationLockscreenPrivacy
readonly property string notificationLockscreenPrivacyMode: ["hidden", "icons", "full"].indexOf(notificationLockscreenPrivacy) >= 0 ? notificationLockscreenPrivacy : (notificationShowOnLock ? "full" : "hidden")
property alias notificationLowTimeout: runtimeSettings.notificationLowTimeout
property alias notificationMaxVisible: runtimeSettings.notificationMaxVisible
property alias notificationNormalTimeout: runtimeSettings.notificationNormalTimeout
property alias notificationPopupDuration: runtimeSettings.notificationPopupDuration
property alias notificationPosition: runtimeSettings.notificationPosition
property alias notificationShowInFullscreen: runtimeSettings.notificationShowInFullscreen
property alias notificationShowOnLock: runtimeSettings.notificationShowOnLock
property alias osdDuration: runtimeSettings.osdDuration
property alias osdEnabled: runtimeSettings.osdEnabled
property alias osdPosition: runtimeSettings.osdPosition
property alias osdShowBrightness: runtimeSettings.osdShowBrightness
property alias osdShowMicrophone: runtimeSettings.osdShowMicrophone
property alias osdShowVolume: runtimeSettings.osdShowVolume
property var palette: ({})
readonly property string profileImage: expandHomePath(profileImagePath)
property alias profileImagePath: runtimeSettings.profileImagePath
property FileView runtimeSettingsFile: FileView {
atomicWrites: true
path: configRoot.runtimeSettingsPath
printErrors: false
watchChanges: true
adapter: JsonAdapter {
id: runtimeSettings
property string apiWeather: ""
property real audioMaxVolume: 1.0
property string barDensity: "comfortable"
property int barHeight: 50
property bool barShowActiveClient: true
property bool barShowBattery: true
property bool barShowBluetooth: true
property bool barShowClock: true
property bool barShowMedia: true
property bool barShowMicrophone: true
property bool barShowNetwork: true
property bool barShowNotifications: true
property bool barShowRecording: true
property bool barShowSysTray: true
property bool barShowWeather: true
property bool barShowWorkspaces: true
property int caffeineAutoDisableMinutes: 0
property bool calendarShowLocalTasks: true
property bool captureAutoCopyRecording: true
property bool captureAutoCopyScreenshot: true
property string captureEditorColor: "#ff3b30"
property string captureEditorTool: "pen"
property int captureEditorWidth: 6
property string captureRecordingCodec: "hevc"
property int captureRecordingCountdown: 0
property bool captureRecordingCursor: true
property string captureRecordingDirPath: "~/Videos"
property int captureRecordingFps: 60
property bool captureRecordingMicrophone: false
property string captureRecordingMicrophoneSource: "default_input"
property string captureRecordingMode: "region"
property string captureRecordingQuality: "high"
property string captureScreenshotAction: "notification"
property string captureScreenshotDirPath: "~/Pictures/Screenshots"
property string captureScreenshotFilenameTemplate: "{date}_{time}-edited"
property string captureScreenshotFormat: "png"
property int captureScreenshotQuality: 90
property bool cavaEnabled: true
property bool clock24h: true
property string fontName: "Inter Variable"
property string greeterDefaultSession: "niri"
property bool greeterRememberLastSession: false
property int idleBatteryDisplayTimeout: 300
property int idleBatteryLockTimeout: 300
property string idleBatterySleepAction: "suspend"
property int idleBatterySuspendTimeout: 900
property int idleDimDuration: 5
property real idleDimOpacity: 0.55
property int idleDisplayTimeout: 600
property bool idleEnabled: true
property bool idleLockBeforeSleep: true
property int idleLockTimeout: 600
property int idleLockedDisplayTimeout: 60
property bool idleRespectInhibitors: true
property bool idleSeparatePowerProfiles: false
property string idleSleepAction: "suspend"
property int idleSuspendTimeout: 0
property string latLon: ""
property string launcherCalculatorAngleMode: "rad"
property bool launcherCalculatorEnabled: true
property string launcherCalculatorPrefix: "="
property bool launcherClipboardAutoPaste: true
property bool launcherClipboardEnabled: true
property string launcherClipboardPrefix: "c"
property bool launcherEmojiEnabled: true
property string launcherEmojiPrefix: "e"
property bool launcherFilesEnabled: true
property string launcherFilesPrefix: "f"
property bool launcherFuzzySearch: true
property bool launcherGifEnabled: true
property string launcherGifPrefix: "g"
property string launcherKlipyApiKey: ""
property int launcherMaxResults: 20
property bool launcherStickerEnabled: true
property string launcherStickerPrefix: "s"
property string liveWallFolderPath: "~/Dotfiles/dotf/.walls/live"
property int lockFaceMaxAttempts: 3
property bool lockFaceRetryOnWake: true
property bool matugenAnimateColors: true
property bool matugenEnabled: true
property int matugenTransitionDuration: 300
property string notificationBlockedApps: ""
property int notificationCriticalTimeout: 0
property string notificationDndEnd: "07:00"
property bool notificationDndScheduleEnabled: false
property string notificationDndStart: "23:00"
property string notificationHistoryExcludedApps: ""
property int notificationHistoryLimit: 100
property string notificationLockscreenPrivacy: "legacy"
property int notificationLowTimeout: notificationPopupDuration
property int notificationMaxVisible: 3
property int notificationNormalTimeout: notificationPopupDuration
property int notificationPopupDuration: 5000
property string notificationPosition: "top"
property bool notificationShowInFullscreen: true
property bool notificationShowOnLock: false
property int osdDuration: 2000
property bool osdEnabled: true
property string osdPosition: "bottom"
property bool osdShowBrightness: true
property bool osdShowMicrophone: true
property bool osdShowVolume: true
property string profileImagePath: ""
property real shellAnimationScale: 1.0
property bool shellBlurBarEnabled: true
property real shellBlurBarOpacityDark: 0.24
property real shellBlurBarOpacityLight: 0.86
property bool shellBlurControlLeftEnabled: true
property bool shellBlurControlRightEnabled: true
property bool shellBlurDockEnabled: true
property bool shellBlurLauncherEnabled: true
property bool shellBlurNotificationEnabled: true
property bool shellBlurOsdEnabled: true
property real shellBlurPanelOpacityDark: 0.76
property real shellBlurPanelOpacityLight: 0.88
property bool shellBlurSettingsEnabled: true
property real shellComponentShadowBlur: 10
property bool shellComponentShadowEnabled: true
property real shellComponentShadowOffsetX: 0
property real shellComponentShadowOffsetY: 2
property real shellComponentShadowOpacity: 0.18
property real shellComponentShadowSpread: 0
property bool shellLowPowerMode: false
property bool shellReducedMotion: false
property real shellShadowBlur: 18
property bool shellShadowEnabled: true
property real shellShadowOffsetX: 0
property real shellShadowOffsetY: 3
property real shellShadowOpacity: 0.28
property real shellShadowSpread: 1
property string steamUsername: ""
property string steamWebApiKey: ""
property string temperatureUnit: "celsius"
property string wallFolderPath: "~/Dotfiles/dotf/.walls"
property string wallhavenApiKey: ""
property bool wallhavenShowNsfw: false
property string wallhavenUsername: ""
property int wallpaperBatteryFps: 20
property string wallpaperEngineAssetsDirPath: "~/.local/share/Steam/steamapps/common/wallpaper_engine/assets"
property int wallpaperEngineFps: 30
property string wallpaperEngineWorkshopDirPath: "~/.local/share/Steam/steamapps/workshop/content/431960"
property bool wallpaperPauseOnFullscreen: true
property bool wallpaperPauseOnLock: true
property string wallpaperScalingMode: "fill"
property int wallpaperTransitionDuration: 360
property bool wallpaperWorkshopShowNsfw: false
}
onAdapterUpdated: writeAdapter()
onFileChanged: reload()
}
readonly property string runtimeSettingsPath: cacheRoot + "/settings.json"
property alias shellAnimationScale: runtimeSettings.shellAnimationScale
property alias shellBlurBarEnabled: runtimeSettings.shellBlurBarEnabled
property alias shellBlurBarOpacityDark: runtimeSettings.shellBlurBarOpacityDark
property alias shellBlurBarOpacityLight: runtimeSettings.shellBlurBarOpacityLight
property alias shellBlurControlLeftEnabled: runtimeSettings.shellBlurControlLeftEnabled
property alias shellBlurControlRightEnabled: runtimeSettings.shellBlurControlRightEnabled
property alias shellBlurDockEnabled: runtimeSettings.shellBlurDockEnabled
property alias shellBlurLauncherEnabled: runtimeSettings.shellBlurLauncherEnabled
property alias shellBlurNotificationEnabled: runtimeSettings.shellBlurNotificationEnabled
property alias shellBlurOsdEnabled: runtimeSettings.shellBlurOsdEnabled
property alias shellBlurPanelOpacityDark: runtimeSettings.shellBlurPanelOpacityDark
property alias shellBlurPanelOpacityLight: runtimeSettings.shellBlurPanelOpacityLight
property alias shellBlurSettingsEnabled: runtimeSettings.shellBlurSettingsEnabled
property alias shellComponentShadowBlur: runtimeSettings.shellComponentShadowBlur
property alias shellComponentShadowEnabled: runtimeSettings.shellComponentShadowEnabled
property alias shellComponentShadowOffsetX: runtimeSettings.shellComponentShadowOffsetX
property alias shellComponentShadowOffsetY: runtimeSettings.shellComponentShadowOffsetY
property alias shellComponentShadowOpacity: runtimeSettings.shellComponentShadowOpacity
property alias shellComponentShadowSpread: runtimeSettings.shellComponentShadowSpread
property alias shellLowPowerMode: runtimeSettings.shellLowPowerMode
property alias shellReducedMotion: runtimeSettings.shellReducedMotion
property alias shellShadowBlur: runtimeSettings.shellShadowBlur
property alias shellShadowEnabled: runtimeSettings.shellShadowEnabled
property alias shellShadowOffsetX: runtimeSettings.shellShadowOffsetX
property alias shellShadowOffsetY: runtimeSettings.shellShadowOffsetY
property alias shellShadowOpacity: runtimeSettings.shellShadowOpacity
property alias shellShadowSpread: runtimeSettings.shellShadowSpread
readonly property string sownteeshellDir: dotfilesRoot + "/sownteeshell"
readonly property string steamDir: homeDir + "/.local/share/Steam"
property alias steamUsername: runtimeSettings.steamUsername
property alias steamWebApiKey: runtimeSettings.steamWebApiKey
property alias temperatureUnit: runtimeSettings.temperatureUnit
readonly property real themeLuminance: md3.background.r * 0.299 + md3.background.g * 0.587 + md3.background.b * 0.114
readonly property string wallFolder: expandHomePath(wallFolderPath)
property alias wallFolderPath: runtimeSettings.wallFolderPath
property alias wallhavenApiKey: runtimeSettings.wallhavenApiKey
readonly property string wallhavenCacheFolder: cacheRoot + "/wallhaven"
property alias wallhavenShowNsfw: runtimeSettings.wallhavenShowNsfw
property alias wallhavenUsername: runtimeSettings.wallhavenUsername
property string wallpaper: defaultWallpaper
property alias wallpaperBatteryFps: runtimeSettings.wallpaperBatteryFps
readonly property string wallpaperEngineAssetsDir: expandHomePath(wallpaperEngineAssetsDirPath)
property alias wallpaperEngineAssetsDirPath: runtimeSettings.wallpaperEngineAssetsDirPath
property alias wallpaperEngineFps: runtimeSettings.wallpaperEngineFps
readonly property string wallpaperEngineWorkshopDir: expandHomePath(wallpaperEngineWorkshopDirPath)
property alias wallpaperEngineWorkshopDirPath: runtimeSettings.wallpaperEngineWorkshopDirPath
property alias wallpaperPauseOnFullscreen: runtimeSettings.wallpaperPauseOnFullscreen
property alias wallpaperPauseOnLock: runtimeSettings.wallpaperPauseOnLock
property alias wallpaperScalingMode: runtimeSettings.wallpaperScalingMode
property alias wallpaperTransitionDuration: runtimeSettings.wallpaperTransitionDuration
property alias wallpaperWorkshopShowNsfw: runtimeSettings.wallpaperWorkshopShowNsfw
function alpha(colorVal, opacity) {
if (colorVal === undefined || colorVal === null || String(colorVal) === "")
return Qt.rgba(0, 0, 0, 0);
var c = Qt.color(colorVal);
return Qt.rgba(c.r, c.g, c.b, opacity);
}
function animationDuration(duration) {
if (shellReducedMotion)
return Math.min(80, Math.round(duration * 0.25));
if (shellLowPowerMode)
return Math.min(duration, Math.round(duration * 0.75));
return Math.max(0, Math.round(duration * shellAnimationScale));
}
function expandHomePath(path) {
var value = String(path || "");
if (value === "~")
return homeDir;
if (value.indexOf("~/") === 0)
return homeDir + value.substring(1);
return value;
}
function updateColors(colors) {
}
function updateMd3(colors) {
if (colors.md3) {
for (var key in colors.md3) {
if (md3.hasOwnProperty(key))
md3[key] = colors.md3[key];
}
}
if (colors.palette)
palette = colors.palette;
if (colors.base16)
base16 = colors.base16;
}
Component.onCompleted: Quickshell.execDetached(["mkdir", "-p", cacheRoot, wallhavenCacheFolder])
}