Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- device='Wireless Controller'
- state=$(xinput list-props "$device" | grep "Device Enabled" | grep -o "[01]$")
- if [ $state == '1' ];then
- xinput --disable "$device"
- else
- xinput --enable "$device"
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement