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/display-setup | 4 ++-- home/.local/bin/input-setup | 10 +++++----- home/.local/bin/togreta | 14 ++++++++++++++ home/.local/bin/tokodi | 11 ++++++++++- 4 files changed, 31 insertions(+), 8 deletions(-) create mode 100755 home/.local/bin/togreta (limited to 'home/.local/bin') diff --git a/home/.local/bin/display-setup b/home/.local/bin/display-setup index 94d5703..d8e86d8 100755 --- a/home/.local/bin/display-setup +++ b/home/.local/bin/display-setup @@ -14,8 +14,8 @@ if [ "$(uname -n)" = "hercules" ] && xrandr --query | grep "HDMI-1 connected"; t # xrandr --output HDMI-1 --primary --mode 2560x1080 --rate 75 # xrandr --output HDMI-1 --primary --mode 3840x2160 # xrandr --output HDMI-1 --mode 1920x1080 --sameas eDP-1 -elif [ "$(uname -n)" = "halley" ] && xrandr --query | grep "HDMI-1 connected"; then - xrandr --output HDMI-1 --mode 1920x1080 --same-as eDP-1 +elif [ "$(uname -n)" = "halley2" ] && xrandr --query | grep "HDMI-2 connected"; then + xrandr --output HDMI-2 --mode 1920x1080 --same-as eDP-1 fi bspc wm -r diff --git a/home/.local/bin/input-setup b/home/.local/bin/input-setup index b552871..d97f9c2 100755 --- a/home/.local/bin/input-setup +++ b/home/.local/bin/input-setup @@ -17,15 +17,11 @@ setmodmap() { } if [ "$(uname -n)" = "halley2" ]; then - setxkbmap -layout pt - xmodmap ~/.config/X11/Xmodmap + setxkbmap -layout us elif [ "$(uname -n)" = "hercules" ]; then setxkbmap -layout es - xmodmap ~/.config/X11/Xmodmap fi -setxkbmap -option "caps:escape" -xset r rate 250 30 setlayout "Kingston HyperX Alloy FPS Pro Mechanical Gaming Keyboard" us # setlayout "SONiX USB DEVICE" us @@ -38,6 +34,10 @@ setlayout "Dierya DK61 Keyboard" us setlayout "ZSA Technology Labs ErgoDox EZ" us +setxkbmap -option "caps:escape" +xset r rate 250 30 +xmodmap ~/.config/X11/Xmodmap + if [ "$(uname -n)" = "hercules" ]; then xinput set-prop "ELAN1205:00 04F3:30E9 Touchpad" "libinput Tapping Enabled" 1 xinput set-prop "ELAN1205:00 04F3:30E9 Touchpad" "libinput Natural Scrolling Enabled" 1 diff --git a/home/.local/bin/togreta b/home/.local/bin/togreta new file mode 100755 index 0000000..14caaa4 --- /dev/null +++ b/home/.local/bin/togreta @@ -0,0 +1,14 @@ +#!/usr/bin/env sh + +if [ -z "$1" ]; then + url=$(xclip -o -selection clipboard) +elif [ "$1" = "-" ]; then + read -r url +else + url="$1" +fi + +# shellcheck disable=SC2029 +ssh greta.wg restream toggle "$url" + +tokodi /storage/videos/greta.strm 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