Results 1 to 3 of 3

Thread: Script for Keyboard Layouts.

  1. #1
    Join Date
    Dec 2006
    Location
    Israel
    Beans
    285
    Distro
    Ubuntu 16.10 Yakkety Yak

    Script for Keyboard Layouts.

    Hi, I'm having this problem:

    https://bugs.launchpad.net/ubuntu/+s...rg/+bug/196277
    and want to make this script run when system enter in ubuntu
    https://bugs.launchpad.net/ubuntu/+s...77/comments/60

    my question is how do I write this script in the computer? i mean how do i save it??

  2. #2
    Join Date
    Aug 2006
    Location
    Australia
    Beans
    1,438

    Re: Script for Keyboard Layouts.

    Applications --> Accessories --> Text Editor
    Paste this in:
    Code:
    #!/bin/bash
    gconftool-2 -s /desktop/gnome/peripherals/keyboard/kbd/options -t list --list-type=string "[]"
    gconftool-2 -s /desktop/gnome/peripherals/keyboard/kbd/options -t list --list-type=string "`echo -e "[grp\tgrp:alt_shift_toggle]"`"
    Then File --> Save As...
    Save it as something like "keyboard.sh" in your home directory somewhere.
    Find keyboard.sh in Places (in nautilus), right click on it --> Properties.
    Go to the Permissions tab, and check the execute checkbox.
    To make it run every time you log in:
    System --> Preferences --> Sessions
    Click the "+Add" button, give it a name (like "Keyboard fix" or similar), Press the Browse button and choose the keyboard.sh file you created, and give it a nice informative comment if you want.
    Then just log out and log back in again, and that script should automatically run.
    Work smart, not hard.

  3. #3
    Join Date
    Dec 2006
    Location
    Israel
    Beans
    285
    Distro
    Ubuntu 16.10 Yakkety Yak

    Re: Script for Keyboard Layouts.

    than u

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •