Skip to content

Instantly share code, notes, and snippets.

@sergioPerez-e
Last active January 21, 2026 10:25
Show Gist options
  • Select an option

  • Save sergioPerez-e/5b64d67b22185ae00568fc9f27ddad4b to your computer and use it in GitHub Desktop.

Select an option

Save sergioPerez-e/5b64d67b22185ae00568fc9f27ddad4b to your computer and use it in GitHub Desktop.
Disable_Bluettoth_auto-and-trackpad.sh
# Disable auto start Bluetooth adapter and disable the in-built trackpad when a mouse is connected
# 1. Disable auto-turn on Blueoorh on Debian with Gnome
## Edit main.conf
1. nano /etc/bluetooth/main.conf
2. replace true by false in the label AutoEable
3. save, exit, reboot
# Use a command to make changes on main.conf
`sudo sed -i 's/AutoEnable=true/AutoEnable=false/g' /etc/bluetooth/main.conf`
# 2. Disable the in-built trackpad when a mouse is connected
## Run or make a script. Works on Fedora 43 with Gnome
# Only one excecution is needted to keep the confinguration
gsettings set org.gnome.desktop.peripherals.touchpad send-events disabled-on-external-mouse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment