1

Fully qualify path to monitors.xml

This commit is contained in:
Jessie Hildebrandt 2023-06-02 15:52:00 -04:00
parent f0e82e7362
commit 70502efd2a

View File

@ -7,8 +7,17 @@
#
################################################################################
sudo cp .config/monitors.xml /var/lib/gdm/.config/ && echo "Copied .config/monitors.xml to /var/lib/gdm/.config"
# Ensure we're not running as root
if [ "${EUID}" == 0 ]; then
echo "DO NOT RUN THIS SCRIPT AS ROOT!"
echo "Please run this script as a regular user."
exit 1
fi
# Update display settings
sudo cp ${HOME}/.config/monitors.xml /var/lib/gdm/.config/ && echo "Copied .config/monitors.xml to /var/lib/gdm/.config"
# Update pointer settings
MOUSE_SPEED=$(gsettings get org.gnome.desktop.peripherals.mouse speed)
MOUSE_ACCEL_PROFILE=$(gsettings get org.gnome.desktop.peripherals.mouse accel-profile)
TOUCHPAD_SPEED=$(gsettings get org.gnome.desktop.peripherals.touchpad speed)