-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_aliases
20 lines (16 loc) · 925 Bytes
/
.bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
## Useful aliases for client machine
alias ps4_as_xbox='ds4drv --emulate-xpad-wireless --next-controller --emulate-xpad-wireless --hidraw'
alias ps4='ds4drv --next-controller --hidraw'
alias ps4_as_xbox_four_players='ds4drv --emulate-xpad-wireless --next-controller --emulate-xpad-wireless --next-controller --emulate-xpad-wireless --next-controller --emulate-xpad-wireless --hidraw'
function connect_first_controller {
cat /dev/input/event$1 | ssh ubuntu@$CONTROLLER_HOST sudo tee -a /dev/input/event4 >/dev/null
}
function connect_second_controller {
cat /dev/input/event$1 | ssh ubuntu@$CONTROLLER_HOST sudo tee -a /dev/input/event5 >/dev/null
}
function connect_third_controller {
cat /dev/input/event$1 | ssh ubuntu@$CONTROLLER_HOST sudo tee -a /dev/input/event6 >/dev/null
}
function connect_fourth_controller {
cat /dev/input/event$1 | ssh ubuntu@$CONTROLLER_HOST sudo tee -a /dev/input/event7 >/dev/null
}