Cmus

 Cmus

Gave this talk at the 3 birthday of Emacs Berlin

Dc708e96bc09d605a0a9fcad26ff6035?s=128

Matthias Günther

March 30, 2017
Tweet

Transcript

  1. cmus Matthias Günther

  2. cmus (1)

  3. Benefits customizable instant startup, even with thousands of tracks easy

    to use directory browser
  4. Browse file system and add tracks 5 … go into

    the browse mode a … add selection to library D … remove selection from library
  5. Artist view 1 … go into the mode <space> …

    to see albums
  6. Library view 2 … library view (sorted)

  7. Play commands (2)

  8. Play commands I b … plays next track z …

    plays previous c … pause, continue x … restart track p/P … change order of entries next/previous
  9. Play commands II +|- … increase, decrease sound C-f|C-b …

    page-down,page- up C-r … repeat current track
  10. Play commands statuschanges I m … cycle through play modus

    (all, album artist) M … switch modes without interrupting the currently- playing song r … repeat the playlist when ended (R in statusline)
  11. Play commands statuschanges II s … shuffle (S in statusline)

    C … toggle continue playing the next song (C in statusline)
  12. Fill queue and playlist y … add the selected song

    to playlist (3) e … mark the songs to the queue (4) (FIFO)
  13. Useful commands (3)

  14. Useful commands I :add ~/music … same as ‘a’ :colorscheme

    … will change the colorscheme :clear … will clear the current list
  15. Useful commands II :save ~/music/ playlist.lst :load ~/music/ playlist.lst :unmark

    … clean the marked songs q … quit cmus
  16. Useful commands III :invert … select all tracks which are

    not marked :prev-view … toggle the last two views
  17. config cmus in ~/.config/cmus rc … configuration autosave …

  18. My config unbind -f common E bind common E run

    easytag {} unbind -f common + bind common + vol +5% unbind -f common - bind common - vol -5% # Vim like shortcuts to jump to the next/prev section unbind -f common ^N bind common ^N player-next unbind -f common ^P bind common ^P player-prev
  19. Get the cover ALBUM_PATH=/$(cmus-remote -Q | grep file | cut

    -d'/' --complement -s -f1 | rev | \ cut -d'/' --complement -s -f1 | rev | sed -e 's/\s/\\ /g' | \ sed -e 's/(/\\(/g' | sed -e 's/)/\\)/g')/cover.jpg ALBUM_NAME=$(cmus-remote -Q | grep -w 'tag album' | cut -d'~' --complement -f1 | \ cut -d' ' --complement -s -f1 | sed -e 's/\s/-/g') eval notify-send -i $ALBUM_PATH $ALBUM_NAME And the shortcut unbind -f common I bind common I shell bash ~/.config/cmus/album.sh
  20. Thank you (4)

  21. Images I (1): https://twitter.com/ gamesyouloved/ status/81790750591755468 8 (2): https://twitter.com/ realretroism/

    status/81755907377634508 8
  22. Images II (3): https://twitter.com/ gamesyouloved/ status/81679936420721869 4 (4): https://twitter.com/ gamesyouloved/

    status/81622573839122022 4