Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips > Outdated Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Outdated Tutorials & Tips
Outdated Tutorials & Tips

 
Thread Tools Display Modes
Old June 17th, 2005   #1
frodon
Ubuntu French Roast
 
frodon's Avatar
 
Join Date: Jun 2005
Location: France
Beans: 6,250
Ubuntu 9.04 Jaunty Jackalope
HOWTO : create a custom keyboard shortcut

Disclaimer : I wrote a more up to date and complete guide on the topic, please refer to this one now :
http://ubuntuforums.org/showthread.php?t=79560


The goal of this HOWTO is to create a custom keyboard shortcut to run a software (like xmms, 3ddesk, ...) or what you want (xkill, transset 0.5, ...). In the example I want to start xkill (graphical kill) using "Alt + a" shortcut.

1- Open GConf editor, go to apps -> metacity -> keybinding_commands, and now choose a command, for my example I choose command_1. Edit command_1 writing xkill in order to run xkill (or every command you want to launch).

2- In the same direcrtory go to global_keybindings. Edit command_1 (or the command you choose in part 1) with the wanted shortcut like that : <Alt>a .

that's all !

Enjoy

Last edited by frodon; January 7th, 2008 at 06:06 AM..
frodon is offline  
Old September 19th, 2005   #2
kb_ganesh
5 Cups of Ubuntu
 
Join Date: Sep 2005
Location: Chennai, India
Beans: 24
Re: HOWTO : create a custom shortcut

is it possible to make a custom shortcut for starting synaptic?

i tried using just synaptic as the command but it complains that it must be run as root..and if i put sudo synaptic, it doesnt ask for my password and thus doesnt open at all..any ideas anyone?

PS:am really sorry to have posted here..just read the read this..please do delete off this post..i will post it again in the right place..

Last edited by kb_ganesh; September 19th, 2005 at 03:22 AM..
kb_ganesh is offline  
Old September 19th, 2005   #3
lucifeer
First Cup of Ubuntu
 
Join Date: Aug 2005
Location: Sweden
Beans: 4
Ubuntu 9.04 Jaunty Jackalope
Re: HOWTO : create a custom shortcut

Quote:
Originally Posted by kb_ganesh
is it possible to make a custom shortcut for starting synaptic?

i tried using just synaptic as the command but it complains that it must be run as root..and if i put sudo synaptic, it doesnt ask for my password and thus doesnt open at all..any ideas anyone?

PS:am really sorry to have posted here..just read the read this..please do delete off this post..i will post it again in the right place..
Try pointing it to "gksudo /usr/sbin/synaptic"
lucifeer is offline  
Old May 23rd, 2006   #4
gregsfdev
First Cup of Ubuntu
 
Join Date: May 2006
My beans are hidden!
Re: HOWTO : create a custom shortcut

Does anyone know how to save/export the user defined shortcuts? I have searched high and low for a way to do this. I use many different ubuntu machines and would like to script the customisation of them by copying files. I tried md5'ing everything in ~/ changing a shortcut and seeing what changed. As far as I could tell it was only ~/.gconfd/saved_state that changed. However, copying and overwriting this file on another machine did not work. Any suggestions?
gregsfdev is offline  
Old December 2nd, 2006   #5
olejorgen
Quad Shot of Ubuntu
 
olejorgen's Avatar
 
Join Date: Oct 2006
Beans: 513
Re: HOWTO : create a custom shortcut

How do you use the windows buttons for hotkeys?

EDIT: Hm.. think I figured it out. Seems like it's a real mess though. Apparently this works different on every system :/

Anyway, using <super>x worked for me. <super_L> on the other hand did not

Last edited by olejorgen; December 2nd, 2006 at 06:29 AM..
olejorgen is offline  
Old December 30th, 2006   #6
K6K
First Cup of Ubuntu
 
K6K's Avatar
 
Join Date: Aug 2006
Beans: 1
Ubuntu 7.04 Feisty Fawn
Send a message via AIM to K6K
Re: HOWTO : create a custom shortcut

wondering if there would be a way to set up a keyboard shortcut to switch users quickly...
K6K is offline  
Old January 20th, 2007   #7
bladefallcon
A Carafe of Ubuntu
 
Join Date: Jul 2006
My beans are hidden!
Re: HOWTO : create a custom shortcut

Quote:
Originally Posted by frodon View Post
The goal of this HOWTO is to create a custom keyboard shortcut to run a software (like xmms, 3ddesk, ...) or what you want (xkill, transset 0.5, ...). In the example I want to start xkill (graphical kill) using "Alt + a" shortcut.

1- Open GConf editor, go to apps -> metacity -> keybinding_commands, and now choose a command, for my example I choose command_1. Edit command_1 writing xkill in order to run xkill (or every command you want to launch).

2- In the same direcrtory go to global_keybindings. Edit command_1 (or the command you choose in part 1) with the wanted shortcut like that : <Alt>a .

that's all !

Enjoy


Ok..Could you, or someone else possibly state the above in a step by step form, for someone who is new? example: How do i open GConf editor. etc. There is no 'metacity' under appl..not that i see anyways..so some explanations for someone like me would be greatly appreciated.
bladefallcon is offline  
Old February 1st, 2007   #8
maclenin
Ubuntu Extra Shot
 
maclenin's Avatar
 
Join Date: Dec 2006
Beans: 387
Re: HOWTO : create a custom shortcut

You're not alone - I don't see "metacity" under apps in gconf, either.... Do I need to ugrade my gconf?
maclenin is offline  
Old February 18th, 2007   #9
drr422
Just Give Me the Beans!
 
drr422's Avatar
 
Join Date: Apr 2006
Location: Houston Texas, USA
Beans: 49
Ubuntu 6.10 Edgy
Re: HOWTO : create a custom shortcut

With regard to backing up the gconf, i did the following to backup gconf and all of the settings:

http://gentoo-wiki.com/HOWTO_Gnome_Desktop_Admin_Guide

To dump your personal panel settings run gconftool-2.... in the command line:

# Gnome 2.10+
gconftool-2
--dump /apps/panel > my-panel-setup.entries

To Load your settings:

gconftool-2 --direct
--config-source xml:readwrite:/etc/gconf/gconf.xml.defaults
--load my-panel-setup.entries

And thats it, it will load it as the default settings, but i'm sure you can find something on the link provided, since that is where i got it from.

In order to view the gconf-editor, you need to right click on Applications, and select Edit Menus. From there, go down to System Tools, and press the little box for Configuration Editor, and then exit. Now it should be in Applications -> System Tools -> Configuration Editor.

I hope this helps,
Dustin
drr422 is offline  
Old March 12th, 2007   #10
siva214215
First Cup of Ubuntu
 
siva214215's Avatar
 
Join Date: Nov 2006
Beans: 11
Thumbs up Re: HOWTO : create a custom shortcut

Got it after long search. Very helpful. Simply Great - Thank you very much.

siva214215 is offline  

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:39 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry