diff --git a/mint.sh b/mint.sh index dc983eb..9704120 100644 --- a/mint.sh +++ b/mint.sh @@ -161,40 +161,48 @@ fi dconf write /com/linuxmint/updates/auto-update-cinnamon-spices true dconf write /com/linuxmint/updates/auto-update-flatpaks true -# disable saving recent files -dconf write /org/cinnamon/desktop/privacy/remember-recent-files false +if ! [ -s ~/.initial-mint-config-by-xsessionrc ] +then -# Touchpad Scrolling -dconf write /org/cinnamon/desktop/peripherals/touchpad/edge-scrolling-enabled true -dconf write /org/cinnamon/desktop/peripherals/touchpad/two-finger-scrolling-enabled false + # disable saving recent files + dconf write /org/cinnamon/desktop/privacy/remember-recent-files false -# Terminus font in Terminal -#dconf write "/org/gnome/terminal$(dconf dump /org/gnome/terminal/ | egrep '/profiles:...*' | sed 's/\[//g ; s/\]//g; s/\/$//')/font" "'Terminus (TTF) Medium 12'" + # Touchpad Scrolling + dconf write /org/cinnamon/desktop/peripherals/touchpad/edge-scrolling-enabled true + dconf write /org/cinnamon/desktop/peripherals/touchpad/two-finger-scrolling-enabled false -# Winkey+l=Locksreen -dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/command '"cinnamon-screensaver-command --lock"' -dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/binding "['l']" -dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/name '"Lockscreen"' -dconf write /org/cinnamon/desktop/keybindings/custom-list "['__dummy__'$(dconf dump / 2>&1 | egrep '^\[org/cinnamon/desktop/keybindings/custom-keybindings/' | cut -d/ -f 6 | cut -d] -f1 | perl -pe "s/(.+)\n/, '\$1'/g")]" + # Terminal font Terminus + termprofile=\$(dconf dump /org/gnome/terminal/legacy/profiles:/ | grep '^\\[:' | cut -d : -f2 | cut -d] -f1) + dconf write "/org/gnome/terminal/legacy/profiles:/:\${termprofile}/font" "'Terminus (TTF) Medium 12'" -# dark theme -#dconf write /org/cinnamon/desktop/interface/gtk-theme "'Mint-Y-Dark'" -#dconf write /org/cinnamon/desktop/interface/icon-theme "'Mint-Y-Dark'" + # Winkey+l=Locksreen + dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/command '"cinnamon-screensaver-command --lock"' + dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/binding "['l']" + dconf write /org/cinnamon/desktop/keybindings/custom-keybindings/custom8/name '"Lockscreen"' + dconf write /org/cinnamon/desktop/keybindings/custom-list "['__dummy__']" + + # dark theme + dconf write /org/cinnamon/desktop/interface/gtk-theme "'Mint-Y-Dark'" + dconf write /org/cinnamon/desktop/interface/icon-theme "'Mint-Y'" + dconf write /org/cinnamon/theme/name "'Mint-Y-Dark'" + dconf write /org/gnome/desktop/interface/icon-theme "'Mint-Y-Dark'" + dconf write /org/gnome/desktop/interface/gtk-theme "'Mint-Y-Dark'" + + # Nemo Filemanager Settings + dconf write /org/nemo/preferences/default-folder-viewer "'list-view'" + dconf write /org/nemo/preferences/show-location-entry true -# Nemo Filemanager Settings -dconf write /org/nemo/preferences/default-folder-viewer "'list-view'" -dconf write /org/nemo/preferences/show-location-entry true + # Traditional Cinnamon task bar (https://forums.linuxmint.com/viewtopic.php?t=321872) + dconf write /org/cinnamon/panels-enabled "['1:0:bottom']" + dconf write /org/cinnamon/panels-height "['1:27']" + dconf write /org/cinnamon/panel-zone-icon-sizes '[{"left":0,"center":0,"right":0,"panelId":1}]' + dconf write /org/cinnamon/enabled-applets "['panel1:left:0:menu@cinnamon.org','panel1:left:1:show-desktop@cinnamon.org','panel1:left:2:panel-launchers@cinnamon.org','panel1:left:3:window-list@cinnamon.org','panel1:right:0:systray@cinnamon.org','panel1:right:1:xapp-status@cinnamon.org','panel1:right:2:keyboard@cinnamon.org','panel1:right:3:notifications@cinnamon.org','panel1:right:4:printers@cinnamon.org','panel1:right:5:removable-drives@cinnamon.org','panel1:right:6:user@cinnamon.org','panel1:right:7:network@cinnamon.org','panel1:right:8:sound@cinnamon.org','panel1:right:9:power@cinnamon.org','panel1:right:10:calendar@cinnamon.org']" -# Traditional Cinnamon task bar (https://forums.linuxmint.com/viewtopic.php?t=321872) -dconf write /org/cinnamon/panels-enabled "['1:0:bottom']" -dconf write /org/cinnamon/panels-height "['1:27']" -dconf write /org/cinnamon/panel-zone-icon-sizes '[{"left":0,"center":0,"right":0,"panelId":1}]' -#dconf write /org/cinnamon/enabled-applets "['panel1:left:0:menu@cinnamon.org','panel1:left:1:show-desktop@cinnamon.org','panel1:left:2:panel-launchers@cinnamon.org','panel1:left:3:window-list@cinnamon.org','panel1:right:0:systray@cinnamon.org','panel1:right:1:xapp-status@cinnamon.org','panel1:right:2:keyboard@cinnamon.org','panel1:right:3:notifications@cinnamon.org','panel1:right:4:printers@cinnamon.org','panel1:right:5:removable-drives@cinnamon.org','panel1:right:6:user@cinnamon.org','panel1:right:7:network@cinnamon.org','panel1:right:8:sound@cinnamon.org','panel1:right:9:power@cinnamon.org','panel1:right:10:calendar@cinnamon.org']" -dconf write /org/cinnamon/theme/name "'Linux Mint'" -#cinnamon --replace > /dev/null 2>&1 & disown + date >> ~/.initial-mint-config-by-xsessionrc + +fi [ -x ~/.xsessionrc.followup ] && ~/.xsessionrc.followup - EOF sudo chmod 700 "${defaultuserhome}"/.xsessionrc