
사용자 정의 키보드 단축키를 백업하고 새로 설치할 때 복원할 수 있습니까?
답변1
Gnome-Control-Center(Unity 및 Gnome Shell에서 사용)는 사용자별 Dconf 데이터베이스 디렉터리에 키 바인딩을 저장 /org/gnome/desktop/wm/keybindings/
하고 /org/gnome/settings-daemon/plugins/media-keys/
(원천).
시스템을 다시 설치할 때 이를 유지하는 가장 쉬운 방법은 사용자별 구성 디렉터리(
~/.config
또는 더 구체적으로~/.config/dconf/user
Dconf에만 해당)를 유지하는 것입니다. 대부분의 경우 사용자별 구성 파일을 제거하는 것은 필요하지도 바람직하지도 않습니다.이전 Dconf 데이터베이스를 유지할 수 없거나 유지하지 않으려면 명령을 사용하여
dconf
데이터베이스의 일부를 파일로 내보내고("덤프") 나중에 가져오("로드")할 수 있습니다. 관련 Dconf 디렉토리는 다음과 같습니다./org/gnome/desktop/wm/keybindings/
미리 정의된 단축키 및/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/
사용자 지정, 사용자 정의 바로가기용.
다음 예에서는 위의 Dconf 디렉터리를 두 개의 파일에 저장한
keybindings.dconf
다음custom-keybindings.dconf
동일한 파일에서 복원합니다.dconf dump '/org/gnome/desktop/wm/keybindings/' > keybindings.dconf dconf dump '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/' > custom-keybindings.dconf dconf load '/org/gnome/desktop/wm/keybindings/' < keybindings.dconf dconf load '/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/' < custom-keybindings.dconf
키바인딩을 자주 내보내는 경우 다음을 수행하는 것이 편리할 수 있습니다.필요한 단계를 스크립트로 작성.