I would like to use Ctrl+Alt+F4 for a program instead of Ubuntu's TTYs.
The previous question, I saw suggested command xmodmap -pke | sed -n 's/ = .*VT_4.*/ = /p' | xmodmap -
which did not work for me. I ran it with Alt+F2.
I would like to use Ctrl+Alt+F4 for a program instead of Ubuntu's TTYs.
The previous question, I saw suggested command xmodmap -pke | sed -n 's/ = .*VT_4.*/ = /p' | xmodmap -
which did not work for me. I ran it with Alt+F2.
This will disable a few more key sequences than just the Ctrl+Alt+F# shortcuts, but should do what you want.
Open the Keyboard configuration tool.
Switch to the Layouts tab and click the Options... button.
Expand the Miscellaneous compatibility options section and check the box next to
Special keys (Ctrl+Alt+) handled in a server.
The effect should be instant and persist when you log in again.
This also disables a few other server shortcuts such as Ctrl+Alt++ / - to switch video modes.