# The .xsessionrc File¶

Here we are, the (kind of) final step! After this, you should have a basic, working instance of xmonad. The .xsessionrc file basically sets up all the instances needed (xmobar, stalonetray, etc) at login. It’s simply a bash script, with the whole “shebang” so to speak! (I couldn’t resist, look here if you’re a little confused)

Anyways, bad jokes aside, here’s the joe-basic script that’ll get you going for now. It will have to be placed in ~/.xsessionrc (you can do touch ~/.xsessionrc or like I also mentioned, vim ~/.xsessionrc:

#!/bin/bash

xrdb -merge .Xresources

# Set up an icon tray
stalonetray &

# Fire up apps

xscreensaver -no-splash &

if [ -x /usr/bin/nm-applet ] ; then
nm-applet --sm-disable &
fi



Now, this is very simple: it starts stalonetray, the xscreensaver daemon, the wifi applet, and then does some magic with stdout and xmonad (look here if you’re interested).

Congratulations! You’ve taken the first big step in the world of DIY window managing.

## Further Tweaks¶

Now, at this point, many simple things about xmonad are working, like: