Skip to content

meribold/notion-hide-tabs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

hide_tabs.lua

Lua script for the Notion window manager that hides the tab bar of frames which contain exactly one client window. Tagged frames are excluded.

If you've used min_tabs.lua, this script's advantages are:

  • It doesn't define a hard-coded (or any) keybinding
  • It works for the sratchpad
  • It recovers from exiting Notion without closing all client windows first more gracefully

Installation

Copy hide_tabs.lua to ~/.notion/

curl -fLo ~/.notion/hide_tabs.lua \
    https://raw.githubusercontent.com/meribold/notion-hide-tabs/master/hide_tabs.lua

and enable it by adding dopath("hide_tabs") to (usually) your cfg_notion.lua.

Troubleshooting

If some tab bars aren't hidden, you may need to modify your drawing engine style (but all the default styles appear to work). Drawing engine styles are usually defined in files named look_foo.lua. You can try adding

de.defstyle("frame-tiled-alt", {
    bar = "none",
})

de.defstyle("frame-unknown-alt", {
    bar = "none",
})

de.defstyle("frame-floating-alt", {
    bar = "none",
})

de.defstyle("frame-transient-alt", {
    bar = "none",
})

License

LGPLv3

About

Lua script for the Notion window manager

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages