Gnome 3 DCONFवरीयताओं को एक एकल बाइनरी फ़ाइल में संग्रहीत करने के लिए उपयोग करता है ~/.config/dconf/user:।
गनोम डॉक्स के अनुसार, केवल उन सेटिंग्स को सहेजने की आवश्यकता है जो आपको चाहिए और उन्हें dconfया तो साथ पुनर्स्थापित करें gsettings। हालांकि, gsettingsकेवल एक बार में एक ही कुंजी के लिए मूल्य (ओं) को पुनर्स्थापित करने में सक्षम है (प्लस, मूल्य को उद्धृत किया जाना चाहिए) और यह इस तरह के कार्य के लिए थोड़ा अजीब बनाता है। जो हमारा साथ छोड़ देता है dconf।
तो, इस विशेष मामले में, gnome-shellकीबोर्ड शॉर्टकट 1 के लिए वर्तमान सेटिंग्स को सहेजें :
dconf dump /org/gnome/shell/keybindings/ > bkp
यहाँ एक bkpनमूना है:
[/]
toggle-message-tray=['<Super>m']
open-application-menu=['<Super>F1']
toggle-application-view=['<Control>F1']
focus-active-notification=['<Super>n']
toggle-recording=['<Control><Shift><Alt>r']
किसी अन्य सिस्टम पर सेटिंग्स लोड करें:
dconf load /org/gnome/shell/keybindings/ < bkp
1: WM और मीडिया कुंजी शॉर्टकट विभिन्न स्कीमाओं से संबंधित हैं:
/org/gnome/desktop/wm/keybindings/
/org/gnome/mutter/keybindings/
/org/gnome/mutter/wayland/keybindings/
/org/gnome/settings-daemon/plugins/media-keys/
ध्यान दें कि dconf केवल गैर मूलभूत मूल्यों उदासीनता इसलिए यदि आप जैसे चलाने
dconf dump /org/gnome/desktop/wm/keybindings/
और कोई आउटपुट नहीं मिलता है जिसका अर्थ है कि कोई कस्टम WM शॉर्टकट परिभाषित नहीं है।
एक साइड नोट के रूप में, dconf-editorएक उपकरण है जो dconfसेटिंग्स संरचना को देखने में मदद करता है , अर्थात schema [:path] key value, किसी भी कुंजी के प्रकार और डिफ़ॉल्ट मान आदि।
रिकॉर्ड के लिए, वरीयताओं को सहेजना gsettings:
gsettings list-recursively org.gnome.shell.keybindings > bkp
bkp नमूना:
org.gnome.shell.keybindings focus-active-notification ['<Super>n']
org.gnome.shell.keybindings open-application-menu ['<Super>F1']
org.gnome.shell.keybindings toggle-application-view ['<Super>a']
org.gnome.shell.keybindings toggle-message-tray ['<Super>m']
org.gnome.shell.keybindings toggle-recording ['<Control><Shift><Alt>r']
अब वरीयताओं को लोड करना (जैसा कि मैंने कहा, बैकअप फ़ाइल में प्रत्येक पंक्ति के लिए आपको एक अलग कमांड की आवश्यकता है और मूल्यों को उद्धृत करना मत भूलना):
gsettings set org.gnome.shell.keybindings focus-active-notification "['<Super>n']"
gsettings set org.gnome.shell.keybindings open-application-menu "['<Super>F1']"
gsettings set org.gnome.shell.keybindings toggle-application-view "['<Super>a']"
gsettings set org.gnome.shell.keybindings toggle-message-tray "['<Super>m']"
gsettings set org.gnome.shell.keybindings toggle-recording "['<Control><Shift><Alt>r']"