Sometimes the mouse sensitivity commands are reset.
Code: Select all
xinput --set-prop '<mouse brand>' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop '<mouse brand>' 'libinput Accel Speed' -0.8
Code: Select all
xinput --set-prop '<mouse brand>' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop '<mouse brand>' 'libinput Accel Speed' -0.8
Code: Select all
#!/bin/bash
if [ "${1}" == "post" ]; then
xinput --set-prop '<mouse brand>' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop '<mouse brand>' 'libinput Accel Speed' -0.8
fi
exit 0
Code: Select all
file /lib/systemd/systemd-hibernate-resume
/lib/systemd/systemd-hibernate-resume: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=382f32b991867a613da4b43a40429727d203dfd4, for GNU/Linux 3.2.0, stripped
Code: Select all
#!/bin/sh
set -e
if [ "$2" = "hibernate" ] || [ "$2" = "hybrid-sleep" ]; then
case "$1" in
post)
/usr/bin/xzoom
;;
esac
fi
Code: Select all
[Unit]
Description=On wake-up
After=sleep.target
[Service]
User=your_username
Type=simple
ExecStart=/usr/local/bin/on_wakeup.sh
[Install]
WantedBy=sleep.target
Code: Select all
[Unit]
Description=Run script
After=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
[Service]
ExecStart=/etc/wakeup.sh
User=root
Environment=DISPLAY=:0
[Install]
WantedBy=suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target
Code: Select all
#!/bin/sh
case $1 in
post)
#/usr/bin/xzoom
xinput --set-prop '<mouse brand>' 'libinput Accel Profile Enabled' 0, 1
xinput --set-prop '<mouse brand>' 'libinput Accel Speed' -0.8
;;
esac