Fully qualify path to monitors.xml
This commit is contained in:
parent
f0e82e7362
commit
70502efd2a
@ -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_SPEED=$(gsettings get org.gnome.desktop.peripherals.mouse speed)
|
||||||
MOUSE_ACCEL_PROFILE=$(gsettings get org.gnome.desktop.peripherals.mouse accel-profile)
|
MOUSE_ACCEL_PROFILE=$(gsettings get org.gnome.desktop.peripherals.mouse accel-profile)
|
||||||
TOUCHPAD_SPEED=$(gsettings get org.gnome.desktop.peripherals.touchpad speed)
|
TOUCHPAD_SPEED=$(gsettings get org.gnome.desktop.peripherals.touchpad speed)
|
||||||
|
Loading…
Reference in New Issue
Block a user