This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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') |
NewerOlder