~ mutex /.screenrc

# basic settings
startup_message off
vbell           off
defscrollback   512
shell           -$SHELL
shelltitle      sh

# enable SHIFT-PGUP / SHIFT-PGDOWN scroll
termcapinfo rxvt ti@:te@
termcapinfo xterm ti@:te@

# change window with ALT-. ALT-,
bindkey "^[," prev
bindkey "^[." next

# change window with ALT-Q ALT-W
bindkey "^[q" prev
bindkey "^[w" next

# keyboard shortcuts
# bind ^g screen -t gg   ekg           # C-a-g
# bind ^m screen -t mpd  ncmpc         # C-a-m

# startup sessions
screen -t ncmpc 0 ncmpc
screen -t sh    1
# select 0

# status // change %{= M} --> %{= kM} to display status on black background
hardstatus alwayslastline '%{= M} %H%{= G} %l %= %{= w}%-w%{+b r}%n*%t%{-b r}%{w}%+w %= %{c}%d %D %{B}%c '

# detach on hangup
autodetach on