Index

dotfiles / b662c52

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
926 Jun 2020 12:025e551f2Add libinput script to enable middle mouse scrollingJosh Stockin160G

Blob @ dotfiles / middle-mouse-scroll

text/x-shellscript212 bytesdownload raw
1#!/bin/bash
2
3MOUSE_ID=$(xinput | \grep "Mouse" | sed 's/.*id=\([0-9]\+\).*/\1/')
4
5xinput set-prop $MOUSE_ID "libinput Scroll Method Enabled" 0, 0, 1
6xinput set-prop $MOUSE_ID "libinput Button Scrolling Button" 2
7