raboof / notion

Tiling tabbed window manager
https://notionwm.net/
GNU Lesser General Public License v2.1
268 stars 63 forks source link

statusbar_workspace.lua #338

Closed chertyhansky closed 2 years ago

chertyhansky commented 2 years ago

Shows name of active workspace for two-screen configuration with mod_xinerama. Modification of legacy/statusbar_workspace.lua.

chertyhansky commented 2 years ago

In the original statusbar_workspace it was "License: Unknown", so I don't know may I publish it with GNU GPL 3.0, for example?

raboof commented 2 years ago

In the original statusbar_workspace it was "License: Unknown", so I don't know may I publish it with GNU GPL 3.0, for example?

That doesn't seem right - perhaps ping the authors to see if they're OK with releasing under the LGPL? Otherwise explicitly mentioning 'License: Unknown' might at least accurately reflect the state of affairs.

kevingranade commented 2 years ago

For my part I'm fine with any free license (Non-exclusively GPL, LGPL, BSF, MIT).

chertyhansky commented 2 years ago

I can't contact Rico Schiekel because his email no longer exists. Apparently, in this case, it would be correct to indicate "License: Unknown".

wilhelmy commented 2 years ago

I think mod_xinerama.query_screens() can be used to query the correct number of screens in case you want to make it work for an arbitrary number of screens.

lua> for k,v in pairs(mod_xinerama.query_screens()) do print(k,v) end
1   table: 0xa95c10
2   table: 0x943dd0
nil
lua> for k,v in pairs(mod_xinerama.query_screens()[1]) do print(k,v) end
w   1600.0
x   1920.0
y   0.0
h   900.0
nil
lua> for k,v in pairs(mod_xinerama.query_screens()[2]) do print(k,v) end
w   1920.0
x   0.0
y   0.0
h   1200.0
nil
wilhelmy commented 2 years ago

@xfire we're currently debating the license this script should have. Any input from your side?

xfire commented 2 years ago

@wilhelmy oh wow, that's from very long time ago. Just go with whatever suits you guys best as long as it's a free license. 👍