Skip to content
Lua script for the Notion window manager
Lua
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
hide_tabs.lua

README.md

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

You can’t perform that action at this time.