Keyboard layouts in "floating window" session

Forum / NoMachine Terminal Server Products / Keyboard layouts in "floating window" session

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12392
    istoril
    Participant

    Hello!
    Iā€™m new with NoMachine and just installed NoMachine Terminal Server Evaluation ā€“ Version 5.1.44 on Ubuntu Server 16.04.1 LTS and xubuntu-desktop. Client ā€“ Win7 x64.
    I need to run web-browser in “floating window” session with 2 keyboard layouts: us, ru. When I run console in floating window I can execute command

    setxkbmap -option grp:alt_shift_toggle us,ru

    and then run firefox and that works fine.
    I wrote a script

    #!/bin/bash
    setxkbmap -option grp:alt_shift_toggle us,ru | firefox

    and when I execute it from console in “floating window” I can switch layouts.
    But if I use “Run the following command” or use it as “Default X client script” in “floating window” and put my script there, firefox starts only with us layout.

    “New virtual desktop” session works fine.

    Help me please.

    #12502
    graywolf
    Participant

    Add a small delay before setxkbmap command. Try this:

    sleep 5 && setxkbmap -option grp:alt_shift_toggle us,ru && firefox

    or this:

    firefox &
    
    sleep 5
    
    setxkbmap -option grp:alt_shift_toggle us,ru
Viewing 2 posts - 1 through 2 (of 2 total)

This topic was marked as solved, you can't post.