Top Level Namespace
Included Modules
Extended Modules
Defined in:
Constant Summary
-
CONFIG =
if File.exists?(CONFIG_FILE)
begin
Peridot::Config.parse(File.read(CONFIG_FILE))
rescue e : YAML::ParseException
p(e.message)
exit(1)
end
else
Peridot::Config.parse(DEFAULT_CONFIG)
end
-
CONFIG_DIR =
(ENV.has_key?("XDG_CONFIG_HOME")) ? ENV["XDG_CONFIG_HOME"] + "/peridot" : ENV["HOME"] + "/.config/peridot"
-
CONFIG_FILE =
CONFIG_DIR + "/config.yml"
-
DEFAULT_CONFIG =
"---\nkeys:\n focus_primary_window: \"1\"\n focus_library_window: \"2\"\n focus_playlist_window: \"3\"\n move_down: \"j\"\n move_up: \"k\"\n previous: \"<\"\n next: \">\"\n toggle_pause: \"p\"\n stop: \"s\"\n toggle_repeat: \"r\"\n toggle_random: \"z\"\n toggle_single: \"y\"\n toggle_consume: \"R\"\n volume_up: \"+\"\n volume_down: \"-\"\n seek_forward: \"f\"\n seek_backward: \"b\"\n queue_remove: \"D\"\n queue_clear: \"c\"\n filter: \"l\"\n unfilter: \"h\"\n\ncolors:\n foreground: 8\n background: 0\n foreground_select: 3\n background_select: 0\n\nserver:\n host: \"localhost\"\n port: 6600"
-
LOG_FILE =
CONFIG_DIR + "/debug.log"
Method Summary
Method Detail