Pen pn579x buttons not working/doing nothing

I recently switched from windows to fedora, and everything works fine but my pen buttons doesn’t work right, I don’t think there’s a functionality like window where you can associate a button to “erase” but I need to at least be able to associate the button with a keyboard button or even better a shortuct. Currently it does something, one I stil didn’t understand what and the second just “clicks”.
My system information:

Hardware Information:

  • Hardware Model: Dell Inc. XPS 13 9310 2-in-1
  • Memory: 16.0 GiB
  • Processor: 11th Gen Intel® Core™ i7-1165G7 × 8
  • Graphics: Intel® Iris® Xe Graphics (TGL GT2)
  • Disk Capacity: 1.0 TB

Software Information:

  • Firmware Version: 2.30.0
  • OS Name: Fedora Linux 41 (Workstation Edition)
  • OS Build: (null)
  • OS Type: 64-bit
  • GNOME Version: 47
  • Windowing System: Wayland
  • Kernel Version: Linux 6.13.4-200.fc41.x86_64