@ -46,11 +46,12 @@ function askConfirmation() {
BASEDIR=/opt/debian-gnome
ALLOWED_USERS=$(id -un) #CUSTOMIZE if needed!
REQUIRED_PACKAGES=(
vim git wget curl
htop tilix jq unzip python3-pip gir1.2-gtop-2.0
vim git wget
python3 python3-pip
gir1.2-gtop-2.0
htop tilix jq unzip
tilix bash-completion
nextcloud-desktop nautilus-nextcloud nautilus-share nautilus-image-converter
cups hplip-data
)
## MAIN
@ -78,13 +79,13 @@ for package in ${REQUIRED_PACKAGES[@]}; do
fi
done
echo "## remove hplip annoyance"
echo "========================="
if [[ -f /etc/xdg/autostart/hplip-systray.desktop ]]; then
sudo rm /etc/xdg/autostart/hplip-systray.desktop
else
echo "hplip annoyance already removed!"
fi
# echo "## remove hplip annoyance"
# echo "========================="
# if [[ -f /etc/xdg/autostart/hplip-systray.desktop ]]; then
# sudo rm /etc/xdg/autostart/hplip-systray.desktop
# else
# echo "hplip annoyance already removed!"
# fi
echo "## debian-bash"
echo "=============="
@ -169,7 +170,7 @@ gsettings set org.gnome.nautilus.preferences click-policy 'single'
gsettings set org.gnome.mutter dynamic-workspaces false
gsettings set org.gnome.desktop.wm.preferences num-workspaces 1
gsettings set org.gnome.desktop.peripherals.touchpad tap-to-click true
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
# gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false
echo "## favorite apps"
echo "================"
@ -247,6 +248,27 @@ for addon_id in "${!FIREFOX_ADDONS[@]}"; do
fi
done
echo "# Firefox default settings"
echo "#========================="
if [[ ! -f /opt/firefox/firefox.cfg ]];then
cat <<EOF | sudo tee -a /opt/firefox/firefox.cfg
// IMPORTANT: Start your code on the 2nd line
lockPref("browser.pocket.enabled", false);
lockPref("extensions.pocket.enabled", false);
lockPref("browser.shell.checkDefaultBrowser", false);
EOF
cat <<EOF | sudo tee -a /opt/firefox/defaults/pref/autoconfig.js
pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0);
EOF
else
echo "Firefox default settings already defined!"
fi
echo "# favourite apps"
echo "#==============="
runVoid "gsettings get org.gnome.shell favorite-apps | grep firefox-esr"
@ -262,5 +284,21 @@ echo "# DEBIAN-GNOME successfully installed!"
echo
if [[ $NEED_GNOME_SHELL_RESTART == true ]]; then
killall -HUP gnome-shell
fi
#INTERESTING: nested wayland!!!
#dbus-run-session -- gnome-shell --nested --wayland
zenity --question --title "Rechargement de la session demandée" --width 600 --text "Des extensions GNOME ont été rajoutées à votre session.\n Voulez-vous rechargez votre session pour voir les changements ?" --timeout 10
case $? in
0)
echo "You answered yes"
killall -3 gnome-shell
;;
1) echo "You answered no" ;;
5) echo "Time out" ;;
*) echo "Unexpected!" ;;
esac
fi