use dynamic application name

you'll have to rebase on master first, because I needed the APP_NAME stuff for this.
Please check the Xrandr stuff for possibly stupid things and fix where appropriate.