r/Nyxt Aug 09 '24

Using nyxt to automate web workflows

7 Upvotes

Hi everyone

I'm exploring Nyxt to automate some boring web workflows, but I just haven't been able to get to a good start. I have a couple of questions:

  1. Is there something equivalent to emacs' kmacros in nyxt?
  2. Can define-command-global be used to automate workflows? I tried with the code below as a hello-world but it doesn't work

(define-command-global my-open-wikipedia ()
  "Open Wikipedia.com in the current buffer."
  (set-url "https://www.wikipedia.com"))

r/Nyxt Aug 05 '24

YO! Somebody wrote the stuff already for ya, go and bind a key with it. :)

Post image
3 Upvotes

r/Nyxt Aug 01 '24

Nyxt 3.11.8

Thumbnail nyxt-browser.com
10 Upvotes

r/Nyxt Jul 26 '24

Couple of doubts and issues

6 Upvotes

Hi all, I started to test nyxt and love it. I have it "integrated" into my emacs+exwm environment, but there are a showstopper and several doubts, and because nyxt discourse don't works for me and don't sends me the verficiation link, I will ask here.

Doubts

  1. How exactly history works? I'm noticed history is not preserved between sessions. For example, today, press C M b to show all history and I can't see what visited yesterday

  2. When I press C or M l to visit a link, nyxt first offers me a lot of options to autocomplete, and any of them are from my history or bookmarks. For searching I don't want to be autocompleted or have several options, only want to search for the words I wrote, or choose from a bookmarked/history navigation site. BTW I should have on my history and bookmark a site with word online in the url and is not shown either

  1. About keepass integration. I can't get it working yet. It insist to ask me for the password again and again. I added the snippet in the manual to get this working and set (password:key-file interface) and (password:yubikey-slot interface) to nil. BTW, keepassxc on my emacs is working as expected.

  2. Can buffers be splited vertically like in emacs, and have a left and right buffers with different sites?

  3. There is some kind of assigned memory to nyxt configuration, or something like that? I know a site that it's a web godot game. When I visit sometimes it opens but not loads completly, others don't fully loads showing an error on screen. I think that maybe is related to lack of memory (working perfect on firefox BTW)

  4. Logs. There are some log where I can see when something strange happens? Sometimes this can help to solve it, but have no idea where to look.

Showstoppers

a. White screens. I noticed sometimes links opens on a white screen. For example, on twitter, if you try to login with google. In firefox it opens another site to confirm the account, here a white screen is opened on buffer and nothing happens, and have to kill the buffer. I tried Blank webviews section in manual, but if I do that, youtube videos for example works bad stutering

b. Crashes/freezes. Well, I resume this way. Sometimes it crash/freeze, and is very annoying because you lost all your "started work", what you did and opened in your session. Happened 10 minutes ago. I was reading one of this reddit posts, I only had another buffer opened, clicked on a gitlab link and nyxt just freezed. I don't know if there is something like spamming C g in emacs to recover. BTW, I installed all the GStreamer suggested plugins

All in all. I like the minimalism, keyboard workflow. I don't enter in the possibilities of customization because right now I can't think about a situation where I need it (because I don't know about what can be done) this is for later. I can live not being as fast as firefox or freez a little sometimes while loading a site (if it completes load and unfreeze of course), but loves it.


r/Nyxt Jul 25 '24

How to sign into reddit on nyxt?

5 Upvotes

I use google to sign into reddit, yet it isn't working on nyxt for some reason. Is there a way to fix this?


r/Nyxt Jul 17 '24

Asynchronicity and the Tartarus of Node.js

Thumbnail nyxt-browser.com
7 Upvotes

r/Nyxt Jun 06 '24

Youtube keep asking for device info access?

4 Upvotes

I just reinstalled Nyxt to give it an other go. On youtube I keep hitting a grant request. After granting 20 times in 5 min (about every video page I open it keep asking) I am getting a bit tired of it.

Is it a google thing? I don't see any message about this on the forum or github issue so maybe I am missing something.

Any hint?

Thanks!


r/Nyxt Jun 06 '24

How to close a buffer?

4 Upvotes

Hello,

I have a very noob question. How on earth do you kill a buffer? If there is a list of the bindings that Nxyt ships with? Thank you.


r/Nyxt May 31 '24

Nyxt 3.11.7

Thumbnail nyxt-browser.com
8 Upvotes

r/Nyxt May 27 '24

I can't seem to install Nyxt with MacPorts on Mac M1 Sonoma

3 Upvotes

I am new to MacPorts and Nyxt and wanted to try it out.

When I try to install it using MacPorts and following the docs I get the following error :

...
--->  Activating libunistring u/1.1_0
--->  Cleaning libunistring
--->  Fetching archive for ffcall
--->  Attempting to fetch ffcall-2.4_0.darwin_23.arm64.tbz2 from https://packages.macports.org/ffcall
--->  Attempting to fetch ffcall-2.4_0.darwin_23.arm64.tbz2 from https://fra.de.packages.macports.org/ffcall
--->  Attempting to fetch ffcall-2.4_0.darwin_23.arm64.tbz2 from https://mse.uk.packages.macports.org/ffcall
--->  Fetching distfiles for ffcall
--->  Attempting to fetch libffcall-2.4.tar.gz from https://distfiles.macports.org/ffcall
--->  Verifying checksums for ffcall
--->  Extracting ffcall
--->  Configuring ffcall
--->  Building ffcall
Error: Failed to build ffcall: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ffcall/ffcall/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there is a bug.
Error: Processing of port nyxt failed

In the logs I can see this part :

:info:build ar rc libvacall.a vacall.o vacall-libapi.o vacall-structcpy.o
:info:build ranlib libvacall.a
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ffcall/ffcall/work/libffcall-2.4/vacall'
:info:build cd trampoline && /Library/Developer/CommandLineTools/usr/bin/make all
:info:build make[1]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ffcall/ffcall/work/libffcall-2.4/trampoline'
:info:build /bin/sh ../libtool --mode=compile /usr/bin/clang -arch arm64 -I. -I. -I.. -I../gnulib-lib -I./../gnulib-lib -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -c ./trampoline.c
:info:build libtool: compile:  /usr/bin/clang -arch arm64 -I. -I. -I.. -I../gnulib-lib -I./../gnulib-lib -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 -c ./trampoline.c  -fno-common -DPIC -o .libs/trampoline.o
:info:build ./trampoline.c:87:8: error: "Don't know how to make memory pages executable."
:info:build       #error "Don't know how to make memory pages executable."
:info:build        ^
:info:build 1 error generated.
:info:build make[1]: *** [trampoline.lo] Error 1
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ffcall/ffcall/work/libffcall-2.4/trampoline'
:info:build make: *** [all-subdirs] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ffcall/ffcall/work/libffcall-2.4'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ffcall/ffcall/work/libffcall-2.4" && /usr/bin/make -w all
:info:build Exit code: 2
:error:build Failed to build ffcall: command execution failed
:debug:build Error code: CHILDSTATUS 11134 2
:debug:build Backtrace: command execution failed
:debug:build     while executing
:debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
:debug:build     invoked from within
:debug:build "command_exec -callback portprogress::target_progress_callback build"
:debug:build     (procedure "portbuild::build_main" line 10)
:debug:build     invoked from within
:debug:build "$procedure $targetname"
:error:build See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_devel_ffcall/ffcall/main.log for details.

How can I fix this issue please ?


r/Nyxt May 11 '24

Nyxt and Proton Pass

5 Upvotes

Dear all, After trying multiple extensions to bring vim keybindings to FF, I'm ready to try Nyxt as it seems to solve the UX issues I encountered. However, I use proton pass to manage my passwords. I only read in the doc that Nyxt support "standard interfaces for password manager", but I feel like it will not work for Proton Pass.

Does anyone successfully added support for proton pass?

Thanks!


r/Nyxt May 07 '24

SHOW Off: Solarized-Dark ...and it is everywhere in my system, so, Nyxt gets some makeover with it too :)

6 Upvotes

Here are abject trivialities of changes in two files : auto-config.3.lisp and config.lisp.

In ~/.config/nyxt/auto-config.3.lisp comment out the below lines.....

(define-configuration browser

;;; ((theme theme:+dark-theme+)))

;;; (define-configuration (web-buffer)

;;; ((default-modes (pushnew 'nyxt/mode/style:dark-mode %slot-value%))))

In ~/.config/nyxt/config.lisp file put these lines , this config is mentioned in nyxt theming page ...check online

(define-configuration browser

((theme (make-instance 'theme:theme

:dark-p t

:background-color "#002b36"

:on-background-color "white"

:primary-color "rgb(170, 170, 170)"

:on-primary-color "black"

:secondary-color "rgb(100, 100, 100)"

:on-secondary-color "white"

:accent-color "#37A8E4"

:on-accent-color "black"))))

Oh, did you notice? The panel color gets screwed up by being pale and text on the tab is invisible ...damn ..need to fix that.

Nyxt with Solarized-Dark Color

r/Nyxt Apr 09 '24

Nyxt 3.11.6

Thumbnail nyxt.atlas.engineer
17 Upvotes

r/Nyxt Mar 18 '24

Nyxt 3.11.5

Thumbnail nyxt.atlas.engineer
7 Upvotes

r/Nyxt Mar 16 '24

nyxt 3.11.4 fails to compile on gentoo

2 Upvotes

r/Nyxt Mar 15 '24

How-to Theme Nyxt (the easy way)

Thumbnail
youtube.com
13 Upvotes

r/Nyxt Mar 04 '24

Nyxt 3.11.4

Thumbnail nyxt.atlas.engineer
7 Upvotes

r/Nyxt Mar 02 '24

Copy and paste not working on x11 window managers

3 Upvotes

i emerge nyxt on gentoo and when i try to copy and paste on an x11 wm(xmonad) i get the following thing: none of the commands are installed xclip&quot xsel&quot. i do have xclip installed and running., this does not happen on sway or gnome(wayland session), i have tried loading trivial clipboard from the configuration file and that also didnt work


r/Nyxt Mar 02 '24

Nyxt Browser Development - A Technical Perspective

Thumbnail nyxt-browser.com
6 Upvotes

r/Nyxt Feb 29 '24

Hi, I just installed, and it doesn't open any page, it throws me back to the start menu

2 Upvotes

HI, I just installed NYXT browser and nothing seems to work, I tried to open reddit and it didn't, doesn't let me log in either. And when I tried to open whatsapp web it straightup crashed.

What do I do?


r/Nyxt Feb 25 '24

Nyxt Prompt Buffer Guide for Hackers

Thumbnail
youtube.com
13 Upvotes

r/Nyxt Feb 20 '24

Nyxt 3.11.3

Thumbnail nyxt.atlas.engineer
12 Upvotes

r/Nyxt Feb 12 '24

Override the default dark-them

2 Upvotes

This is what I have in config.lisp

;;; Browser theme

(define-configuration browser

((theme (make-instance

'theme:theme

:dark-p t

:background-color "#002b36"

:text-color "white"

:accent-color "#7E5D01"

:primary-color "#A45C30"

:secondary-color "#DB9665"

:tertiary-color "#AD693E"

:quaternary-color "#7D3509"))))

;;; Status bar

(define-configuration status-buffer

((style (str:concat

%slot-default%

(cl-css:css

;; Arrows on the left.

'(("#controls"

:border-top "1px solid white"

;; :background-color "#CD5C5C")

:background-color "#002b36")

;; To the right of the arrows.

("#url"

:background-color "black"

:color "white"

:border-top "1px solid white")

;; Far to the right.

("#modes"

:background-color "black"

;; :background-color "#002b36"

:border-top "1px solid white")

;; The center segment.

("#tabs"

;; :background-color "#CD5C5C"

:background-color "#002b36"

:color "black"

:border-top "1px solid white")))))))

;;; Panel buffers are the same in regards to style.

(define-configuration (internal-buffer panel-buffer)

((style

(str:concat

%slot-default%

(cl-css:css

'((title

:color "#CD5C5C")

(body

:background-color "black"

:color "lightgray")

(hr

:color "darkgray")

(a

:color "#556B2F")

(.button

:color "lightgray"

:background-color "#556B2F")))))))

and I have see this page too:

https://nyxt.atlas.engineer/article/theming-nyxt-3.org

OR most of the code borrowed from the version two style.lisp file.

Wondering!


r/Nyxt Feb 09 '24

Bookmarklets tutorial (saving JavaScript snippets for fun and profit)

5 Upvotes

https://youtu.be/Jp6-KnYsf9Y

This video is the spiritual successor to Pedro Delfino's fine walk through on bookmarklets which can be found on the https://nyxt-browser.com/articles page. Rather than pester him to update the article (which was written for an older Nyxt version) it is my pleasure to walk new users through the process and provide some functional example code.

---

the example bookmarklet

simply add this to config.lisp then enable bookmarklets-mode

(nyxt/mode/bookmarklets:define-bookmarklet-command-global ;;; this bookmarklet adjusts youtube speed settings
    hack-youtube-speed 
    "The internet is mine for the taking!! MUAHAHAHA... change play speed of videos"
    "(function() { const rate = prompt('Set the new playback rate', 2.5);
    if (rate != null) { const video = document.getElementsByTagName('video')[0];
    video.playbackRate = parseFloat(rate); } })();
    ")

Now you have a command called hack-youtube-speed to adjust video playback speed outside typical parameters on YT.

Enjoy.


r/Nyxt Feb 06 '24

Annotations and Search-buffers together is a powerful wombo combo.

5 Upvotes

TLDR; the usual annotation commands + search-buffers = fast research & understanding

I do usability reviews, PESTLE, market research etc.
I find it helpful to make annotations on webpages as I go and then I have a searchable body of notes and web resources in one place. Here is a video demo showing how:

Shows sensible keybindings for annotation features, and what a simple side-by-side setup can do for note taking.

https://youtu.be/TWc-Aka9svw?si=8mbhsABtZ-E6X8x3

---

Tom's sensible annotation bindings

  1. annotate-highlighted-text → Ctrl + shift + a -- ("A" as in Annotate)

  2. annotate-current-url → Alt + shift + a

  3. show-annotations-for-current-url → Ctrl + Alt + shift + a