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) docdir = $(prefix)/share/doc/$(PACKAGE)
doc_DATA = ncmpcpp_keys ncmpcpprc doc_DATA = config keys
EXTRA_DIST = $(doc_DATA) EXTRA_DIST = $(doc_DATA)

View File

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

View File

@@ -1,6 +1,6 @@
##################################################### #####################################################
## this is example key configuration file, copy it ## ## 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: ## Tips:
@@ -9,8 +9,7 @@
## - a command can be disabled by binding it to 0 ## - a command can be disabled by binding it to 0
## ##
## Note: First bind of volume_up/down ## Note: First bind of volume_up/down
## will be used to switch between columns ## will be used to switch between columns.
## on media library screen.
## ##
# #
#key_up = 259 'k' #key_up = 259 'k'

View File

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