There are pre-built keybindings and a program to switch between TTYs, and this can even be done from X11.
https://superuser.com/questions/69807/why-does-chvt-work-fine-as-a-regular-user-on-a-virtual-terminal-but-not-under-x
Join this channel to get access to perks:
https://patreon.com/JamesChampion?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink
https://www.youtube.com/channel/UCeFnqXMczw4BDCoJHr5dBjg/join
Support:
https://paypal.me/jameschampionxyz
BTC:
bc1q5sm5p2y7symrg724qudx72u7hf737plxyftf5n
My Website:
https://jameschampion.xyz