screen_switcher between current and last screen
Setting the new config variable "screen_switcher_browser_only" to "no" will make the "key_screen_switcher" key switch between the current and the last used screen, sort of like the Alt+Tab window switching mechanism in many window managers. This (intendedly) works only for the "main" screens (playlist, browser, media library, etc.) and not for info/lyrics/server info. Those screens can be closed with the screen_switcher key, but the will not be remembered. indentation correction in config
This commit is contained in:
committed by
Andrzej Rybczak
parent
64f64895ac
commit
b504b346af
@@ -294,6 +294,7 @@ void DefaultConfiguration(ncmpcpp_config &conf)
|
||||
conf.header_text_scrolling = true;
|
||||
conf.statusbar_visibility = true;
|
||||
conf.centered_cursor = false;
|
||||
conf.screen_switcher_browser_only = true;
|
||||
conf.autocenter_mode = false;
|
||||
conf.wrapped_search = true;
|
||||
conf.space_selects = false;
|
||||
@@ -754,6 +755,10 @@ void ReadConfiguration(ncmpcpp_config &conf)
|
||||
{
|
||||
conf.statusbar_visibility = v == "yes";
|
||||
}
|
||||
else if (cl.find("screen_switcher_browser_only") != std::string::npos)
|
||||
{
|
||||
conf.screen_switcher_browser_only = v == "yes";
|
||||
}
|
||||
else if (cl.find("autocenter_mode") != std::string::npos)
|
||||
{
|
||||
conf.autocenter_mode = v == "yes";
|
||||
|
||||
Reference in New Issue
Block a user