暫無描述

strlst e22f088bc9 fixed uninitialized memory problem 2 年之前
res 1c8b9a4262 added screenshots 3 年之前
src e22f088bc9 fixed uninitialized memory problem 2 年之前
.gitignore 9d808aa373 minor changes 3 年之前
LICENSE 06d61e076e Initial commit 5 年之前
Makefile e22f088bc9 fixed uninitialized memory problem 2 年之前
README.md 712798c871 update README 3 年之前

README.md

cmus-rg (cmus-remote graphical)

A simple graphical cmus status display in C using SDL2. Some elements can be clicked to control cmus remotely. Developed for educational purposes.

screenshots

install (unix)

  1. install libavformat (ffmpeg.org) as well as SDL2 (www.libsdl.org) with development headers and dependencies
  • SDL2
  • SDL2-devel
  • SDL2_image
  • SDL2_image-devel
  • SDL2_ttf
  • SDL2_ttf-devel
  • libavformat
  • ffmpeg-devel
  1. use make to compile cmus-rg, or make install to compile and install to /bin (requires elevated permissions)

  2. run with ./cmus-rg, or cmus-rg if cmus-rg has been installed to /bin

features in need of implementation

one day for sure

  • include fonts
  • UTF8 support
  • album art support
    • requires id3-extract-cover
    • supports all image formats supported by SDL2
    • supports only images encoded in id3v2 within mp3 files
  • dynamic font loading
    • half heartedly implemented, just add font in graphics.c
  • better metadata presentation
  • actual cmus-remote functionality (pausing cmus, et cetera)
    • pause
    • seek
    • next/prev
    • toggle aaa_mode
  • scripting capabilities by adding flags
    • dimension parameters
    • font parameter
    • supports only full paths to TTF files for now
    • font size
    • supports only TTF fonts
  • recognition of streams instead of just local files
  • support for resizing

credits

Redistributes M+ FONTS (https://mplus-fonts.osdn.jp/), an awesome and freely redistributable font that supports UTF8.

Initially inspired by [https://github.com/dashed/tetris-sdl-c], who provides an easy way to get into SDL2 for C.

license

MIT