title: Unable to disable PrintScreen key in Gnome
body: <p>For some reason, I have to disable PrintScreen key (including other keys such as Alt, Ctrl, F1~F12) after login, so I wrote a startup script to do that. And it must be:</p>
  
  <ol>
  <li>When I disable it, it must be disabled right now, I don't have to reboot or logout/login again.</li>
  <li>When I want to use those keys in the next login session, I can just remove the script from startup.</li>
  <li>It must be put into script or command line, I am not able to open gui applications (such as <strong>gnome-keybinding-properties</strong> or <strong>gconf-editor</strong>) and click or something like that.</li>
  <li>I cannot install extra application like dconf-editor to do that.</li>
  </ol>
  
  <p>I tried these methods, none of them worked:</p>
  
  <ol>
  <li>xmodmap -e 'keycode 107 = '</li>
  <li>xmodmap -e 'keycode 107 = NoSymbol'</li>
  <li>xmodmap -e 'keysym Print = '</li>
  <li>xmodmap -e 'keysym Print = NoSymbol'</li>
  </ol>
  
  <p>(I already used <strong>showkey</strong> and <strong>xev</strong> to get the keycode of PrintScreen which is 107)</p>
  
  <p>Renaming, removing or changing permission of /usr/bin/gnome-screenshot which triggered by pressing PrintScreen key in Gnome will pop up a window when I press the key which is not what I want.</p>
  
  <p>These <strong>xmodmap</strong> commands can successfully disable other keys such as Alt, Ctrl, F1~F12, but they are not working for PrintScreen, pressing PrintScreen will still activate gnome-screenshot and take a screenshot.</p>
  
  <p>How can I do that?</p>
  
  <p>I'm using CentOS6.5, Gnome2.x </p>