Creating a script to do it looks fun but maybe a bit excessive.
This is my solution(while using KDE, the default in suse)
Go > control center > Regional & Accessability > KHotKeys > New Action
Give it a name like screenshot
then in the "triggers" section new > shortcut trigger
click on the button that says "none" and press the desired key i.e "Print screen"
Then goto the actions tab new > Command/URL and in there enter "ksnapshot"
save and exit control center and now hopefully you can take screenshots
