Post History
From what I understand, you can pass a command to the xinit program that will be executed instead of .xinitrc. So you might be able to use startx sh -c 'xrandr-invert-colors; exec "$HOME/.xinitrc"...
Answer
From what I understand, you can pass a command to the xinit program that will be executed instead of .xinitrc. So you might be able to use startx sh -c 'xrandr-invert-colors; exec "$HOME/.xinitrc"...