x11-on-resolution-change Runs shell code when resolution changes. Example x11-on-resolution-change "nitrogen --restore"