Disabling touchpad in Fedora/GNOME

Hey guys, I just made a short bash script to toggle the touchpad in Fedora here. I found this useful for remapping the “Framework” gear button to toggle the touchpad instead of opening up the music player. If you clone this repo (or just copy the code directly onto a new file), then go into settings and add a shortcut with the “Command” pointing to this script, and the keybind set as your Framework button, it should work. I’m pretty new to Linux so apologies if this is maybe too mundane to post here. Hope it helps!

Which Linux distro are you using?
Fedora
Which release version?
40
Which kernel are you using?
6.8.5-301
Which BIOS version are you using?
SMBIOS 3.6.0
Which Framework Laptop 13 model are you using? (AMD Ryzen™ 7040 Series, Intel® Core™ Ultra Series 1, 13th Gen Intel® Core™ , 12th Gen Intel® Core™, 11th Gen Intel® Core™)
AMD Ryzen 7040 Series