Commands:
$ cd Desktop
$ wget https://raw.githubusercontent.com/Librebowski/DS4DRV_Easy/blob/master/ds4drv.sh
$ chmod +x DS4DRV.sh
$ sudo ./DS4DRV.sh
Authenticate with your password and you are good to go.
#Install script for DS4DRV by: Librebowski.
#For use with all Ubuntu and Debian variants.
https://github.com/Librebowski/DS4DRV_Easy/blob/master/ds4drv.sh
#This script enables and configures DS4DRV with X-Box and PlayStation configurations with the ability to switch FAST between the two.
Instructions for pairing:
Step 1: Pair controler in the Bluetooth Manager on the top bar and make sure your first step is "Add" or "Add device".
Step 2: once paired correctly proceed to the next step.
Step 3: Now its kinda paired but not really (dont worry you dont have to do that last step everytime).
Step 4: Open Terminal and type: ds4drv and hit enter. Now, turn off the DS4 by holding the Playstation button for 10 seconds. You'll know this has happend when the light turns off. Then, hold the Share and the Playstation button on the controller until the controller starts flashing. After this, ds4drv should find and connect your DS4, finishing the pairing process.
Step 5: (Optional) switch to XBox mode by holding R1 L1 and the Playstation button. This mode offers more compatibility in games.
Video guide: https://www.youtube.com/watch?v=y8PFwXfDSk0
Have fun I hope you guys enjoy Gaming on Linux! Welcome to the community which is what makes all this possible.
Special thanks to: https://github.com/chrippa/ds4drv/
-Librebowski