summaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorbd <bdunahu@operationnull.com>2025-11-10 23:50:18 -0500
committerbd <bdunahu@operationnull.com>2025-11-10 23:50:18 -0500
commit66cdc752aaa972efc6327aabe20ac813092d1b32 (patch)
tree29f3bc6571d3c4651de8e60d493c0eeab9369e91 /.config
parent613e25c81e8e53befae362fd827eed37efa2fcbb (diff)
set xdg default browserHEADmaster
Diffstat (limited to '.config')
-rw-r--r--.config/emacs/modules/bd--browse.el7
-rw-r--r--.config/guix/modules/services/base.scm5
2 files changed, 8 insertions, 4 deletions
diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el
index 3fdd2c9..25de2b1 100644
--- a/.config/emacs/modules/bd--browse.el
+++ b/.config/emacs/modules/bd--browse.el
@@ -13,7 +13,7 @@
('eww (eww url))
('tor (start-process "torbrowser" nil "torbrowser" "--new-window" url))
('chromium (start-process "chromium" nil "chromium" "--new-window" url))
- (_ (start-process "browser" nil "librewolf" "--new-window" url))))
+ (_ (start-process "browser" nil (getenv "BROWSER") "--new-window" url))))
(defun bd/selector-bookmarks ()
"Selector source for all bookmarks."
@@ -69,6 +69,7 @@
(bd/search-candidate "Wikipedia" "https://en.wikipedia.org/w/index.php?search=" 'wolf)
(bd/search-candidate "Invidious" "https://inv.nadeko.net/search?q=" 'wolf)
(bd/search-candidate "Urban Dictionary" "https://www.urbandictionary.com/define.php?term=" 'wolf)
+ (bd/search-candidate "Nethack Wiki" "https://nethackwiki.com/w/index.php?search=" 'eww)
(bd/search-candidate "Archive of Our Own" "https://archiveofourown.org/works/search?work_search%5Bquery%5D=" 'eww)
(bd/search-candidate "Archwiki" "https://wiki.archlinux.org/index.php?title=Special%3ASearch&search=" 'eww)
@@ -121,8 +122,8 @@
:hook
;; eww-mode by default sets this as local var to eww-browse-url
((eww-mode .
- (lambda ()
- (setq-local browse-url-browser-function #'bd/browse))))
+ (lambda ()
+ (setq-local browse-url-browser-function #'bd/browse))))
:config
(setopt eww-search-prefix "https://searx.operationnull.com/searxng/search?q="
eww-auto-rename-buffer 'title
diff --git a/.config/guix/modules/services/base.scm b/.config/guix/modules/services/base.scm
index df41590..02bfb51 100644
--- a/.config/guix/modules/services/base.scm
+++ b/.config/guix/modules/services/base.scm
@@ -191,7 +191,10 @@ set history size unlimited")))))
(home-xdg-mime-applications-configuration
(default
'((application/x-bittorrent . torrent.desktop)
- (x-scheme-handler/magnet . torrent.desktop)))
+ (x-scheme-handler/magnet . torrent.desktop)
+ (x-scheme-handler/http . librewolf.desktop)
+ (x-scheme-handler/https . librewolf.desktop)
+ ))
(desktop-entries
(list
(xdg-desktop-entry