有人知道如何编写脚本来定义 Xubuntu 18.04 中的键盘快捷键吗?
我经常用这个发行版设置新电脑,我想把它添加到我的“安装脚本”中,以便按照我喜欢的方式设置我的电脑。我以前在 Ubuntu 16.04 上使用以下命令来设置它:
#!/bin/bash
BEGINNING="gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings"
KEY_PATH="/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings"
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings \
"['$KEY_PATH/custom0/', '$KEY_PATH/custom1/', '$KEY_PATH/custom2/', '$KEY_PATH/custom3/', '$KEY_PATH/custom4/', '$KEY_PATH/custom5/']"
# Take a screenshot of the entire display
$BEGINNING/custom0/ name "Take Full Screenshot"
$BEGINNING/custom0/ command "shutter --full"
$BEGINNING/custom0/ binding "Print"
# ...
...但这在 Xubuntu 中不起作用,因为我收到以下消息:
No such schema “org.gnome.settings-daemon.plugins.media-keys.custom-keybinding”