Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can assign Alt+F1 and Alt+F2 to any function I like in the keyboard configuration window, but its not beeing used. Alt+F1 is always 'dash home' and Alt+F2 is always 'run'

share|improve this question

I sat with the same issue after upgrading to 12.04 and installing Gnome Shell. I tried to disable Alt+F1 from wherever I could, to no avail.

As I was about to give up I found this gist:

gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "[]" # disable Alt+F1

Credits to

share|improve this answer
Indeed works for Alt-F1. I found the following way to list built-in keybindings: for k in `gsettings list-keys org.gnome.desktop.wm.keybindings`; do echo $k = `gsettings get org.gnome.desktop.wm.keybindings $k`; done – Jesse Glick May 23 '12 at 15:03
Worked for me on Ubuntu 13.04 – ehsanullahjan May 17 '13 at 14:22
This script shows <Alt>F2 but it doesn't show <Alt>F1. – Dean Schulze Jan 20 '15 at 4:43
gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "[]" will clear Super+S also, which is default in Ubuntu 14.04, so be careful. – skyreua Jul 8 at 10:14

With ubuntu unity plugin installed, the musinsky gist snippet in terminal wasn't enough.

Disabling using compizconfig-settings-manager:

sudo apt-get install compizconfig-settings-manager
sudo apt-get install compiz-plugins-extra
ubuntu unity plugin

general tab

  • Key to show the HUD - disable
  • Key to execute a command - disable

launcher tab

  • Key to give keyboard focus to Launcher - disable
share|improve this answer
After using johanmynhard's method, this one did the trick. – nana Sep 10 '13 at 11:02
This worked for me – konstantin.zaikin Dec 3 '14 at 15:21

Although johanmynhardt gave us the right answer for the Alt-F1 he did not tell us what it is for Alt-F2. With the for loop as shown by Jesse Glick, I figured out the Alt-F2 command. Like this to remove BOTH keys:

gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "[]" # disable Alt+F1
gsettings set org.gnome.desktop.wm.keybindings panel-run-dialog "[]" # disable Alt-F2
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.