RTFallen
August 19th, 2014, 15:29
I was wondering if it was possible to make changes to the variables in the manager_desktop.lua variables from an outside script.
I've tried this:
local stackcolumns = 1;
local stackiconsize = { 92, 50 };
local stackspacing = { 0, 0 };
local stackoffset = { 5, 0 };
local stacktodockspacing = 0;
local dockiconsize = { 92, 27 };
local dockspacing = 2;
local dockoffset = { 5, 0 };
function onInit()
DesktopManager.stackcolumns = stackcolumns;
DesktopManager.stackiconsize = stackiconsize;
DesktopManager.stackspacing = stackspacing;
DesktopManager.stackoffset = stackoffset;
DesktopManager.stacktodockspacing = stacktodockspacing;
DesktopManager.dockiconsize = dockiconsize;
DesktopManager.dockspacing = dockspacing;
DesktopManager.dockoffset = dockoffset;
end
But I'm thinking that since they are local variables to the manager_desktop.lua that they can't actually be changed from outside the script. I'm trying to create a theme that changes the dock and stack columns, but I'm not wanting to make changes to manager_desktop.lua unless I absolutely have to.
Thanks in advance.
Resire
I've tried this:
local stackcolumns = 1;
local stackiconsize = { 92, 50 };
local stackspacing = { 0, 0 };
local stackoffset = { 5, 0 };
local stacktodockspacing = 0;
local dockiconsize = { 92, 27 };
local dockspacing = 2;
local dockoffset = { 5, 0 };
function onInit()
DesktopManager.stackcolumns = stackcolumns;
DesktopManager.stackiconsize = stackiconsize;
DesktopManager.stackspacing = stackspacing;
DesktopManager.stackoffset = stackoffset;
DesktopManager.stacktodockspacing = stacktodockspacing;
DesktopManager.dockiconsize = dockiconsize;
DesktopManager.dockspacing = dockspacing;
DesktopManager.dockoffset = dockoffset;
end
But I'm thinking that since they are local variables to the manager_desktop.lua that they can't actually be changed from outside the script. I'm trying to create a theme that changes the dock and stack columns, but I'm not wanting to make changes to manager_desktop.lua unless I absolutely have to.
Thanks in advance.
Resire