added killall firefox in gnome and firefox

This commit is contained in:
Jonas Forsberg 2020-08-03 15:02:37 +02:00
parent 6a17d5dfc9
commit dbd67fe933
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -56,9 +56,11 @@ function log(){
function gnome_config(){
new_log "Setting my default gnome bindings"
log "WARNING! All running firefox instances will be killed"
if asktobreak; then
return
fi
killall firefox
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/
@ -95,15 +97,6 @@ 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"
}
@ -149,10 +142,12 @@ function firefox_config(){
if [[ ! -f "$HOME/bin/install_firefox_addon" ]];then
printf "install firefox addon script not found, run dotfile sync first"
fi
log "WARNING! all running firefox instances will be killed"
if asktobreak;then
return
fi
exec $HOME/bin/install_firefox_addon
killall firefox
$HOME/bin/install_firefox_addon
}
#initialize all options