added gnome dconf load

This commit is contained in:
Jonas Forsberg 2020-08-03 14:46:16 +02:00
parent 436c76a7e0
commit 7cc75adcbc
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -54,19 +54,57 @@ function log(){
printf "%s\n" "$*" printf "%s\n" "$*"
} }
function gnome_key_bindings(){ function gnome_config(){
new_log "Setting my default gnome bindings" new_log "Setting my default gnome bindings"
if asktobreak; then if asktobreak; then
return return
fi fi
local KEY_PATH="/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings" log "Launching firefox to install GNOME Extetions"
local CMD="gsettings set org.gnome.settings-daemon.plugins.media-keys.custom-keybinding:$KEY_PATH" firefox https://extensions.gnome.org/extension/1031/topicons/
gsettings set org.gnome.settings-daemon.plugins.media-keys custom-keybindings "['$KEY_PATH/custom0/']" 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 <<EOF
[system/locale]
region='sv_SE.UTF-8'
[org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0]
binding='<Primary><Alt>Return'
command='terminator'
name='Open Terminator'
[org/gnome/evolution-data-server/calendar]
[org/gnome/shell]
enabled-extensions=['TopIcons@phocean.net', 'multi-monitors-add-on@spin83', 'launch-new-instance@gnome-shell-extensions.gcampax.github.com']
[org/gnome/shell/extensions/topicons]
icon-opacity=221
tray-pos='right'
tray-order=1
[org/gnome/shell/extensions/multi-monitors-add-on]
show-activities=false
show-app-menu=false
available-indicators=@as []
show-date-time=false
show-panel=false
thumbnails-on-left-side=false
show-thumbnails-slider=false
EOF
# log "setting custom keybindings"
# 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/']"
#
# # Open Terminator
# $CMD/custom0/ name "Open Terminator"
# $CMD/custom0/ command "terminator"
# $CMD/custom0/ binding "<Primary><Alt>Return"
# Open Terminator
$CMD/custom0/ name "Open Terminator"
$CMD/custom0/ command "terminator"
$CMD/custom0/ binding "<Primary><Alt>Return"
} }
function setup_dotfiles(){ function setup_dotfiles(){
@ -106,7 +144,7 @@ function do_salt_call(){
$salt state.apply pillar="{username: $USER}" $salt state.apply pillar="{username: $USER}"
} }
function firefox_addons(){ function firefox_config(){
new_log "Installing firefox addons" new_log "Installing firefox addons"
if [[ ! -f "$HOME/bin/install_firefox_addon" ]];then if [[ ! -f "$HOME/bin/install_firefox_addon" ]];then
printf "install firefox addon script not found, run dotfile sync first" printf "install firefox addon script not found, run dotfile sync first"
@ -165,7 +203,7 @@ done
[[ $ALL == true ]] || [[ $DOTFILES == true ]] && setup_dotfiles [[ $ALL == true ]] || [[ $DOTFILES == true ]] && setup_dotfiles
[[ $ALL == true ]] || [[ $SALT == true ]] && do_salt_call [[ $ALL == true ]] || [[ $SALT == true ]] && do_salt_call
[[ $ALL == true ]] || [[ $GNOME == true ]] && gnome_key_bindings [[ $ALL == true ]] || [[ $FIREFOX == true ]] && firefox_config
[[ $ALL == true ]] || [[ $FIREFOX == true ]] && firefox_addons [[ $ALL == true ]] || [[ $GNOME == true ]] && gnome_config
printf "\n DONE!!!!!!!\n" printf "\n DONE!!!!!!!\n"