LUAKIT(1)

πŸ“¦
version 2.4.0 Β· 5 versions
, in alpine 3.24, debian trixie, nixos 26.05, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

okay bestie, meet Luakit β€” a fast, small, WebKit based browser framework that you can extend with Lua. she's literally the moment. ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

luakit [OPTION] [URI]

🌸 DESCRIPTION 🌸

Luakit is a highly configurable browser framework built on the WebKit web content engine and the GTK+ toolkit. She is very fast, extensible by Lua, and licensed under the GNU GPLv3 license. No cap.

Her target audience? Power users, developers, and honestly any people with too much time on their hands who want fine-grained control over their web browser's behaviour and interface. That's you. It's giving main character energy. πŸ‘‘

πŸŽ€ Modes πŸŽ€

Luakit can run in various modes, which specify how the user interacts with the browser. Each one is a whole vibe.

  • Normal mode β€” this is the default mode when Luakit is started. You can load URIs, open tabs and windows, access other modes, etc. Home base fr.
  • All mode β€” a special meta-mode in which the bindings are present in all modes. Sneaky. Iconic.
  • Insert mode β€” when selecting form fields, Luakit will enter the insert mode which allows you to enter text in form fields without accidentally triggering normal mode bindings. No more chaos. πŸ™ˆ
  • Passthrough mode β€” Luakit will pass every key event to the WebView until the user presses Escape. This is useful for using webpage shortcuts. Handing over the aux cord basically.
  • Command mode β€” enter commands. Every action in Luakit is a command, so basically you can do anything from there. Anything. πŸ’…
  • Lua mode β€” execute arbitrary Lua commands within the Luakit environment. Yes queen, run code.

🧚 Userscripts 🧚

Luakit is highly extensible with userscripts written in Lua. These scripts may provide additional modes. Some are embedded by default. You will need to load the userscript to use its features. See the CONFIGURATION section for more details. (Yes bestie, you gotta actually load it, it's not gonna manifest itself.)


✨ OPTIONS ✨

πŸ’œ Help options πŸ’œ

  • -h, --help β€” show help options.
  • --help-all β€” show all help options. the whole menu.
  • --help-gtk β€” show GTK+ help options.

πŸ’œ Application options πŸ’œ

  • -k, --check β€” check configuration file and exit.
  • -c, --config=FILE β€” configuration file to use.
  • -n, --nonblock β€” fork Luakit into the background.
  • -U, --nounique β€” ignore libunique bindings.
  • -u, --uri=URI β€” URI(s) to load at startup.
  • -v, --verbose β€” print debugging output.
  • -V, --version β€” print version and exit.
  • --display=DISPLAY β€” X display to use.

⌨️ KEYBINDINGS ⌨️

Luakit is fully usable with keyboard. Default bindings should be familiar to users of Emacs and Vim; nonetheless a lot of keyboards and mouse shortcuts are shared with popular web browsers. Bestie she speaks every love language. 🫢

Pressing : will open the command prompt. You can enter commands from there. You can view the current list of bindings in Luakit's help page with the

:help

command.

Some bindings have an uppercase version which will behave somewhat differently. Some come with userscripts, so you will need to have the appropriate userscript loaded to use it. Here follows a list of some noteworthy default bindings. πŸ’«

  • ZZ β€” quit and save the session.
  • ZQ β€” quit without saving the session. bye, no receipts.
  • o, O β€” open specified URIs. If uppercase, edit current URI.
  • t, T β€” open specified URIs in new tab. If uppercase, edit current URI.
  • w, W β€” open specified URIs in new window. If uppercase, edit current URI.
  • <Left>, <Down>, <Up>, <Right>, h, j, k, l β€” scroll page vertically and horizontally.
  • <Home>, <End>, gg, G β€” go to top / bottom of the page.
  • [count]% β€” go to [count] percent of the page.
  • f, F β€” enter follow mode. Use numbers or text to open corresponding links. Use arrow to navigate between links. If uppercase, open in new tab. Requires follow userscript.
  • i β€” enter insert mode. In some case form fields may not receive characters; press an arrow key to insert characters correctly.
  • gi β€” enter insert mode in the first form field. Requires go_input userscript.
  • <F11> β€” toggle fullscreen.
  • +, - β€” change the zoom level.
  • = β€” restore zoom level.
  • p, P β€” open URI from clipboard. If uppercase, open in new tab.
  • y β€” yank current URI to clipboard. (Copy, but make it Vim.)
  • <Ctrl>x, <Ctrl>a β€” decrement / increment last number in URI. This is useful for forum threads or any ordered website.
  • H, L β€” go back / forward in the browser history.
  • <Ctrl><Shift><Tab>, <Ctrl><Tab>, <Ctrl><PageDown>, <Ctrl><PageUp>, gT, gt β€” go to previous / next tab.
  • <Alt>[0-9] β€” go to tab #, where # is between 0 and 9.
  • <, > β€” reorder tabs. Requires taborder userscript.
  • [count]d β€” close [count] tabs.
  • u β€” restore last closed tab. the comeback arc. 😭
  • gy β€” duplicate current tab.
  • gh, gH β€” open homepage. If uppercase, open in new tab.
  • r, R β€” reload current page. If uppercase, skip cache.
  • <Ctrl>c β€” stop loading the current page.
  • <Ctrl>z β€” enter passthrough mode. Use ESC to return to normal mode.
  • M[a-zA-Z0-9] β€” associate current URI to quickmark #, where # is an ASCII letter or a digit. Requires quickmarks userscript.
  • go[a-zA-Z0-9], gn[a-zA-Z0-9], gw[a-zA-Z0-9] β€” open specified quickmark in current tab / new tab / new window. Requires quickmarks userscript.
  • B β€” add current URI to bookmarks.
  • gb, gB β€” open bookmarks manager. If uppercase, open in new tab.
  • /, ? β€” search / reverse search for a string on current page.
  • n, N β€” find next / previous result from search.

πŸš€ COMMANDS πŸš€

All bindings actually refer to commands. However, some commands do not have bindings associated by default. If completion userscript is used, you can autocomplete commands by pressing <TAB> by default. Once again, you should consult the configuration files to get an exhaustive list. The currently available functions may be displayed from the help view, which you can open with the :help command. πŸ“–

Here follows some noteworthy commands:

  • :bookmarks β€” display and search bookmarks.
  • :downloads β€” open Download page, which displays all downloads along with their status.
  • :dump β€” download current page.
  • :save β€” save the complete page as a single mhtml file.
  • :help β€” display all commands and bindings, along with their description. The help page also features some details about modes.
  • :history β€” display and search history.
  • :inspect β€” launch WebKit inspector. Use :inspect! to toggle off.
  • :nohlsearch β€” disable search highlighting.
  • :qmarks β€” display the quickmarks list.
  • :tabhistory β€” display the tab history.
  • :view-source β€” display page source code. Use :view-source! to toggle off.

πŸ“ FILES πŸ“

Luakit will load configuration files from the following folders in priority order:

  • $XDG_CONFIG_HOME/luakit
  • $XDG_CONFIG_DIRS/luakit

Default configuration files:

  • binds.lua β€” the keyboard and mouse bindings.
  • globals.lua β€” general configuration, like home page, search engines, user agent, per-domain properties, cookies policy.
  • modes.lua β€” all default modes are set in this file.
  • rc.lua β€” main configuration files. All other files are loaded from there.
  • theme.lua, β€” colors definition.
  • webview.lua β€” WebKit related.
  • window.lua β€” status bar, windows and tabs behaviour.

Embedded userscript will be loaded from $XDG_DATA_DIRS/luakit/lib.

All browsing-related files are stored in $XDG_DATA_HOME/luakit. All of are created if needed and if they do not exist. Depending on the userscripts you are using, you may find:

  • bookmarks.db β€” an SQLite3 database containing your complete bookmark list. If you want to synchronise your bookmarks between your different systems, just share this file. You can use a symbolic link if the file is not stored in the required folder.
  • cookies.db β€” this file contains all details needed for websites keeping track of your status, like login information. Delete this file once you are finished with browsing if you are not on your personal system.
  • history.db β€” your browsing history. Delete this file once you are finished with browsing if you are not on your personal system.
  • quickmarks β€” a plain text file saving your quickmarks. The structure is extremely simple: each line is a single quickmark; first character is the quickmark shortcut and may be one of [a-zA-Z0-9]; second character is a space; the remaining part is the URI.
⚠️ bestie, heads up: cookies.db and history.db are your business. If you're not on your own machine, delete them when you're done. That's not a vibe warning, that's a "protect yourself" warning. 🫣

πŸ› οΈ CONFIGURATION πŸ› οΈ

If you do not want to stick to the default configuration and want to benefit from the flexibility and extensibility of Luakit, you can fully configure it from the Lua configuration files. It's giving customisation queen. πŸ’…

If you do not want to start from scratch, you may use default configuration files and tweak them to fit your needs. Use the following command to copy configuration file to your home folder:

cp -r $XDG_CONFIG_DIRS/luakit $XDG_CONFIG_HOME

You can now edit the new files. Configuration should be quite straightforward, even if you do not know much about Lua. You got this fr fr. 🌈


πŸ‘‘ AUTHORS πŸ‘‘

Luakit was mainly developed by Mason Larobina <mason.larobina@gmail.com>. Other contributors are listed in the AUTHORS file.

This man page was written by Pierre Neidhardt <ambrevar@gmail.com>.


okay so that's the whole thing, bestie!! πŸ’– this page is from Luakit 636637cd, dated 2012-10-10, and it lives in section LUAKIT(1) of the manual. go forth and browse slayfully. βœ¨πŸŽ€πŸ¦‹