|
|
@ -1156,9 +1156,45 @@ sway / wayland: |
|
|
swaymsg -t get_inputs | jq 'map(select(.type == "keyboard"))[0].xkb_active_layout_name' |
|
|
swaymsg -t get_inputs | jq 'map(select(.type == "keyboard"))[0].xkb_active_layout_name' |
|
|
|
|
|
|
|
|
Bluetooth: |
|
|
Bluetooth: |
|
|
Get access to deprecated gatttool and hcitool: |
|
|
Get access to deprecated gatttool, hcitool or sdptool: |
|
|
trizen -S bluez-utils-compat |
|
|
trizen -S bluez-utils-compat |
|
|
Add `--disable-systemd` to ./configure command on Artix |
|
|
Add `--disable-systemd` to ./configure command on Artix |
|
|
|
|
|
Setup new device with bluetoothctl: |
|
|
|
|
|
# https://wiki.archlinux.org/title/Bluetooth#Pairing |
|
|
|
|
|
bluetoothctl |
|
|
|
|
|
[bluetooth]# power on |
|
|
|
|
|
[bluetooth]# scan on |
|
|
|
|
|
[bluetooth]# pair <MAC> |
|
|
|
|
|
Fix `Failed to connect: org.bluez.Error.Failed`: |
|
|
|
|
|
# In my case it was apparently pulseaudio's fault oO |
|
|
|
|
|
sudo pacman -S pulseaudio-bluetooth |
|
|
|
|
|
pactl load-module module-bluetooth-discover |
|
|
|
|
|
Send files (WIP, still not working here): |
|
|
|
|
|
# https://www.garron.me/en/go2linux/how-transfer-files-bluetooth-linux.html |
|
|
|
|
|
# https://wiki.archlinux.org/title/ObexFTP |
|
|
|
|
|
OBEX Object Push method: |
|
|
|
|
|
trizen -S obexftp |
|
|
|
|
|
sdptool search --bdaddr 00:18:31:12:3A:3F OPUSH | grep -i channel |
|
|
|
|
|
# `--nopath --noconn --uuid none` result in making an Obex Push request |
|
|
|
|
|
obexftp --nopath --noconn --uuid none --bluetooth <MAC> --channel <CHANNEL> --put <FILE> |
|
|
|
|
|
OBEX File Transfer method: |
|
|
|
|
|
trizen -S obexftp |
|
|
|
|
|
sdptool search --bdaddr 00:18:31:12:3A:3F FTP | grep -i channel |
|
|
|
|
|
# `--channel` (and so sdptool search) might be superfluous (autodetect?) |
|
|
|
|
|
obexftp --bluetooth <MAC> --channel <CHANNEL> --put <FILE> |
|
|
|
|
|
Blueman method: |
|
|
|
|
|
sudo pacman -S blueman |
|
|
|
|
|
blueman-sendto --device=<MAC> <FILE> |
|
|
|
|
|
# Also, for the GUI: |
|
|
|
|
|
blueman-manager |
|
|
|
|
|
ussp-push method: |
|
|
|
|
|
trizen -S ussp-push |
|
|
|
|
|
ussp-push <MAC> <LOCAL FILE> <REMOTE FILE NAME> |
|
|
|
|
|
Receive files: |
|
|
|
|
|
# https://gitlab.com/obexpushd/mainline |
|
|
|
|
|
# Not even packaged on the AUR for now |
|
|
|
|
|
Bluetooth tools recap' (2007): |
|
|
|
|
|
# https://hanishkvc.wordpress.com/2007/05/16/short-and-simple-commandline-bluetooth-in-any-new-linux-distros/ |
|
|
|
|
|
|
|
|
Extract debian .deb package: |
|
|
Extract debian .deb package: |
|
|
ar x <package>.deb |
|
|
ar x <package>.deb |
|
|
|