There is an `atom.config.toggle` method that comes in handy here.

`atom.config.toggle('tree-view.showOnRightSide')`