Skip to content

Instantly share code, notes, and snippets.

View shimataro's full-sized avatar
:octocat:
I ♥️ 🍮

shimataro shimataro

:octocat:
I ♥️ 🍮
View GitHub Profile
#!/bin/bash
# reverse mouse scroll direction
function _reverse_mouse_scroll_direction() {
local IFS=$'\n'
local DEVICE_NAME=$1
local PROP_NAME=$2
for id in $(xinput list | grep -F "${DEVICE_NAME}" | perl -n -e'/id=(\d+)/ && print $1')