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"