red hat 4.8 命令设置快捷键

参考博客:https://blog.csdn.net/lxrebrith2012/article/details/8245554

https://docs.oracle.com/cd/E19126-01/java.sys.r1/817-4860/6mkbui6pk/index.html

# 设置快捷键组合,这里设置为 <Ctrl><Alt>T
gconftool-2 --set /apps/metacity/global_keybindings/run_command_1 --type string '<Ctrl><Alt>T'
gconftool-2 --set /apps/metacity/global_keybindings/run_command_1 --type string '<Super>R'
gconftool-2 --get /apps/metacity/global_keybindings/run_command_1


# 设置快捷键对应的命令,这里是打开终端
gconftool-2 --set /apps/metacity/keybinding_commands/command_1 --type string 'gnome-terminal'
gconftool-2 --get /apps/metacity/keybinding_commands/command_1

# 使其生效
metacity --replace &
首先在/apps/metacity/keybinding_commands下查找键值为空的command:
gconftool-2 -R /apps/metacity/keybinding_commands

以下以command_1为例,设置运行的程序:
gconftool-2 -t string -s /apps/metacity/keybinding_commands/command_1 gnome-system-monitor

再到/apps/metacity/global_keybindings下设置对应的快捷键:
gconftool-2 -t string -s /apps/metacity/global_keybindings/run_command_1 "<Control><Alt>Delete"

为运行终端添加快捷键:
gconftool-2 -t string -s /apps/metacity/global_keybindings/run_command_terminal "<Super>R"
gconftool-2 -t string -s /apps/metacity/global_keybindings/command_terminal "gnome-terminal"
gconftool-2 --get /apps/metacity/global_keybindings/run_command_terminal

为浏览器设置快捷键:
gconftool-2 -t string -s /apps/gnome_settings_daemon/keybindings/www "<Super>B"
文章目录