This borrows the setup used with .xsessionrc{,.shared,.device}. It supports configuration for my desktop, laptop, cloudtop.