| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <title>kew (/kjuː/, a variant of cue) is a terminal music player.</title> |
| 5 | <meta charset="utf-8" /> |
| 6 | <meta http-equiv="Expires" content="-1" /> |
| 7 | <meta http-equiv="Pragma" content="no-cache" /> |
| 8 | <meta http-equiv="Cache-Control" content="no-cache" /> |
| 9 | <link href="css/style.css" type="text/css" rel="stylesheet" /> |
| 10 | </head> |
| 11 | |
| 12 | <body id="landing"> |
| 13 | |
| 14 | <p class="kew-logo-wrapper"><a style="kew-logo" href="/"><img src="images/kew.gif" alt="kew terminal music player screenshot" /></a></p> |
| 15 | |
| 16 | <header> |
| 17 | <p>kew (/kjuː/, a variant of cue) is a terminal music player.</p> |
| 18 | </header> |
| 19 | |
| 20 | <div class="navbar"> |
| 21 | <a href="/">Home</a> |
| 22 | <a href="donate.html">Donate</a> |
| 23 | <a href="download.html">Download</a> |
| 24 | <a href="docs.html">Docs</a> |
| 25 | <a href="contribute.html">Contribute</a> |
| 26 | <a href="testimonials.html">Testimonials</a> |
| 27 | <a href="credits.html">Credits</a> |
| 28 | <a href="merch.html">Merch</a> |
| 29 | <a href="sponsors.html">Sponsors</a> |
| 30 | </div> |
| 31 | |
| 32 | <article data-sblg-article="1" data-sblg-set-title="kew (/kjuː/, a variant of cue) is a terminal music player." data-sblg-set-subtitle="kew (/kjuː/) is a variant of cue" data-sblg-set-tagline="Music for the Shell"> |
| 33 | <h2>Documentation</h2> |
| 34 | <p>kew creates a playlist with the contents of the first directory or file whose name matches the arguments you provide in the command-line.</p> |
| 35 | <pre><code class="language-bash">kew cure great |
| 36 | </code></pre> |
| 37 | <p>This creates and starts playing a playlist with ‘The cure greatest hits’ if it’s in your music library.</p> |
| 38 | <p>It works best when your music library is organized this way:</p> |
| 39 | <p>artist folder->album folder(s)->track(s).</p> |
| 40 | <h2>Example commands</h2> |
| 41 | <pre><code> kew (starting kew with no arguments opens the library view where you can choose what to play) |
| 42 | |
| 43 | kew all (plays all songs, up to 50 000, in your library, shuffled) |
| 44 | |
| 45 | kew albums (plays all albums, up to 2000, randomly one after the other) |
| 46 | |
| 47 | kew moonlight son (finds and plays moonlight sonata) |
| 48 | |
| 49 | kew moon (finds and plays moonlight sonata) |
| 50 | |
| 51 | kew beet (finds and plays all music files under "beethoven" directory) |
| 52 | |
| 53 | kew dir <album name> (sometimes, if names collide, it's necessary to specify it's a directory you want) |
| 54 | |
| 55 | kew song <song> (or a song) |
| 56 | |
| 57 | kew play "/home/you/Music/Jimi Hendrix/Are You Experienced/" (plays the \'Are you Experienced?\' album) |
| 58 | |
| 59 | kew play "/home/you/Music/Jimi Hendrix/Are You Experienced/Purple Haze.flac" (plays Purple Haze) |
| 60 | |
| 61 | kew play <album path> <album path> <song path> (kew play accepts multiple paths) |
| 62 | |
| 63 | kew list <playlist> (or a playlist) |
| 64 | |
| 65 | kew theme midnight (sets the 'midnight.theme' theme) |
| 66 | |
| 67 | kew shuffle <album name> (shuffles the playlist. shuffle needs to come first.) |
| 68 | |
| 69 | kew artistA:artistB:artistC (plays all three artists, shuffled) |
| 70 | |
| 71 | kew --help, -? or -h |
| 72 | |
| 73 | kew --version or -v |
| 74 | |
| 75 | kew --nocover |
| 76 | |
| 77 | kew --noui (completely hides the UI) |
| 78 | |
| 79 | kew -q <song>, --quitonstop (exits after finishing playing the playlist) |
| 80 | |
| 81 | kew -e <song>, --exact (specifies you want an exact (but not case sensitive) match, of for instance an album) |
| 82 | |
| 83 | kew . (loads kew favorites.m3u) |
| 84 | |
| 85 | kew path "/home/you/Music/" (changes the path) |
| 86 | </code></pre> |
| 87 | <h2>Key Bindings</h2> |
| 88 | <h3>Basic</h3> |
| 89 | <ul> |
| 90 | <li>Play/Enqueue/Dequeue: <kbd>Enter</kbd> or middle mouse.</li> |
| 91 | <li>Toggle Play/Pause: <kbd>Space</kbd>, <kbd>p</kbd> or right mouse.</li> |
| 92 | <li>Volume: <kbd>+</kbd> <kbd>-</kbd> (alt: <kbd>=</kbd> <kbd>-</kbd>).</li> |
| 93 | <li>Switch Track: <kbd>←</kbd> <kbd>→</kbd> (alt: <kbd>h</kbd> <kbd>l</kbd>).</li> |
| 94 | <li>Switch View: <kbd>F2-F6</kbd>, (macOS/Android: <kbd>Shift+z,+x,+c,+v,+b</kbd>), Tab or click the footer.</li> |
| 95 | <li>Stop: <kbd>Alt+s</kbd>.</li> |
| 96 | <li>Cycle Color Modes: <kbd>i</kbd>.</li> |
| 97 | <li>Cycle Themes: <kbd>t</kbd>.</li> |
| 98 | <li>Clear Playlist: <kbd>Backspace</kbd>.</li> |
| 99 | <li>Delete from Playlist: <kbd>Del</kbd>.</li> |
| 100 | <li>Repeat: <kbd>r</kbd>.</li> |
| 101 | <li>Shuffle: <kbd>s</kbd>.</li> |
| 102 | <li>Quit: <kbd>Esc</kbd> or <kbd>q</kbd>.</li> |
| 103 | </ul> |
| 104 | <h3>Advanced</h3> |
| 105 | <h4>Library</h4> |
| 106 | <ul> |
| 107 | <li>Update: <kbd>u</kbd>.</li> |
| 108 | <li>Sort: <kbd>o</kbd> (by age/alhabetically).</li> |
| 109 | </ul> |
| 110 | <h4>Track View</h4> |
| 111 | <ul> |
| 112 | <li>Cycle Visualizer Modes: <kbd>v</kbd>.</li> |
| 113 | <li>ASCII Covers: <kbd>b</kbd>.</li> |
| 114 | </ul> |
| 115 | <h4>Playlist</h4> |
| 116 | <ul> |
| 117 | <li>Save: <kbd>x</kbd> (places .m3u in your music folder, named after the first song).</li> |
| 118 | <li>Move songs: <kbd>f</kbd> <kbd>g</kbd>.</li> |
| 119 | <li>Jump to song: number + <kbd>G</kbd> or <kbd>Enter</kbd>.</li> |
| 120 | </ul> |
| 121 | <h4>General</h4> |
| 122 | <ul> |
| 123 | <li>Lyrics View: <kbd>m</kbd>.</li> |
| 124 | <li>Seek <kbd>a</kbd> and <kbd>d</kbd> or drag the progress bar.</li> |
| 125 | <li>Previous View <kbd>Shift+Tab</kbd>.</li> |
| 126 | <li>Add to Favorites: <kbd>.</kbd>. Play favorites with: <code>kew .</code></li> |
| 127 | <li>Notifications on/off: <kbd>n</kbd>.</li> |
| 128 | </ul> |
| 129 | <h4>Crossfade</h4> |
| 130 | <ul> |
| 131 | <li>Always on/off: <kbd>z</kbd>.</li> |
| 132 | <li>Quick: <kbd>Shift+d</kbd>.</li> |
| 133 | <li>Medium: <kbd>Shift+f</kbd>.</li> |
| 134 | <li>Slow: <kbd>Shift+g</kbd>.</li> |
| 135 | </ul> |
| 136 | <h2>Configuration</h2> |
| 137 | <p>Linux: ~/.config/kew/</p> |
| 138 | <p>macOS: ~/Library/Preferences/kew/</p> |
| 139 | <p>Key bindings can be added like this:</p> |
| 140 | <p>bind = +, volUp, +5%</p> |
| 141 | <p>If you have an old install of kew, delete the kewrc file to make this style of |
| 142 | bindings appear.</p> |
| 143 | <p>kew state (for settings that can be changed in-app) is kept in ~/.config/kew/ke |
| 144 | wstaterc.</p> |
| 145 | <p>If you change a setting in-app it will be tracked by kewstaterc and not kewrc.</p> |
| 146 | <p>kewrc is never changed by kew with the exception of when you run kew path.</p> |
| 147 | <p>If you delete your kewrc a new default one will be generated. You wont get newer config options listed in your config file unless you do this.</p> |
| 148 | <h2>Layouts</h2> |
| 149 | <p>It’s possible to define your own layout in kew. How to make one is described in <a href="https://codeberg.org/ravachol/kew/src/branch/main/layouts/LAYOUTS-HOWTO.md">LAYOUTS-HOWTO.md</a></p> |
| 150 | <p>The layout used by kew is called current.layout.</p> |
| 151 | <p>Replace current.layout to change the layout. If breaking changes are introduced, current.layout will be renamed to current.layout.bak, before the new one is copied over.</p> |
| 152 | <p>Layouts are in ~/.config/kew/layouts (~/Library/Preferences/kew/layouts on macOS).</p> |
| 153 | <p>If layouts aren’t working, try re-installing kew or running ‘sudo make install’ if you ran make yourself.</p> |
| 154 | <h2>Themes</h2> |
| 155 | <p>Press t to cycle available themes.</p> |
| 156 | <p>To set a theme from the command-line, run:</p> |
| 157 | <pre><code class="language-bash">kew theme <themename> (ie 'kew theme midnight') |
| 158 | </code></pre> |
| 159 | <p>Put themes in ~/.config/kew/themes (~/Library/Preferences/kew/themes on macOS).</p> |
| 160 | <p>Do not edit the included themes as they are managed by kew. Instead make a copy with a different name and edit that.</p> |
| 161 | <p>Try the theme editor (by @bholroyd): <a href="https://bholroyd.github.io/Kew-tip/">https://bholroyd.github.io/Kew-tip/</a>.</p> |
| 162 | <h2>If Colors or Graphics Look Wrong</h2> |
| 163 | <p>Cycle <kbd>i</kbd> until they look right.</p> |
| 164 | <p>Press <kbd>v</kbd> to turn off visualizer.</p> |
| 165 | <p>Press <kbd>b</kbd> for ASCII covers.</p> |
| 166 | <p>A terminal emulator that can handle TrueColor and sixels is recommended. See <a href="https://www.arewesixelyet.com/">Are We Sixel Yet?</a>.</p> |
| 167 | <h2>Playlists</h2> |
| 168 | <p>To load a playlist: type <code>kew list <name></code></p> |
| 169 | <p>To export a playlist, press x. This will save a file in your music path with the name of the first song in the queue.</p> |
| 170 | <p>There is also a favorites playlist function:</p> |
| 171 | <p>Add current song: press <kbd>.</kbd></p> |
| 172 | <p>To load ‘kew list fav’: kew .</p> |
| 173 | <h2>Visualizations / Chroma</h2> |
| 174 | <p>Starting with kew 4.0, you can add visualizations to kew by installing Chroma, an app by another developer.</p> |
| 175 | <p>You’ll need to install a specific commit, which is the latest one that works.</p> |
| 176 | <p>How to install Chroma:</p> |
| 177 | <pre><code>git clone https://github.com/yuri-xyz/chroma.git |
| 178 | |
| 179 | cd chroma |
| 180 | |
| 181 | git checkout fb00b6e |
| 182 | |
| 183 | cargo install --path . --features audio |
| 184 | </code></pre> |
| 185 | <p>Enable and cycle through the visualizations by pressing <kbd>c</kbd> in track view.</p> |
| 186 | <p>Disable by pressing <kbd>b</kbd>.</p> |
| 187 | <p>This works by kew being fed frames from Chroma and does not add bloat to kew.</p> |
| 188 | <h4>Chroma Configuration</h4> |
| 189 | <p>You can customize Chroma’s behavior in your kewrc file:</p> |
| 190 | <ul> |
| 191 | <li>chromaPath: Path to a custom Chroma preset file. If set, this preset will be used instead of the built-in ones.</li> |
| 192 | <li>chromaDevice: Specify the audio device for Chroma to capture from (e.g., "PipeWire Sound Server"). Use chroma –list-audio-devices, to find available devices.</li> |
| 193 | </ul> |
| 194 | <pre><code class="language-ini">[chroma] |
| 195 | chromaPath=/path/to/your/custom.preset |
| 196 | chromaDevice=PipeWire Sound Server |
| 197 | </code></pre> |
| 198 | <h2>Scrobbling</h2> |
| 199 | <p>kew’s private and offline nature means we don’t support Scrobbling/last.fm dire |
| 200 | ctly. Instead tools such as PanoScrobbler are recommended. See: <a href="https://github.com/kawaiiDango/pano-scrobbler">https://github.com/kawaiiDango/pano-scrobbler</a>.</p> |
| 201 | <h2>How to make sure kew is offline and private</h2> |
| 202 | <p>kew itself does not have telemetry, it does not collect data and send to kew servers, it does not access the internet.</p> |
| 203 | <p>However, if Discord RPC is enabled and Discord is running, data about what you are listening to will end up on Discord servers.</p> |
| 204 | <p>To ensure the best privacy, two settings have to be set as following in the settings file kewrc:</p> |
| 205 | <pre><code class="language-bash">allowNotifications=0 |
| 206 | discordRPCEnabled=0 |
| 207 | </code></pre> |
| 208 | <p>in kewstaterc, make sure this is set:</p> |
| 209 | <pre><code class="language-bash">allowNotifications=0 |
| 210 | </code></pre> |
| 211 | <p>kewstaterc tracks in-app choices so if you press ‘n’ for toggling notifications, the value will change.</p> |
| 212 | <p>Notifications means desktop notifications (MPRIS/DBUS) which is local, but is broadcast to other apps on your machine that are listening. It’s generally not logged unless an app on your machine that is listening logs it.</p> |
| 213 | <p>To force notifications to be always off, compile with:</p> |
| 214 | <pre><code class="language-bash">make USE_DBUS=0 -j |
| 215 | </code></pre> |
| 216 | <p>To erase traces of your kew listening after uninstall, you need to delete the library.dat file in ~/.config/kew.</p> |
| 217 | <h2>License</h2> |
| 218 | <p>Licensed under GPLv2+. <a href="https://codeberg.org/ravachol/kew/src/branch/main/LICENSE">See LICENSE for more information</a>.</p> |
| 219 | </article> |
| 220 | <footer> |
| 221 | <p>Like kew?</p> |
| 222 | <div class="support-button"> |
| 223 | <a href="donate.html">Support the project</a> |
| 224 | </div> |
| 225 | |
| 226 | <p>Music for the Shell</p> |
| 227 | |
| 228 | </footer> |
| 229 | |
| 230 | <script |
| 231 | data-goatcounter="https://kew.goatcounter.com/count" |
| 232 | async="async" |
| 233 | src="//gc.zgo.at/count.js"> |
| 234 | </script> |
| 235 | |
| 236 | </body> |
| 237 | |
| 238 | </html> |
| 239 |