### vim:ft=cmus
###
### .cmus/rc
###   cmus' static configuration
###   see .cmus/autosave for the one that gets automatically written
###

### settings
### {{{
    set continue=true
    set repeat=false
    set shuffle=false
    set play_library=true
    set play_sorted=false
    set show_remaining_time=false
    set status_display_program=/home/hawk/etc/cmus/cmus-status-display
    set lib_sort=album tracknumber artist discnumber title filename
    set pl_sort=
    set dsp.alsa.device=default
    set mixer.alsa.channel=PCM
    set mixer.alsa.device=default
    set dsp.oss.device=/dev/dsp
    set mixer.oss.channel=PCM
    set mixer.oss.device=/dev/mixer
    set output_plugin=alsa
    set altformat_current= %F%= %d
    set altformat_playlist= %f%= %d
    set altformat_title=cmus
    set altformat_trackwin= %f%= %d
    set format_current= %a - %l - %02n. %t%= %y %d
    set format_playlist= %a - %l - %02n. %t%= %y %d
    set format_title=cmus
    set format_trackwin= %02n. %t%= %y %d
    set format_trackwin_va= %02n. %a / %t%= %y %d
    set confirm_run=true
    set aaa_mode=all
    set buffer_seconds=10
    set show_hidden=false
    set set_term_title=false
### }}}

### colors
### {{{
    set color_cmdline_bg=default
    set color_cmdline_fg=cyan
    set color_error=lightred
    set color_info=lightyellow
    set color_separator=cyan
    set color_statusline_bg=default
    set color_statusline_fg=cyan
    set color_titleline_bg=blue
    set color_titleline_fg=white
    set color_win_bg=default
    set color_win_cur=green
    set color_win_cur_sel_bg=blue
    set color_win_cur_sel_fg=lightyellow
    set color_win_dir=lightblue
    set color_win_fg=cyan
    set color_win_inactive_cur_sel_bg=cyan
    set color_win_inactive_cur_sel_fg=black
    set color_win_inactive_sel_bg=gray
    set color_win_inactive_sel_fg=black
    set color_win_sel_bg=red
    set color_win_sel_fg=gray
    set color_win_title_bg=blue
    set color_win_title_fg=white
### }}}

### keybindings
### {{{

### {{{ common view
    # views
    bind -f     common      1         view tree
    bind -f     common      2         view sorted
    bind -f     common      3         view playlist
    bind -f     common      4         view queue
    bind -f     common      5         view browser
    bind -f     common      6         view filters
    bind -f     common      !         view settings
    # volume control
    bind -f     common      *         vol +10%
    bind -f     common      _         vol -10%
    bind -f     common      +         vol +1
    bind -f     common      -         vol -1
    bind -f     common      8         vol +1 +0
    bind -f     common      9         vol +0 +1
    bind -f     common      (         vol -1 -0
    bind -f     common      )         vol -0 -1
    # :toggle's
    bind -f     common      C         toggle continue
    bind -f     common      M         toggle play_library
    bind -f     common      m         toggle aaa_mode
    bind -f     common      o         toggle play_sorted
    bind -f     common      r         toggle repeat
    bind -f     common      t         toggle show_remaining_time
    bind -f     common      s         toggle shuffle
    # movement
    bind -f     common      ^B        win-page-up
    bind -f     common      ^F        win-page-down
    bind -f     common      down      win-down
    bind -f     common      end       win-bottom
    bind -f     common      g         win-top
    bind -f     common      j         win-down
    bind -f     common      k         win-up
    bind -f     common      page_down win-page-down
    bind -f     common      page_up   win-page-up
    bind -f     common      up        win-up
    bind -f     common      G         win-bottom
    # player control
    bind -f     common      b         player-next
    bind -f     common      c         player-pause
    bind -f     common      v         player-stop
    bind -f     common      x         player-play
    bind -f     common      y         player-prev
    # fwd/rwd
    bind -f     common      d         seek -1m
    bind -f     common      f         seek +1m
    bind -f     common      h         seek -5
    bind -f     common      l         seek +5
    bind -f     common      left      seek -5
    bind -f     common      right     seek +5
    # win-*
    bind -f     common      D         win-remove
    bind -f     common      E         win-add-Q
    bind -f     common      P         win-mv-before
    bind -f     common      a         win-add-l
    bind -f     common      delete    win-remove
    bind -f     common      e         win-add-q
    bind -f     common      enter     win-activate
    bind -f     common      home      win-top
    bind -f     common      i         win-sel-cur
    bind -f     common      space     win-toggle
    bind -f     common      tab       win-next
    bind -f     common      u         win-update
    bind -f     common      z         win-add-p
    bind -f     common      p         win-mv-after
    # search control
    bind -f     common      N         search-prev
    bind -f     common      n         search-next
### }}}

### {{{ browser view
    bind -f     browser     backspace browser-up
    bind -f     browser     H         toggle show_hidden
### }}}

### {{{ library view
    bind -f     library     F1        load /home/hawk/etc/cmus/lists/music.list
    bind -f     library     F2        load /home/hawk/etc/cmus/lists/hs.list
    bind -f     library     F3        load /mnt/extern/lists/music.list
    bind -f     library     F4        load /mnt/extern/lists/hs.list
    bind -f     library     F5        load /home/hawk/etc/cmus/lists/streams.list
### }}}

### {{{ settings view
    bind -f     settings    q         prev-view
### }}}

### }}}

### filters
### {{{
    fset mp3=filename="*.mp3"
    fset ogg=filename="*.ogg"
### }}}

### unwanted bindings :-)
### {{{
    unbind -f     common      ^C
    unbind -f     common      [
    unbind -f     common      ]
    unbind -f     common      {
    unbind -f     common      }
    unbind -f     browser     i
### }}}

### renaming streams
### {{{
   #sr-add -i http://205.188.215.225:8010          ; Metal   Mixed         cronixradio.com                   1
   #sr-add -i http://hi.death.fm:80                ; Metal   Death/Black   death.fm                          1
   #sr-add -i http://24.30.208.51:8000/listen.pls  ; Metal   Death/Black   rothmetal.com                     2
   #sr-add -i http://vfradio.com:2200/              Metal  ; Death/Black   www.vampirefreaks.com             3
   #sr-add -i http://radio.demonweb.org:8000/      ; Metal   Thrash        demonweb.org                      1
   #sr-add -i http://128relay1.gothmetal.net:6666  ; Metal   Gothic        gothmetal.net                     1
   #sr-add -i http://217.160.74.48:8044            ; Metal   Mixed         edge-radio.net                    2
   #sr-add -i http://64.62.252.134:6076            ; Metal   Thrash        www.thrashnbash.com               2
   #sr-add -i http://www.darksoul7.net:8000/        Metal  ; Death/Black   darksoul7.net                     4
   #sr-add -i http://213.186.43.150:8100/          ; Metal   Mixed         rtds.org                          3
   #sr-add -i http://4.79.65.109:6020/              Metal  ; Thrash        hathormusicradio.com/Thrash       3
   #sr-add -i http://4.79.65.92:6050/              ; Metal   Mixed         hathormusicradio.com/Metal        4
   #sr-add -i http://4.79.65.109:6032/              Rock    Alternative  ; hathormusicradio.com/Alternative  1
   #sr-add -i http://64.236.34.4:80/stream/1022    ; Rock    Alternative   977alt.com                        2
   #sr-add -i http://4.79.65.109:6008/              Rock    Hardcore      hathormusicradio.com/Hardcore    ; 1
   #sr-add -i http://4.79.65.92:6074/              ; Rock    Industrial    hathormusicradio.com/Industrial   1
   #sr-add -i http://4.79.65.109:6158/              Rock    StonerRock    hathormusicradio.com/Stoner      ; 1
   #sr-add -i http://4.79.65.109:6134/              Misc    Ambient      ; hathormusicradio.com/Ambient      1
   #sr-add -i http://4.79.65.92:6116/              ; Rock    ClassicRock   hathormusicradio.com/ClassicRock  1
   #sr-add -i http://4.79.65.109:6104/              Misc    Jazz          hathormusicradio.com/Jazz        ; 1
### }}}

### initialization
### {{{
    view 1
### }}}