From 566a8735c41dd4a4832faba9abf03aa93618c3af Mon Sep 17 00:00:00 2001 From: bd Date: Fri, 18 Oct 2024 14:17:13 -0400 Subject: Changes to eww --- .config/emacs/modules/bd--browse.el | 8 +++----- .config/guix/modules/dwm/config.def.h | 3 ++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.config/emacs/modules/bd--browse.el b/.config/emacs/modules/bd--browse.el index 0747cab..1dd5b4a 100644 --- a/.config/emacs/modules/bd--browse.el +++ b/.config/emacs/modules/bd--browse.el @@ -10,15 +10,13 @@ shr-max-width 85 ;; send only user agent url-privacy-level '(email os emacs lastloc cookies) - eww-search-prefix "https://searx.be/search?q=" + eww-search-prefix "https://duckduckgo.com/html/?q=" eww-auto-rename-buffer 'title eww-use-browse-url (regexp-opt '("mailto:" "youtube.com" - "youtu.be" - "yewtu.be" - "vid.puffyan.us")) + "youtu.be")) browse-url-handlers - `((,(regexp-opt'("youtube.com" "youtu.be" "yewtu.be" "vid.puffyan.us" "invidious.protokolla.fi")) . + `((,(regexp-opt'("youtube.com" "youtu.be")) . (lambda (url &rest _) (message "Ludu %s" url) (start-process-shell-command "rip-video" nil (concat "rip-video " url)))))) diff --git a/.config/guix/modules/dwm/config.def.h b/.config/guix/modules/dwm/config.def.h index a254b18..0fefb1d 100644 --- a/.config/guix/modules/dwm/config.def.h +++ b/.config/guix/modules/dwm/config.def.h @@ -26,7 +26,7 @@ static const unsigned int alphas[][3] = { }; /* tagging */ -static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; +static const char *tags[] = { "", "", "", "", "", "", "", "", "" }; static const Rule rules[] = { /* xprop(1): @@ -40,6 +40,7 @@ static const Rule rules[] = { { "Zathura", NULL, NULL, 1 << 2, 0, -1 }, { "libreoffice",NULL, NULL, 1 << 3, 0, -1 }, { "Gimp", NULL, NULL, 1 << 4, 1, -1 }, + { "Anki", NULL, NULL, 1 << 5, 0, -1 }, { "Nsxiv", NULL, NULL, 1 << 6, 0, -1 }, { "mpv", NULL, NULL, 1 << 7, 0, -1 }, }; -- cgit v1.2.3