小编Sim*_*ter的帖子

如何向空架构添加键?

我想自动设置一些设置,特别是添加一些键盘快捷键到~/.config/dconf/user. 这是它在 dconf-editor 中的样子:

org.cinnamon.keybindings org.cinnamon.keybindings.custom-keybindings.custom0

现在 gsettings(或 dconf)可以列出第一个:

$ gsettings get org.cinnamon.keybindings custom-list
['custom0', 'custom1', 'custom2', 'custom3']
Run Code Online (Sandbox Code Playgroud)

但是,我看不到添加新键绑定甚至读取customX键的方法。

$ gsettings get org.cinnamon.keybindings.custom-keybinding:/ custom0
No such key 'custom0'
Run Code Online (Sandbox Code Playgroud)

例如,如何添加custom4带有binding='<Super>g', command='geany',的键name='Geany'

输出到 Donarssons 答案:

$ gsettings get org.cinnamon.keybindings.custom-keybindings:/custom0/ binding
No such schema 'org.cinnamon.keybindings.custom-keybindings'
$ gsettings get org.cinnamon.keybindings.custom-keybinding:/custom0/ binding
''
Run Code Online (Sandbox Code Playgroud)

并在以下命令后截图。请注意,custom4 不会转到自定义键绑定,而是转到根目录。

gsettings set org.cinnamon.keybindings.custom-keybinding:/custom4/ binding '<Super>g'
Run Code Online (Sandbox Code Playgroud)

设置值

我使用 Linux Mint 作为我的操作系统。

gsettings dconf

15
推荐指数
1
解决办法
8401
查看次数

标签 统计

dconf ×1

gsettings ×1