File CMakeLists.txt deleted (index 96f00b9..0000000) |
1 |
|
cmake_minimum_required(VERSION 2.8) |
|
2 |
|
project("Practical Music Search" CXX) |
|
3 |
|
set(PMS_VERSION_MAJOR 0) |
|
4 |
|
set(PMS_VERSION_MINOR 50) |
|
5 |
|
add_executable(pms src/main.cpp src/curses.cpp src/config.cpp src/console.cpp src/mpd.cpp src/wconsole.cpp src/window.cpp src/wstatusbar.cpp src/windowmanager.cpp src/input.cpp src/command.cpp src/keybinding.cpp src/pms.cpp src/color.cpp src/songlist.cpp src/song.cpp src/wsonglist.cpp src/field.cpp src/wtopbar.cpp src/topbar.cpp src/search.cpp src/sort.cpp src/clipboard.cpp) |
|
6 |
|
set(CMAKE_CXX_FLAGS, "-Wall -Werror -g -pedantic") |
|
7 |
|
set(CMAKE_C_FLAGS, "-Wall -Werror -g -pedantic") |
|
8 |
|
|
|
9 |
|
configure_file( |
|
10 |
|
"${PROJECT_SOURCE_DIR}/src/build.h.in" |
|
11 |
|
"${PROJECT_BINARY_DIR}/src/build.h" |
|
12 |
|
) |
|
13 |
|
|
|
14 |
|
set(CURSES_NEED_NCURSES, true) |
|
15 |
|
include(FindCurses) |
|
16 |
|
if (NOT CURSES_FOUND) |
|
17 |
|
message(FATAL_ERROR "PMS requires NCurses >= 5.0.") |
|
18 |
|
endif(NOT CURSES_FOUND) |
|
19 |
|
include_directories(${CURSES_INCLUDE_DIR}) |
|
20 |
|
target_link_libraries(pms ${CURSES_LIBRARIES}) |
|
File README.md deleted (index 8aa505f..0000000) |
1 |
|
# PMS |
|
2 |
|
## Practical Music Search |
|
3 |
|
Practical Music Search is an ncurses-based client for |
|
4 |
|
[MPD](http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki). It has a command line |
|
5 |
|
interface much like [Vim](http://www.vim.org), and supports custom colors, |
|
6 |
|
layouts, and key bindings. [PMS](https://github.com/ambientsound/pms) aims to |
|
7 |
|
be accessible and highly configurable. |
|
8 |
|
|
|
9 |
|
### Compiling |
|
10 |
|
$ cmake . && make |
|
11 |
|
|
|
12 |
|
### Dependencies |
|
13 |
|
You need to have [MPD](http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki) |
|
14 |
|
installed and working before using [PMS](https://github.com/ambientsound/pms), |
|
15 |
|
but not neccessarily on the same machine. |
|
16 |
|
|
|
17 |
|
This client requires |
|
18 |
|
[MPD](http://mpd.wikia.com/wiki/Music_Player_Daemon_Wiki) >= 0.15.0. |
|
19 |
|
|
|
20 |
|
[PMS](https://github.com/ambientsound/pms) depends on ncurses >= 5.0 to build. |
|
21 |
|
|
|
22 |
|
### Configuration |
|
23 |
|
Your configuration file is ~/.config/pms/pms.conf. A system-wide config |
|
24 |
|
file can be put in /etc/xdg/pms/pms.conf. |
|
25 |
|
|
|
26 |
|
Start PMS and type |
|
27 |
|
:set |
|
28 |
|
for a list of options available, or type |
|
29 |
|
:set color |
|
30 |
|
for a list of color options. |
|
31 |
|
|
|
32 |
|
#### Setting options |
|
33 |
|
Options can be set with |
|
34 |
|
set option=value |
|
35 |
|
set option+=value |
|
36 |
|
set option-=value |
|
37 |
|
Boolean options can be set, inverted or unset with |
|
38 |
|
set option |
|
39 |
|
set nooption |
|
40 |
|
set invoption |
|
41 |
|
set option! |
|
42 |
|
Option values can be queried with |
|
43 |
|
set option? |
|
44 |
|
|
|
45 |
|
#### Changing colors |
|
46 |
|
Background colors are black, red, green, brown, blue, magenta, cyan and gray. |
|
47 |
|
Foreground colors are as background colors, in addition to |
|
48 |
|
brightred, brightgreen, yellow, brightblue, brightmagenta, brightcyan, white. |
|
49 |
|
|
|
50 |
|
Set colors with |
|
51 |
|
set color.name=foreground [background] |
|
52 |
|
|
|
53 |
|
### Copying |
|
54 |
|
This program is free software: you can redistribute it and/or modify |
|
55 |
|
it under the terms of the GNU General Public License as published by |
|
56 |
|
the Free Software Foundation, either version 3 of the License, or |
|
57 |
|
(at your option) any later version. |
|
58 |
|
|
|
59 |
|
See the COPYING file for more information. |
|
60 |
|
|
|
61 |
|
### Authors |
|
62 |
|
Written by [Kim Tore Jensen](http://www.incendio.no). Copyright (c) 2006-2011. |
|
63 |
|
|
|
64 |
|
A big thanks to contributors [Bart Nagel](https://github.com/tremby) |
|
65 |
|
and [Murilo Pereira](https://github.com/mpereira). |
|