I want to prevent screenshots from being taken in gnome using keyboard shortcuts. I need to do this by running a script in such a manner that it can be reverted later.
I tried to do this using xmodmap by remapping the print-screen/SysRq key to NoSymbol.
xmodmap -e 'keysym Print='
This did not work. I had faced a similar problem while disabling task switching using super key, then I had just remapped the keycode to NoSymbol. However this same approach does not seem to be working right now.
What is going wrong here? And what can I do to make it right?
Also is there any other methods I should be looking into?