Index

dotfiles / f9b3a89

My personal dotfiles for Debian/Ubuntu.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
5805 Jan 2023 10:421b1342cUpdate mouse scrolling method, add reset scriptJosh Stockin142G

Blob @ dotfiles / middle-mouse-scroll

text/x-shellscript237 bytesdownload raw
1#!/bin/bash
2
3MOUSE_ID=$(xinput | \grep "Mouse" | sed 's/.*id=\([0-9]\+\).*/\1/')
4
5for 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
8done
9