raboof / notion

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

Allow to specify the scratchpad size from lua config #329

Closed c0dev0id closed 3 years ago

c0dev0id commented 3 years ago

Hi, this allows to set the scratchpad dimension from the mod_sp configuration file. It should fix https://github.com/raboof/notion/issues/320.

This allows you to specify mod_sp.set_size("1400", "800"); to set a scratchpad size. If no size is specified the old hard coded size applies.

wilhelmy commented 3 years ago

I'd hope so. After all workspace definitions are in the same lua files, no?

c0dev0id commented 3 years ago

It's loaded on notion load, gets effective on scratchpad create and is then saved with the layout.

So...

  1. change default size (in cfg_sp.lua)
  2. restart notion
  3. recreate scratchpad

Then it has the new default size. The behavior is the same as before with the hard coded value.