Author Topic: Pasting text into NWN in Linux  (Read 1337 times)

Telkar

  • Dark Power
  • ******
  • Posts: 1693
Pasting text into NWN in Linux
« on: December 19, 2012, 10:29:53 PM »
I'd really like to know if pasting text into NWN in Linux is working for someone, or if someone has an idea to do so. It's a bit of an annoyance to have to write the whole character description in there word by word rather than to copy paste. The Ctrl+V works in Windows.

Telkar

  • Dark Power
  • ******
  • Posts: 1693
Re: Pasting text into NWN in Linux
« Reply #1 on: May 09, 2014, 06:55:38 PM »
In case other Linux folks come across this. I crafted a solution. Just run this command with whatever shortcut your WM or DE lets you assign a command to, and it will work similarly to Ctrl-V in Windows:

Quote
sh -c 'sleep 0.5; xdotool type --clearmodifiers "$(xclip -o)"'

This requires you to have xdotool and xclip obviously. It will lag slightly and then type out the characters in the clipboard letter by letter (12 ms appart, so fast enough).