change place of storing config files to ~/.ncmpcpp folder

This commit is contained in:
unK
2008-09-28 22:44:40 +02:00
parent d0e521de98
commit 3291d2fe36
4 changed files with 11 additions and 12 deletions

View File

@@ -1,3 +1,3 @@
docdir = $(prefix)/share/doc/$(PACKAGE)
doc_DATA = ncmpcpp_keys ncmpcpprc
doc_DATA = config keys
EXTRA_DIST = $(doc_DATA)

View File

@@ -1,7 +1,7 @@
#################################################
## this is example configuration file, copy it ##
## to ~/.ncmpcpprc and set up your preferences ##
#################################################
####################################################
## this is example configuration file, copy it to ##
## ~/.ncmpcpp/config and set up your preferences ##
####################################################
#
##### connection settings #####
#

View File

@@ -1,6 +1,6 @@
#####################################################
## this is example key configuration file, copy it ##
## to ~/.ncmpcpp_keys and set up your preferences ##
## to ~/.ncmpcpp/keys and set up your preferences ##
#####################################################
##
## Tips:
@@ -9,8 +9,7 @@
## - a command can be disabled by binding it to 0
##
## Note: First bind of volume_up/down
## will be used to switch between columns
## on media library screen.
## will be used to switch between columns.
##
#
#key_up = 259 'k'

View File

@@ -20,8 +20,8 @@
#include "settings.h"
const string config_file = home_folder + "/.ncmpcpprc";
const string keys_config_file = home_folder + "/.ncmpcpp_keys";
const string config_file = home_folder + "/.ncmpcpp/config";
const string keys_config_file = home_folder + "/.ncmpcpp/keys";
using std::ifstream;
@@ -153,8 +153,8 @@ void DefaultKeys(ncmpcpp_keys &keys)
void DefaultConfiguration(ncmpcpp_config &conf)
{
conf.mpd_music_dir = "/var/lib/mpd/music/";
conf.song_list_format = "{[.green](%l)[/green] }{%a - }{%t}|{[.white]%f[/white]}";
conf.song_columns_list_format = "(8)[green]{l} (28)[cyan]{a} (28){b} (50)[red]{t}";
conf.song_list_format = "{%a - }{%t}|{[.white]%f[/white]}%r{[.green](%l)[/green]}";
conf.song_columns_list_format = "(8)[green]{l} (25)[cyan]{a} (40){t} (30)[red]{b}";
conf.song_status_format = "{(%l) }{%a - }{%t}|{%f}";
conf.song_window_title_format = "{%a - }{%t}|{%f}";
conf.song_library_format = "{%n - }{%t}|{%f}";