>>13912This sounds like you're using a laptop. You can run 'xev' to find out the keysyms of the various laptop buttons such as the volume keys or the usual combination to switch the backlighting.
>>13914Sure, just look for the proper argument in your terminal emulator's man page. For urxvt it's -e:
bindsym $mod+x exec urxvt -e bash -c "sudo apt-get update && sudo apt-get upgrade"
This solution might exit right after executing the second command and you wouldn't be able to read any error messages. You could probably delay it or add an '&& exit' but once you encounter errors, you'll need the terminal anyway to fix them so I'd just go with an alias, say "upug" (UPdate & UpGrade) that you can type once without worrying about windows closing and stuff.
Protip: Many prompts highlight their default answer in caps, e.g. "Continue? [YES/no]". You don't have to type in "YES", you can just press return.