MCPcopy
hub / github.com/paperwm/PaperWM / getWorkspaceSettingsByUUID

Method getWorkspaceSettingsByUUID

workspace.js:70–79  ·  view source on GitHub ↗
(uuid)

Source from the content-addressed store, hash-verified

68 }
69
70 getWorkspaceSettingsByUUID(uuid) {
71 if (!this.workspaceSettingsCache[uuid]) {
72 let settings = new Gio.Settings({
73 settings_schema: this.getSchemaSource().lookup(WORKSPACE_KEY, true),
74 path: `/org/gnome/shell/extensions/paperwm/workspaces/${uuid}/`,
75 });
76 this.workspaceSettingsCache[uuid] = settings;
77 }
78 return this.workspaceSettingsCache[uuid];
79 }
80
81 /** Returns [[uuid, settings, name], ...] (Only used for debugging/development atm.) */
82 findWorkspaceSettingsByName(regex) {

Callers 4

getWorkspaceSettingsMethod · 0.95
cycleWorkspaceSettingsFunction · 0.80

Calls 1

getSchemaSourceMethod · 0.95

Tested by

no test coverage detected