Index
dotfiles
/
686bea1
My personal dotfiles for Debian/Ubuntu.
Download
|
Refs
|
Commit Log
|
Files
Latest Commit
{#}
Time
Hash
Subject
Author
#
(+)
(-)
GPG?
9
26 Jun 2020 12:02
5e551f2
Add libinput script to enable middle mouse scrolling
Josh Stockin
1
6
0
G
Blob @
dotfiles
/
middle-mouse-scroll
text/x-shellscript
212 bytes
download raw
1
#!/bin/bash
2
3
MOUSE_ID
=
$
(
xinput | \
grep
"Mouse"
|
sed
's/.*id=\([0-9]\+\).*/\1/'
)
4
5
xinput set-prop
$MOUSE_ID
"libinput Scroll Method Enabled"
0
,
0
,
1
6
xinput set-prop
$MOUSE_ID
"libinput Button Scrolling Button"
2
7