Bluetooth next/previous buttons not working since uninstalling desktop

i use bluetothctl for control

$ sudo systemctl status bluetooth
● bluetooth.service - Bluetooth service
     Loaded: loaded (/usr/lib/systemd/system/bluetooth.service; enabled; vendor preset: disabled)
     Active: active (running) since Wed 2022-02-16 11:13:34 EST; 5min ago
       Docs: man:bluetoothd(8)
   Main PID: 54300 (bluetoothd)
     Status: "Running"
      Tasks: 1 (limit: 18837)
     Memory: 944.0K
     CGroup: /system.slice/bluetooth.service
             └─54300 /usr/libexec/bluetooth/bluetoothd

Feb 16 11:13:34 nekrins systemd[1]: bluetooth.service: Deactivated successfully.
Feb 16 11:13:34 nekrins systemd[1]: Stopped Bluetooth service.
Feb 16 11:13:34 nekrins systemd[1]: Starting Bluetooth service...
Feb 16 11:13:34 nekrins systemd[1]: Started Bluetooth service.
Feb 16 11:13:34 nekrins bluetoothd[54300]: Bluetooth daemon 5.63
Feb 16 11:13:34 nekrins bluetoothd[54300]: Starting SDP server
Feb 16 11:13:34 nekrins bluetoothd[54300]: Bluetooth management interface 1.21 initialized
Feb 16 11:13:34 nekrins bluetoothd[54300]: Endpoint registered: sender=:1.203 path=/MediaEndpoint/A2DPSink/sbc
Feb 16 11:13:34 nekrins bluetoothd[54300]: Endpoint registered: sender=:1.203 path=/MediaEndpoint/A2DPSource/sbc
Feb 16 11:14:00 nekrins bluetoothd[54300]: /org/bluez/hci0/dev_AC_12_2F_5D_85_6B/fd0: fd(27) ready

Did you uninstall gnome-bluetooth ?

Check the bluez version.

relevant input events need to be bound to appropriate commands.
e.g., for sway, in the sway config:

bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous