Define global custom keybindings for shutdown.
This document (7021882) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Desktop 12
Situation
Resolution
$ vi /etc/dconf/profile/user
user-db:user2. Create a directory for the custom keyfiles
system-db:local
$ mkdir -p /etc/dconf/db/local.d
$ vi /etc/dconf/db/local.d/01-local-example
[org/gnome/settings-daemon/plugins/media-keys]
logout=''
custom-keybindings=['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']
[org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0]
name='shutdown'
command='/sbin/shutdown -h now'
binding='<Control><Alt>Delete'
$ dconf update
$ dconf-editor
Cause
Additional Information
[org/gnome/settings-daemon/plugins/media-keys]
(note **1 : specify the dconf schema path where the values )
logout=''
(note **2 : since 'Ctrl+Alt+Del' is used by default for logout, this needs to be changed to blank)
custom-keybindings=['/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/']
(note **3 : creates a schema path for custom keybinding)
[org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0]
(note **4: custom keybinding schema path)
name='shutdown'
command='/sbin/shutdown -h now'
(note **5: use the full path for any commands here)
binding='<Control><Alt>Delete'
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7021882
- Creation Date: 28-Sep-2017
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Desktop
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com