From da545f0de70f7166a44f8ea6d1117d6fedf5cb95 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Sun, 8 Jul 2018 13:56:37 -0700 Subject: [PATCH] Support restoring dconf. --- dconf/org/cinnamon/desktop/keybindings | 24 ++++++++++++++++++++++++ install.sh | 11 +++++++++++ 2 files changed, 35 insertions(+) create mode 100644 dconf/org/cinnamon/desktop/keybindings diff --git a/dconf/org/cinnamon/desktop/keybindings b/dconf/org/cinnamon/desktop/keybindings new file mode 100644 index 0000000..e8ae607 --- /dev/null +++ b/dconf/org/cinnamon/desktop/keybindings @@ -0,0 +1,24 @@ +[media-keys] +screensaver=['l', 'XF86ScreenSaver'] + +[wm] +move-to-workspace-1=['exclam'] +move-to-workspace-2=['at'] +move-to-workspace-3=['numbersign'] +move-to-workspace-4=['dollar'] +move-to-workspace-5=['percent'] +move-to-workspace-6=['asciicircum'] +move-to-workspace-7=['ampersand'] +move-to-workspace-8=['asterisk'] +move-to-workspace-9=['parenleft'] +switch-to-workspace-4=['4'] +switch-to-workspace-1=['1'] +switch-to-workspace-10=['0'] +switch-to-workspace-3=['3'] +switch-to-workspace-8=['8'] +switch-to-workspace-5=['5'] +move-to-workspace-10=['parenright'] +switch-to-workspace-2=['2'] +switch-to-workspace-9=['9'] +switch-to-workspace-6=['6'] +switch-to-workspace-7=['7'] diff --git a/install.sh b/install.sh index d1ef817..1ab5eb2 100755 --- a/install.sh +++ b/install.sh @@ -348,6 +348,13 @@ install_main() { cleanup } +install_dconf() { + which dconf >/dev/null 2>&1 || return 1 + find "${BASEDIR}/dconf" -type f -printf '/%P\n' | while read dcpath ; do + dconf load ${dcpath}/ < "${BASEDIR}/dconf/${dcpath}" + done +} + # Setup variables read_saved_prefs @@ -401,6 +408,10 @@ case $OPERATION in # Do nothing, just sourcing set +o errexit ;; + dconf) + # Load dconf + install_dconf + ;; *) echo "Unknown operation $OPERATION." >/dev/stderr exit 1