Index
dotfiles
/
master
My personal dotfiles for Debian/Ubuntu.
Download
|
Refs
|
Commit Log
|
Files
Latest Commit
{#}
Time
Hash
Subject
Author
#
(+)
(-)
GPG?
58
05 Jan 2023 10:42
1b1342c
Update mouse scrolling method, add reset script
Josh Stockin
1
8
0
G
Blob @
dotfiles
/
middle-mouse-reset
text/x-shellscript
237 bytes
download raw
1
#!/bin/bash
2
3
MOUSE_ID
=
$
(
xinput | \
grep
"Mouse"
|
sed
's/.*id=\([0-9]\+\).*/\1/'
)
4
5
for
ID
in
$MOUSE_ID
;
do
6
xinput set-prop
$ID
"libinput Scroll Method Enabled"
0
,
0
,
0
7
xinput set-prop
$ID
"libinput Button Scrolling Button"
2
8
done
9