Skip to content

Instantly share code, notes, and snippets.

@michfield
Last active December 17, 2015 13:09
Show Gist options
  • Save michfield/5614949 to your computer and use it in GitHub Desktop.
Save michfield/5614949 to your computer and use it in GitHub Desktop.
Disable `Alt+F1` in Linux Mint

Disable Alt+F1, Alt-F7, etc, because I need them in Double Commander as shortcuts. Read more: http://askubuntu.com/questions/126817/how-to-disable-alt-f1-alt-f2-shortcuts

gsettings set org.gnome.desktop.wm.keybindings panel-main-menu "[]"
gsettings set org.gnome.desktop.wm.keybindings begin-move "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-down  "[]"
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-up "[]"

This should be executed only once. It's remembered forever.

Original values were:

panel-main-menu = ['<Alt>F1']
begin-move = ['<Alt>F7']
switch-to-workspace-down = ['<Control><Alt>Down']
switch-to-workspace-up = ['<Control><Alt>Up']

And, I found out that by typing:

for k in `gsettings list-keys org.gnome.desktop.wm.keybindings`; do echo $k = `gsettings get org.gnome.desktop.wm.keybindings $k`; done
@michfield
Copy link
Author

To change Sublime Text configuration file and change shortcuts for Column Select, add this in Preferences / Key Bindings - User

// change column select defaults - on Linux it was Shift+Alt+Up/Down
{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment