summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Common/settings/SessionSpec.js
diff options
context:
space:
mode:
authorAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
committerAlexanderCurl <alexc@alexc.hu>2026-04-18 17:46:06 +0100
commit70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69 (patch)
treeab1123d4067c1b086dd6faa7ee4ea643236b565a /raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Common/settings/SessionSpec.js
parent5d94c0a7d44a2255b81815a52a7056a94a39842d (diff)
downloadRaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.tar.gz
RaveOS-PKGBUILD-70ca3fef77ee8bdc6e3ac28589a6fa08c024cc69.zip
Replaced file structures for themes in the correct format
Diffstat (limited to 'raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Common/settings/SessionSpec.js')
-rw-r--r--raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Common/settings/SessionSpec.js109
1 files changed, 109 insertions, 0 deletions
diff --git a/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Common/settings/SessionSpec.js b/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Common/settings/SessionSpec.js
new file mode 100644
index 0000000..e2bb4fe
--- /dev/null
+++ b/raveos-hyprland-theme/theme-data/DankMaterialShell/quickshell/Common/settings/SessionSpec.js
@@ -0,0 +1,109 @@
+.pragma library
+
+var SPEC = {
+ isLightMode: { def: false },
+ doNotDisturb: { def: false },
+
+ wallpaperPath: { def: "" },
+ perMonitorWallpaper: { def: false },
+ monitorWallpapers: { def: {} },
+ perModeWallpaper: { def: false },
+ wallpaperPathLight: { def: "" },
+ wallpaperPathDark: { def: "" },
+ monitorWallpapersLight: { def: {} },
+ monitorWallpapersDark: { def: {} },
+ monitorWallpaperFillModes: { def: {} },
+ wallpaperTransition: { def: "fade" },
+ includedTransitions: { def: ["fade", "wipe", "disc", "stripes", "iris bloom", "pixelate", "portal"] },
+
+ wallpaperCyclingEnabled: { def: false },
+ wallpaperCyclingMode: { def: "interval" },
+ wallpaperCyclingInterval: { def: 300 },
+ wallpaperCyclingTime: { def: "06:00" },
+ monitorCyclingSettings: { def: {} },
+
+ nightModeEnabled: { def: false },
+ nightModeTemperature: { def: 4500 },
+ nightModeHighTemperature: { def: 6500 },
+ nightModeAutoEnabled: { def: false },
+ nightModeAutoMode: { def: "time" },
+ nightModeStartHour: { def: 18 },
+ nightModeStartMinute: { def: 0 },
+ nightModeEndHour: { def: 6 },
+ nightModeEndMinute: { def: 0 },
+ latitude: { def: 0.0 },
+ longitude: { def: 0.0 },
+ nightModeUseIPLocation: { def: false },
+ nightModeLocationProvider: { def: "" },
+
+ themeModeAutoEnabled: { def: false },
+ themeModeAutoMode: { def: "time" },
+ themeModeStartHour: { def: 18 },
+ themeModeStartMinute: { def: 0 },
+ themeModeEndHour: { def: 6 },
+ themeModeEndMinute: { def: 0 },
+ themeModeShareGammaSettings: { def: true },
+
+ weatherLocation: { def: "New York, NY" },
+ weatherCoordinates: { def: "40.7128,-74.0060" },
+
+ pinnedApps: { def: [] },
+ barPinnedApps: { def: [] },
+ dockLauncherPosition: { def: 0 },
+ hiddenTrayIds: { def: [] },
+ trayItemOrder: { def: [] },
+ recentColors: { def: [] },
+ showThirdPartyPlugins: { def: false },
+ launchPrefix: { def: "" },
+ lastBrightnessDevice: { def: "" },
+
+ brightnessExponentialDevices: { def: {} },
+ brightnessUserSetValues: { def: {} },
+ brightnessExponentValues: { def: {} },
+
+ selectedGpuIndex: { def: 0 },
+ nvidiaGpuTempEnabled: { def: false },
+ nonNvidiaGpuTempEnabled: { def: false },
+ enabledGpuPciIds: { def: [] },
+
+ wifiDeviceOverride: { def: "" },
+ weatherHourlyDetailed: { def: true },
+
+ hiddenApps: { def: [] },
+ appOverrides: { def: {} },
+ searchAppActions: { def: true },
+
+ vpnLastConnected: { def: "" },
+
+ lastPlayerIdentity: { def: "" },
+
+ deviceMaxVolumes: { def: {} },
+ hiddenOutputDeviceNames: { def: [] },
+ hiddenInputDeviceNames: { def: [] },
+
+ locale: { def: "", onChange: "updateLocale" },
+ timeLocale: { def: "" },
+
+ launcherLastMode: { def: "all" },
+ launcherLastQuery: { def: "" },
+ launcherQueryHistory: { def: [] },
+ appDrawerLastMode: { def: "apps" },
+ niriOverviewLastMode: { def: "apps" },
+
+ settingsSidebarExpandedIds: { def: "," },
+ settingsSidebarCollapsedIds: { def: "," }
+};
+
+function getValidKeys() {
+ return Object.keys(SPEC).concat(["configVersion"]);
+}
+
+function set(root, key, value, saveFn, hooks) {
+ if (!(key in SPEC)) return;
+ root[key] = value;
+ var hookName = SPEC[key].onChange;
+ if (hookName && hooks && hooks[hookName]) {
+ hooks[hookName](root);
+ }
+ saveFn();
+}