<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d23884446\x26blogName\x3dJust+Another+Tech+Blog\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://justanothertechblog.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://justanothertechblog.blogspot.com/\x26vt\x3d-484221019928432923', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>

Just Another Tech Blog

Anything and everything having to do with technology, computers, science, and most of all... Linux! The documentation of my Linux endeavor.



Defining Keyboard Shortcuts in Gnome (Metacity)

Monday, December 18, 2006

A glaring usability problem in most gnome setups is not having the ability to easily map a custom keyboard shortcut to launch and application/ command. But, it can be done through use of the gconf-editor. Here's how:
  1. Run the gconf-editor
    gconf-editor
  2. Go to "Apps->Metacity->Keybinding Commands" Here is a list of twelve slots for commands. Say you want one of the to run... Firefox. Choose a slot (remember the name/ number). Double click (or right-click and choose "Edit key" in the popup-menu), to edit the key. In "Key Value", enter "firefox" (or whatever command opens your application of choice). Press OK.
  3. We have set the command, but we must still tell Metacity what key to press to
    run it. Go to "Global keybindings" (in the list to the left). Scroll down until you find the line "run_command_1" (or whatever number slot you had chosen).
  4. Select the line and double-click or select "Edit key". Change the key value to whatever you want (Control and Alt are placed within < >). In my case, I entered F . Press "Ok".
And there you have it! A custom keyboard shortcut made to fit your needs! Thanks gnome-hacks.com!
posted by linnerd40, Monday, December 18, 2006


1 Comments:

Thanks for the tip!

commented by Anonymous Anonymous, 6:05 PM  

Add a comment