diff --git a/README.md b/README.md index 5a5d962..c19bd42 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,8 @@ home you plug in an external monitor, and you want to save that configuration as ``` # With only the laptop screen (no external monitors) $ umonitor --save home -Unknown profile* ---------------------------------- Profile home saved! + # Plug in external monitor # Setup your desired configuration @@ -45,10 +44,8 @@ $ xrandr --output eDP1 --mode 1600x900 --pos 0x0 # Save the current configuration into a profile $ umonitor --save docked -home -Unknown profile* ---------------------------------- Profile docked saved! + # Begin autodetecting changes in monitor $ umonitor --listen home @@ -84,19 +81,22 @@ I think a couple people are using this program. Give me some feedback! * Rotation * Daemonizes when called with `--listen` * Prevents saving of duplicate profiles +* Valgrind clean Future improvements: + + + -* Use valgrind to check for memory errors * Bugs: * Tell me! Run umonitor with the `--verbose` flag to get debugging output - * After load the outputs display extra return character + * After load the output displays an extra unknown character I'm open for any feature requests! diff --git a/src/autoload.c b/src/autoload.c index df246d3..51e56ce 100644 --- a/src/autoload.c +++ b/src/autoload.c @@ -92,7 +92,7 @@ static void get_profile_found(autoload_class * self, int * profile_found, const /*! \brief Find which profile matches the current setup and conditionally load it -Also prints out the list of configurations along with the current configuration. +Also conditionally prints out the list of configurations along with the current configuration. The current configuration is either the current configuration (applying no settings), or the newly loaded configuration. */ diff --git a/src/umonitor.c b/src/umonitor.c index eb3ae15..2bf96f1 100644 --- a/src/umonitor.c +++ b/src/umonitor.c @@ -269,6 +269,9 @@ static void start_load(char *profile_name) load_o->load_profile(load_o, profile_group, 0); load_class_destructor(load_o); + print_state("Profile %s loaded!\n", profile_name); + print_state("---------------------------------\n"); + } static void start_delete_and_save(save_or_delete_t save_or_delete, @@ -338,7 +341,7 @@ static void start_autoload() if (!config_read_file(&config, CONFIG_FILE)) exit(NO_CONF_FILE_FOUND); autoload_constructor(&autoload_o, &screen_o, &config); - autoload_o->find_profile_and_load(autoload_o, LOAD, NO_PRINT); + autoload_o->find_profile_and_load(autoload_o, LOAD, PRINT); autoload_destructor(autoload_o); }