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

master
unK 18 years ago
parent d0e521de98
commit 3291d2fe36
  1. 2
      doc/Makefile.am
  2. 8
      doc/config
  3. 5
      doc/keys
  4. 8
      src/settings.cpp

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

@ -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 #####
#

@ -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'

@ -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}";

Loading…
Cancel
Save