From 7cc75adcbcc9902abf84fa9112fc301fae0e0447 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Mon, 3 Aug 2020 14:46:16 +0200 Subject: [PATCH] added gnome dconf load --- bin/initDesktop | 60 ++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 49 insertions(+), 11 deletions(-) diff --git a/bin/initDesktop b/bin/initDesktop index 99ab58b..c13b4a3 100755 --- a/bin/initDesktop +++ b/bin/initDesktop @@ -54,19 +54,57 @@ function log(){ printf "%s\n" "$*" } -function gnome_key_bindings(){ +function gnome_config(){ new_log "Setting my default gnome bindings" if asktobreak; then return fi - local KEY_PATH="/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings" - local CMD="gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$KEY_PATH" - gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['$KEY_PATH/custom0/']" + log "Launching firefox to install GNOME Extetions" + firefox https://extensions.gnome.org/extension/1031/topicons/ + firefox https://extensions.gnome.org/extension/600/launch-new-instance/ + firefox https://extensions.gnome.org/extension/921/multi-monitors-add-on/ + + log "loading dconf settings" + dconf load < cat <Return" - # Open Terminator - $CMD/custom0/ name "Open Terminator" - $CMD/custom0/ command "terminator" - $CMD/custom0/ binding "Return" } function setup_dotfiles(){ @@ -106,7 +144,7 @@ function do_salt_call(){ $salt state.apply pillar="{username: $USER}" } -function firefox_addons(){ +function firefox_config(){ new_log "Installing firefox addons" if [[ ! -f "$HOME/bin/install_firefox_addon" ]];then printf "install firefox addon script not found, run dotfile sync first" @@ -165,7 +203,7 @@ done [[ $ALL == true ]] || [[ $DOTFILES == true ]] && setup_dotfiles [[ $ALL == true ]] || [[ $SALT == true ]] && do_salt_call -[[ $ALL == true ]] || [[ $GNOME == true ]] && gnome_key_bindings -[[ $ALL == true ]] || [[ $FIREFOX == true ]] && firefox_addons +[[ $ALL == true ]] || [[ $FIREFOX == true ]] && firefox_config +[[ $ALL == true ]] || [[ $GNOME == true ]] && gnome_config printf "\n DONE!!!!!!!\n"