Nyxt

提供: ArchWiki
2024年4月5日 (金) 19:52時点におけるKusanaginoturugi (トーク | 投稿記録)による版 (一部翻訳)
ナビゲーションに移動 検索に移動

Nyxt [nýkst] は、ハッカー向けに設計されたキーボード駆動型のウェブブラウザです。EmacsVim に触発され、それらに馴染みのあるキーバインド(EmacsviCUA)を持ち、Common Lisp で無限に拡張可能です。

インストール

nyxt パッケージまたは開発バージョンのnyxt-gitAURインストールします。

使用法

最初に開いたとき、nyxt はブラウザの使い方、その機能、基本的なキーバインドについての短いチュートリアルを提供します。

詳細については、マニュアルを参照してください。

Configuration

Nyxt can be configured using either in-browser GUI or by directly modifying its config file.

By default all configuration files reside in ~/.config/nyxt.

Tips and tricks

Change default keybinds

By default nyxt uses the CUA set of keybinds, these can either be changed in the browser settings or by adding this code snippet to ~/.config/nyxt/config.lisp:

;; emacs keybinds
(define-configuration buffer
  ((default-modes
    (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))))

or if you prefer vi-style keybinds:

;; vi keybinds
(define-configuration buffer
  ((default-modes
    (pushnew 'nyxt/mode/vi:vi-normal-mode %slot-value%))))

Adblocking

Nyxt comes with a builtin adblocker, to enable it put the following in ~/.config/nyxt/config.lisp:

(define-configuration web-buffer
  ((default-modes
    (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))))

Fingerprinting

Using tor

To proxy requests over Tor, including downloads:

(define-configuration nyxt/mode/proxy:proxy-mode
  ((nyxt/mode/proxy:proxy (make-instance 'proxy
                                         :url (quri:uri "socks5://localhost:9050")
                                         :allowlist '("localhost" "localhost:8080")
                                         :proxied-downloads-p t))))
(define-configuration web-buffer
  ((default-modes (append '(proxy-mode) %slot-value%))))

Reduce tracking mode

reduce-tracking-mode makes fingerprinting harder by changing the user agent, language, timezone (as to make them more generic) and removing tracking elements from URLs.

To enable it, simply add this to ~/.config/nyxt/config.lisp:

(define-configuration web-buffer
  ((default-modes
    (pushnew 'nyxt/mode/reduce-tracking:reduce-tracking-mode %slot-value%))))

Troubleshooting

Videos not playing / Webpages crashing

HTML5 video support requires gstreamer and its associated plugins.

Not having them might prevent the browser from playing video, it also might make those pages crash.

Blank pages

If you experience blank websites, you may try to disable compositing by adding the following line to ~/.config/nyxt/config.lisp

(setf (uiop/os:getenv "WEBKIT_DISABLE_COMPOSITING_MODE") "1")

See also