+ if (strcasecmp(output_str, "current") == 0) {
+ return get_output_for_con(focused);
+ } else if (strcasecmp(output_str, "left") == 0) {
+ return get_output_next_wrap(D_LEFT, current_output);
+ } else if (strcasecmp(output_str, "right") == 0) {
+ return get_output_next_wrap(D_RIGHT, current_output);
+ } else if (strcasecmp(output_str, "up") == 0) {
+ return get_output_next_wrap(D_UP, current_output);
+ } else if (strcasecmp(output_str, "down") == 0) {
+ return get_output_next_wrap(D_DOWN, current_output);
+ }
+
+ return get_output_by_name(output_str, true);
+}