@ -48,8 +48,8 @@ ALLOWED_USERS=$(id -un) #CUSTOMIZE if needed!
REQUIRED_PACKAGES=(
vim git wget
python3 python3-pip
gir1.2-gtop-2.0
htop tilix jq unzip
gir1.2-gtop-2.0
htop tilix jq unzip
tilix bash-completion
nextcloud-desktop nautilus-nextcloud nautilus-share nautilus-image-converter
wl-clipboard
@ -172,7 +172,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 fals e
gsettings set org.gnome.shell.extensions.netspeed use-bytes tru e
echo "## favorite apps"
echo "================"
@ -250,25 +250,24 @@ 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
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
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!"
echo "Firefox default settings already defined!"
fi
echo "# favourite apps"
@ -287,20 +286,18 @@ echo
if [[ $NEED_GNOME_SHELL_RESTART == true ]]; then
#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
#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