Score:1

Ubuntu MATE: how to disable keyboard shortcut for file search tool?

us flag

Ubuntu MATE 21.10.

When I press [Meta+S] (aka [mod4+s] aka [Win+S]) it opens the "Search for files" or mate-search-tool utility in a new window.

I want to assign "Switch to the workspace below the current workspace" to this key combination (so I can use Meta+WASD to move around workspaces).

I can assign the key combo in the "Keyboard shortcuts" UI. But it only half works. When I press [win+S] it moves to the workspace, but it immediately closes the workspace switcher (but does not open the search tool). To move further I have to release the Meta key and press it again. For other keys (w,a,d) is works as expected, i.e you can move around and back and forth between workspaces while keeping the Meta key down.

I can't find where this [Meta+S] opens search shortcut is configured. I checked:

  • Keyboard shortcuts UI: nowhere to be seen (and assigning it to another action would effectively unbind it from the search tool)
  • Dumping dconf and looking for key bindings in the output

How can I disable/remove this key binding? I hope it's not just hard-coded in some source file...

Score:1
zw flag

Determining this was really interesting. What we have so far: this Mod4+s is configured by mate-desktop-environment-core deb-package via its 10_mate-common.gschema.override:

[org.mate.Marco.global-keybindings]
run-command-6='<Mod4>s'

where command-6='mate-search-tool'.

So you have to unset this by

gsettings set org.mate.Marco.global-keybindings run-command-6 ''

and then configure your own shortcut using Mod4+s.

To set whole WASD for 2x2 workspaces (2 rows, 2 columns) at one shot use below command:

dconf load / <<EOF
[org/mate/marco/general]
num-workspaces=4

[org/mate/panel/objects/workspace-switcher/prefs]
num-rows=2

[org/mate/marco/global-keybindings]
run-command-6=''
switch-to-workspace-down='<Mod4>s'
switch-to-workspace-left='<Mod4>a'
switch-to-workspace-right='<Mod4>d'
switch-to-workspace-up='<Mod4>w'
EOF

and enjoy:

WASD on Ubuntu MATE 21.10

Pierre Henry avatar
us flag
Awesome! Great and rapid answer. Thanks!
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.