Ubuntu – How to disable S to allow theself to launch Sublime

12.04gnomekeyboardshortcut-keyssublime-text

I've been using Sublime Text 2 quit a bit lately and want to make it as easy to launch as Terminal.

I've done the following so far:

  1. I went into System Settings > Keyboard > Shortcuts > Windows and disabled the shortcut for Toggled Shaded (Ctrl + Alt + S).
  2. I used gconf-editor to add <Control><Primary><Alt>S under apps/metacity/global_keybindings/run_command_1 and pointed it to /usr/bin/sublime under apps/metacity/keybinding_commands/command_1.
  3. I went into dconf-editor and changed the Toggle Shadows shortcut to <Control><Super>S under org/gnome/desktop/wm/keybindings.

I am still unable to launch Sublime with the shortcut Ctrl + Alt + S, and normal windows still keep being toggled with the shortcut. I'm using Ubuntu 12.04, any suggestions on what I am doing wrong?

Best Answer

I solved this by going into the Shortcuts settings of Ubuntu (System Settings > Keyboard > Shortcuts) and simply creating a custom shortcut with the command /usr/bin/sublime, then double click on the "Disabled" area and pressing the Ctrl + Alt + S keys.

Changing anything in gconf-editor under both user & root access didn't change a thing.

Related Question