diff options
Diffstat (limited to 'luakit')
-rw-r--r-- | luakit/.config/luakit/rc.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/luakit/.config/luakit/rc.lua b/luakit/.config/luakit/rc.lua index d2e60c2..8c72762 100644 --- a/luakit/.config/luakit/rc.lua +++ b/luakit/.config/luakit/rc.lua @@ -27,6 +27,15 @@ local window = require "window" -- ("$XDG_CONFIG_HOME/luakit/webview.lua" or "/etc/xdg/luakit/webview.lua") local webview = require "webview" +webview.add_signal("init", function (view) + view:add_signal("navigation-request", function (v, uri) + if string.match(string.lower(uri), "^magnet:") then + luakit.spawn(string.format("%s %q", "transmission-gtk", uri)) + return false + end + end) +end) + -- Add luakit://log/ chrome page local log_chrome = require "log_chrome" |