little controller script
a guest Jul 18th, 2019 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- device='Wireless Controller'
- state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "$")
- if [ $state == '1' ];then
- xinput --disable "$device"
- xinput --enable "$device"
RAW Paste Data