From f8d471a07736b899dbffe0f4339e4f97748fd5e6 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Fri, 17 Apr 2026 10:53:38 +0100 Subject: refactor: replace tmux.nvim with smart-splits.nvim for zellij - Swap aserowy/tmux.nvim for mrjones2014/smart-splits.nvim in init.lua - Configure Ctrl h/j/k/l navigation keymaps (same keys as before) - Add vim-zellij-navigator WASM plugin keybindings to zellij config - Remove tmux treesitter parser (no longer needed) smart-splits.nvim auto-detects zellij as the multiplexer and provides seamless split/pane navigation across neovim and zellij boundaries. --- home/.local/bin/tokodi | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'home/.local/bin/tokodi') diff --git a/home/.local/bin/tokodi b/home/.local/bin/tokodi index 8393c8b..e8a2495 100755 --- a/home/.local/bin/tokodi +++ b/home/.local/bin/tokodi @@ -8,6 +8,15 @@ else url="$1" fi -payload="$(printf '{"jsonrpc":"2.0", "id": 1, "method":"Player.Open","params": {"item": {"file":"%s"}}}' "$url")" +case "$url" in +*.m3u8*) + prefix='' + ;; +*) + prefix='plugin://plugin.video.sendtokodi/?' + ;; +esac + +payload="$(printf '{"jsonrpc":"2.0", "id": 1, "method":"Player.Open","params": {"item": {"file":"%s%s"}}}' "$prefix" "$url")" curl -u kodi:kodi 'http://ruiflix.pulpo:8080/jsonrpc' -X POST --data-raw "$payload" -H 'Content-Type: application/json' -- cgit v1.2.3-70-g09d2