feat(firefox): implement dynamic tridactyl newtab via env var

Allows per-profile newtab overrides using TRIDACTYL_NEWTAB environment variable.
This commit is contained in:
kenji
2026-01-05 14:42:18 -06:00
parent edfb269308
commit 6281f9ea6f
+4 -1
View File
@@ -16,7 +16,7 @@
];
workspace = [
"special:youtube, on-created-empty:uwsm app -- firefox -P YouTube --name youtube"
"special:youtube, on-created-empty:uwsm app -- env TRIDACTYL_NEWTAB=https://youtube.com firefox -P YouTube --name youtube"
];
windowrulev2 = [
@@ -38,6 +38,9 @@
bind J tabnext
bind K tabprev
unbind <C-e>
" Set newtab from environment variable if available (provided by native messenger)
js tri.native.run("printenv TRIDACTYL_NEWTAB").then(r => { if (r.stdout.trim()) tri.config.set("newtab", r.stdout.trim()) })
'';
programs.firefox = {