We all know the default keyboard shortcuts in gnome are useless, especially compared to something like fluxbox.
Why can’t you just hook up a command to a keyboard shortcut?
The possibilities would be endless. Press f2 and your sound volume decreases by 5%, press alt+f3 and synaptic launches.
This can be done with a tool called xbindkeys.
1. Installation
Open up a terminal (applications -> accessories -> terminal) and copy/paste this command.
sudo apt-get install xbindkeys-config
(apt will take care of the rest)
2. Add to menu
The app didn’t come up in my applications menu, so let’s add it.
Open up “system -> preferences -> main menu”.
I suggest you add it to “system tools”.
Highlight “system tools” in the left plane of the interface. The press “new item” in the right side off the interface.
This box will pop up.
For those unable to see the picture, you would enter this:
Type: Application
Name: Xbindkeys
Command: xbindkeys-config
Comment: Application to set keyboard shortcuts.
You can make up what you put in “name” and “comment”.
Press close and the app will be in your applications menu.
3. Configure
Before opening it, run this command in a terminal (press the “copy to clipboard button!)
xbindkeys --defaults > $HOME/.xbindkeysrc
This will create a config file, without it xbindkeys will crash.
4. Create shortcuts
Open the app and you’ll see an ugly interface. Oh well, it’s not like you need to use it every day. Once configured you’ll most likely never touch it again.
I’m going to set up a keyboard shortcut for synaptic package manager. After that you should be able to set up your own.
You might already see a few shortcuts in there already.
Press the “new” button in the bottom of the interface.
In the right plane of the interface, enter a name.
Since we are setting a shortcut for synaptic, let’s call it “Synaptic”.
Then press the get key. A little box will appear. Just enter the shortcut you would like to use.
I used “alt + f3″.
Then in the “Action:” box enter the command you would like to use. In this case that would be
gksudo synaptic
Then press “run action”.
After that press “apply” and the keyboard shortcut will be created.
If you are done, press “file -> save to default file”. Or else they will be gone if you log out!!!
5. Some more.
I’m just going to list some commands that could be useful to bind to a shortcut.
Note: remember the Main Menu, the app where you can add entries to the menu? Right – click on an application and press “properties”. The command to launch it will be displayed there.
The command for most audio players is just the name of the app.
For exaile, use “exaile”. For rhythmbox, use “rhythmbox”.
Same for movie players.
For “Movie Player” use “totem”, for vlc media player use “vlc”.
What if you want to assign hotkeys to manage the volume (might only work if using ALSA)?
amixer sset Master,0 5%-
# lower volume by 5%
amixer sset Master,0 5%+
# turn up volume by 5%
amixer sset Master,0 toggle
# mute volume
Open the Home directory.
nautilus /home/username
What if you want to open the file manager as root?
gksudo nautilus
What if you want the add/remove gui for apt instead of synaptic?
gksudo gnome-app-install
Or lets say you want to launch the system monitor (maybe add it to ctrl + alt +del for lulz)
gnome-system-monitor
As you see, the options are limitless.
This is mine. It’s on a fresh install of Ubuntu, so I still need to add some things things to it (scripts, …).
If you have any usefull commands you use, please share them in the comments.









14 Comments
September 4, 2008 at 2:14 pm
hmmm, nice nice. thanks for posting this. its very handy
September 4, 2008 at 7:48 pm
Actually you can add custom commands/shorcuts to gnome, although for some reason they have made it pretty hard to find the configuration for this.
open gconf-editor, go to apps->metacity.
In keybinding_commands you can define commands, and in global_keybindings you can define keyboard shortcuts for them (run_command 1-12)
September 5, 2008 at 6:20 am
I presume because those are under “metacity” they don’t work when you are using compiz fusion?
September 5, 2008 at 6:38 pm
Bill, I’m using CF too and the keybinds work for me.
I don’t know what logic (if any) is behind filing this configuration under metacity, maybe the gnome guys just want to confuse us, or I’m experiencing unintended behaviour
September 6, 2008 at 10:39 am
September 6, 2008 at 2:03 pm
Hi
G’night
September 15, 2008 at 11:23 am
you can also set up shortcuts in compiz-fusion, under “general options”.
September 15, 2008 at 3:31 pm
Thanks stefanie, I forgot to mention it.
I think this app is beter because you can also use it under metacity/fluxbox/kde/…
February 13, 2009 at 11:48 am
The Lowest Pharmacy Offers. The Most Reliable Online Pharmacy Store. Order xanax online.
You can check the prices, and then click on one of the images below to proceed to the original pharmacy shop.
[URL=http://xrl.us/bebaqy].[IMG]http://www.buy-cheap-pharmacy-online.com/images/cdrugs.gif[/IMG][/URL]
[URL=http://xrl.us/bebaqy].[B][color=RED][size=18]To Buy Xanax Online, Click here![/B][/color][/size][/URL]
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
What Is The Lethal Dosage Of Xanax
Is Anyone Giving Away Xanax
Ambien Xanax
Xanax For Sleep
Xanax Identification
Abuse On Xanax
Xanax And Wellbutrin
Pics Of Lilly Xanax
Xanax And Urine Test
What Do Xanax Look Like
Xanax Snort
Post Xanax Anxiety Subject Xannies
Can U Shoot Up Xanax
Order Xanax Overnight Online
Xanax Detox
Side Effects Of Drug Xanax
Most Common Xanax Side Effects
Can I Take Xanax And Librium At The Same Time
Xanax Urinalysis
Xanax Physicians Directory
Xanax Aluid
Alprazolam Xanax And Zoloft Together
Looking For Xanax
Xanax Drug Test
Xanax No Script Mastercard Worldwide
Ranitidine Xanax
Buy Xanax Without P
Taking Xanax Nerves Still Tingling
Post Xanax Anxiety Subject Xannies Benzo Lover Time Make
Xanax Controlled Release
Valium Vs Xanax
Xanax Tablet
What Is The Difference Between Valium And Xanax
Xanax Forums
Overdose Xanax
How Long Xanax Stays In System
Xanax Vs Ativan
Xanax Withdrawl Symtoms
Will Lexapro Or Xanax Test Positive On Drug Screen For Cocaine
Xanax And Herbs
Xanax Half Life
Get High Xanax
Generic Xanax 027
Xanax G3772
What Color Do Xanax Come In
Elavil Topamax Wellbutrin Effexor Xanax Depakote Imitrex
Xanax Abuse
Xanax Online No Rx Usa Only
Seroquel With Xanax
Buy Xanax Consultation Free
What To Say For A Xanax Prescription
Xanax Buy Online
Discontinuing Use Of Xanax
Pictures Of Xanax Pills
Xanax Drug Interactians
Buy Xanax 2 Mg Without Prescription
Xanax And Lortab
Buy Xanax Sticks
Xanax Interact With Doxycycline
Xanax Effect
Sold Xanax And Percocet To Cop
Post Xanax Anxiety Subject
Does Grapefruit Juice Increase The Effects Of Xanax
Xanax Magnesium
Xanax Mg
http://www.churchster.info/board/index.php?showtopic=3644
April 15, 2009 at 6:00 pm
Not that I’m totally impressed, but this is a lot more than I expected when I stumpled upon a link on SU telling that the info here is quite decent. Thanks.
June 8, 2009 at 7:20 am
good morning,
Can someone please tell me where you can buy mail order dipyridamole online with no dr. visit? I’ve been to http://www.onlinedrugsnoprescription.com but I’m not sure how to tell if their site is trustworthy.
June 10, 2009 at 9:16 pm
ghhhh5432 gfhg ghfgffff
June 12, 2009 at 2:10 pm
yyy8980yy ttttt rrrrr
June 12, 2009 at 3:07 pm
jjjjj67566 fgfgf sdssess er rtd