Index
dotfiles
/
f9b3a89
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
4
2
G
Blob @
dotfiles
/
middle-mouse-scroll
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
,
1
7
xinput set-prop
$ID
"libinput Button Scrolling Button"
2
8
done
9