Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      June 2, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      June 2, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      June 2, 2025

      How To Prevent WordPress SQL Injection Attacks

      June 2, 2025

      How Red Hat just quietly, radically transformed enterprise server Linux

      June 2, 2025

      OpenAI wants ChatGPT to be your ‘super assistant’ – what that means

      June 2, 2025

      The best Linux VPNs of 2025: Expert tested and reviewed

      June 2, 2025

      One of my favorite gaming PCs is 60% off right now

      June 2, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      `document.currentScript` is more useful than I thought.

      June 2, 2025
      Recent

      `document.currentScript` is more useful than I thought.

      June 2, 2025

      Adobe Sensei and GenAI in Practice for Enterprise CMS

      June 2, 2025

      Over The Air Updates for React Native Apps

      June 2, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      You can now open ChatGPT on Windows 11 with Win+C (if you change the Settings)

      June 2, 2025
      Recent

      You can now open ChatGPT on Windows 11 with Win+C (if you change the Settings)

      June 2, 2025

      Microsoft says Copilot can use location to change Outlook’s UI on Android

      June 2, 2025

      TempoMail — Command Line Temporary Email in Linux

      June 2, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Operating Systems»Linux»Kew: Listening to Music in the Linux Terminal

    Kew: Listening to Music in the Linux Terminal

    February 18, 2025

    Kew: Listening to Music in the Linux 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.

    Subscribe to It’s FOSS YouTube Channel

    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: Listening to Music in the Linux Terminal
    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!!

    Kew: Listening to Music in the Linux Terminal

    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

    Kew: Listening to Music in the Linux Terminal

    F3 : Library view

    Kew: Listening to Music in the Linux Terminal

    F4 : Track View

    Kew: Listening to Music in the Linux Terminal
    Kew music player running in the terminal

    F5 : Search view

    Kew: Listening to Music in the Linux Terminal

    F6 : Help

    Kew: Listening to Music in the Linux Terminal
    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

    Kew: Listening to Music in the Linux Terminal

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

    Source: Read More

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleOpen Voice OS: Il Successore di Mycroft
    Next Article GSConnect – complete implementation of KDE Connect

    Related Posts

    Operating Systems

    You can now open ChatGPT on Windows 11 with Win+C (if you change the Settings)

    June 2, 2025
    Operating Systems

    Microsoft says Copilot can use location to change Outlook’s UI on Android

    June 2, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    Handle Error On Critical Thread 0x000001ED: How to Fix it

    Development

    The 50+ Best Free Responsive HTML Web Templates for 2025

    Learning Resources

    The release date for the long-awaited return of a beloved Square Enix franchise has been announced

    Development

    Which programming languages are most popular now (and what does that even mean)?

    Development

    Highlights

    159 CVEs Exploited in The Wild in Q1 2025, 8.3% of Vulnerabilities Exploited Within 1-Day

    April 25, 2025

    159 CVEs Exploited in The Wild in Q1 2025, 8.3% of Vulnerabilities Exploited Within 1-Day

    In the first quarter of 2025, cybersecurity researchers documented an alarming surge in vulnerability exploitation, with 159 Common Vulnerabilities and Exposures (CVEs) being exploited in the wild.
    Th …
    Read more

    Published Date:
    Apr 25, 2025 (4 hours, 8 minutes ago)

    Vulnerabilities has been mentioned in this article.

    Minneapolis, Let’s Talk AI at Agentforce World Tour

    Minneapolis, Let’s Talk AI at Agentforce World Tour

    April 9, 2025

    DigiCert Revokes Thousands of SSL Certificates Over Validation Error

    July 30, 2024

    Celebrating GAAD by Committing to Universal Design: Low Physical Effort

    May 21, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.