Xface: Disable control + alt + backspace shortcuts

Source: Internet
Author: User

Xface: Disable control + alt + backspace shortcuts

There are too many idea shortcuts. When I wrote code today, I accidentally pressed control + alt + backspace, causing X server to restart.

In the absence of preparation, the restart cost is often very high, so I decided to disable the restart X server shortcut key. google found that ubantu ....

 

The following describes how to disable the shortcut key.

 

1. The first command to come up with is the xface + TAB automatic prompt (because I have defined a shortcut for xfce4-keyboard-settings)

 

[root@jjy ~]# xfce4-xfce4-about                   xfce4-clipman-settings        xfce4-mixer                   xfce4-popup-clipman           xfce4-power-manager-settings  xfce4-settings-editorxfce4-accessibility-settings  xfce4-display-settings        xfce4-mouse-settings          xfce4-popup-directorymenu     xfce4-screenshooter           xfce4-settings-managerxfce4-appearance-settings     xfce4-keyboard-settings       xfce4-notifyd-config          xfce4-popup-windowmenu        xfce4-session                 xfce4-taskmanagerxfce4-appfinder               xfce4-kiosk-query             xfce4-panel                   xfce4-power-information       xfce4-session-logout          xfce4-terminalxfce4-clipman                 xfce4-mime-settings           xfce4-popup-applicationsmenu  xfce4-power-manager           xfce4-session-settings        xfce4-volumed
Then we found that xfce4-keyboard-settings does not support disabling some system shortcuts

 

2. view the xfce configuration file, as shown in the following figure, directly go to the xfce-perchannel-xml directory.

[root@jjy ~]# tree /root/.config/xfce4//root/.config/xfce4/├── desktop│   └── icons.screen0-1904x1033.rc├── help.rc├── helpers.rc├── panel├── terminal│   └── terminalrc├── xfconf│   └── xfce-perchannel-xml│       ├── displays.xml│       ├── keyboard-layout.xml│       ├── keyboards.xml│       ├── thunar.xml│       ├── xfce4-appfinder.xml│       ├── xfce4-desktop.xml│       ├── xfce4-keyboard-shortcuts.xml│       ├── xfce4-mixer.xml│       ├── xfce4-panel.xml│       ├── xfce4-session.xml│       ├── xfwm4.xml│       └── xsettings.xml└── xfwm4



3. Search for the xfce-perchannel-xml directory (Because I need to find control + alt + back)

 

 

For example


Obviously, the shortcut key definition is in the/xfce4-keyboard-shortcuts.xml file, but I looked for it carefully, it is still not found

 

4. I had to change my mind. First, find xorg. conf, output all text files, and click the string with alt.

 

[root@jjy ~]# locate xorg.conf | xargs file | grep "ASCII text" | awk -F":" '{print $1}' | xargs cat | grep "alt"    #Option "XkbOptions" "terminate:ctrl_alt_bksp"#    Option "XkbOptions" "compose:rwin,terminate:ctrl_alt_bksp"# Waltop tablets    Identifier "Waltop class"# (although not every card will support every resolution).


 

Obviously, the configuration is in the ctrl_alt_bksp line. So you only need to find this file (/Usr/share/X11/xorg. conf. d/90-keyboard-layout.conf).

 

[root@jjy ~]# locate xorg.conf | xargs file | grep "ASCII text" | awk -F":" '{print $1}'/usr/share/X11/xorg.conf.d/50-vmmouse.conf/usr/share/X11/xorg.conf.d/10-evdev.conf/usr/share/X11/xorg.conf.d/50-synaptics.conf/usr/share/X11/xorg.conf.d/90-keyboard-layout.conf/usr/share/X11/xorg.conf.d/50-wacom.conf/etc/X11/xorg.conf/etc/X11/xorg.conf-vesa

5. Edit the/usr/share/X11/xorg. conf. d/90-keyboard-layout.conf file, comment out ctrl_alt_bksp, and restart.

 

 

[root@jjy ~]# cat -n /usr/share/X11/xorg.conf.d/90-keyboard-layout.conf     1Section "InputClass"     2Identifier "keyboard-all"     3MatchIsKeyboard "on"     4MatchDevicePath "/dev/input/event*"     5Driver "evdev"     6Option "XkbLayout" "us"     7#Option "XkbVariant" ""     8#Option "XkbOptions" "terminate:ctrl_alt_bksp"     9EndSection




 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.