Kew: Listening to Music in the Linux Terminal

Using the terminal like music to the ear.
Warp Terminal

A new (or perhaps old) way of enjoying music for the command-line enthusiasts.

I've seen things... seen things that you people wouldn't believe... Linux developed by governments, Linux on mobiles, and terminal audio players.

Yes, it could be funny, but it's real, you could play music from your command-line.

And that's just one of the many unusual things you can do in the terminal.

Meet Kew

When you use the terminal more often than the graphical tools, you would perhaps enjoy playing music from the terminal.

I came across Kew, a terminal music player fully written in C. It's small (not more than 1 MiB), with a low memory profile. You can create and play your own playlists!

Kew terminal music player for Linux and BSD
Kew music player running in the terminal

First things go first: Installation

It's straightforward to install Kew because it's available in the repositories of the common Linux Distributions like Arch Linux, Debian, Gentoo., etc.

For Debian and Ubuntu-based distros, use:

sudo apt install kew

You can use an AUR helper for Arch-based distros. Let's you use yay:

sudo yay -S kew

For openSUSE, use zypper:

sudo zypper install kew 

Exploring music with Kew

One of the most interesting and surprising things it's that kew can search in your music directory (usually ~/Music, or you could change it) only with one word:

kew bruce

And you're immediately listening to the Boss!!

Listening the Boss


You can see the album cover while you're listening to it.

You can make a playlist based on the content of a directory (and the others inside it recursively). The playlist can be edited/modified inside Kew in the Playlist view.

You can play the songs from the playlist using:

kew kew.m3u

Direct Functions

Kew provides some direct functions that you can type with kew:

  • <none>: You go straight to the music library.
  • dir <album name>: Play a full directory.
  • song <song name>: Play only a song.
  • list <playlist name>: Play a playlist that you could define.
  • shuffle <album name>|<playlist name>: shuffles the album or playlist
  • artistA:artistB:artistC: shuffles all 3 artists.
    Just to mention some of their fantastic functions. You could get all the commands here.

Views

There are different views for different functions that can be accessed via a function key.

F2 : Current Playlist

Playlist in Kew terminal music player

F3 : Library view

Accessing music library

F4 : Track View

Kew terminal music player for Linux and BSD
Kew music player running in the terminal

F5 : Search view

Searching music library

F6 : Help

Kew default keyboard shortcuts
Press F6 to get the keyboard shortcuts info

Key bindings

If you decided to use Kew regularly, it would be much better to use and remember various keyboard shortcuts. You can surely configure your own.

Press F6 and it will show the key bindings:

  • + (or =), keys to adjust the volume.
  • ←, β†’ or h, l keys to switch tracks.
  • space, p to toggle pause.
  • F2 or Shift + z to show/hide the playlist.
  • F3 or Shift + x to show/hide the library.
  • F4 or Shift + c to show/hide the track view.
  • F5 or Shift + v to search.
  • F6 or Shift + b to show/hide key bindings.
  • u to update the library.
  • v to toggle the spectrum visualizer.
  • i to switch between using your regular color scheme or colors derived from the track cover.
  • b to toggle album covers drawn in ascii or as a normal image.
  • r to repeat the current song.
  • s to shuffle the playlist.
  • a to seek back.
  • d to seek forward.
  • x to save the currently loaded playlist to a m3u file in your music folder.
  • Tab to switch between views.
  • gg go to first song.
  • number + G, g or Enter, go to specific song number in the playlist.
  • g go to last song.
  • . to add current song to kew.m3u (run with "kew .").
  • Esc to quit.

Conclusion

There are several terminal audio players like Cmus, MOC - Music on Console, Musikcube, etc. Kew can be placed in this list of terminal tools.

Written in C, with a small memory blueprint, Kew is worth trying for a terminal dweller.

If you give it a try, do share its experience in the comments.

Author Info

Jose Antonio

Jose Antonio TenΓ©s
A Communication engineer by education, and Linux user by passion. In my spare time, I play chess, do you dare?

About the author
Community

Community

Written by a community member, a reader who is not part of the It's FOSS writing team. The views and opinions expressed are those of the authors and do not necessarily reflect that of It's FOSS.

Become a Better Linux User

With the FOSS Weekly Newsletter, you learn useful Linux tips, discover applications, explore new distros and stay updated with the latest from Linux world

itsfoss happy penguin

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to It's FOSS.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.