Index

dotfiles / 1b1342c

My personal dotfiles for Debian/Ubuntu.

Latest Commit

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

Blob @ dotfiles / middle-mouse-reset

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, 0
7 xinput set-prop $ID "libinput Button Scrolling Button" 2
8done
9