Skip to content

Instantly share code, notes, and snippets.

@aareshb
aareshb / paste-to-kodi.sh
Created March 30, 2020 13:56
Janky fix for Kodi's lack of paste when running in Linux
#!/bin/bash
# requires xdotool and xsel
# finds kodi window, activates it then types whatever xsel tells us is in the clipboard
xdotool search --class kodi windowactivate --sync type $(xsel --clipboard)