diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sway/commands.c b/sway/commands.c index 3c312ae8..08d3f09d 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -103,7 +103,7 @@ static sway_cmd bar_cmd_id; | |||
103 | static sway_cmd bar_cmd_position; | 103 | static sway_cmd bar_cmd_position; |
104 | static sway_cmd bar_cmd_separator_symbol; | 104 | static sway_cmd bar_cmd_separator_symbol; |
105 | static sway_cmd bar_cmd_status_command; | 105 | static sway_cmd bar_cmd_status_command; |
106 | static sway_cmd bar_cmd_plaintext_markup; | 106 | static sway_cmd bar_cmd_pango_markup; |
107 | static sway_cmd bar_cmd_strip_workspace_numbers; | 107 | static sway_cmd bar_cmd_strip_workspace_numbers; |
108 | static sway_cmd bar_cmd_swaybar_command; | 108 | static sway_cmd bar_cmd_swaybar_command; |
109 | static sway_cmd bar_cmd_tray_output; | 109 | static sway_cmd bar_cmd_tray_output; |
@@ -2758,24 +2758,24 @@ static struct cmd_results *bar_cmd_status_command(int argc, char **argv) { | |||
2758 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 2758 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
2759 | } | 2759 | } |
2760 | 2760 | ||
2761 | static struct cmd_results *bar_cmd_plaintext_markup(int argc, char **argv) { | 2761 | static struct cmd_results *bar_cmd_pango_markup(int argc, char **argv) { |
2762 | struct cmd_results *error = NULL; | 2762 | struct cmd_results *error = NULL; |
2763 | if ((error = checkarg(argc, "plaintext_markup", EXPECTED_EQUAL_TO, 1))) { | 2763 | if ((error = checkarg(argc, "pango_markup", EXPECTED_EQUAL_TO, 1))) { |
2764 | return error; | 2764 | return error; |
2765 | } | 2765 | } |
2766 | 2766 | ||
2767 | if (!config->current_bar) { | 2767 | if (!config->current_bar) { |
2768 | return cmd_results_new(CMD_FAILURE, "plaintext_markup", "No bar defined."); | 2768 | return cmd_results_new(CMD_FAILURE, "pango_markup", "No bar defined."); |
2769 | } | 2769 | } |
2770 | 2770 | ||
2771 | if (strcasecmp("pango", argv[0]) == 0) { | 2771 | if (strcasecmp("pango", argv[0]) == 0) { |
2772 | config->current_bar->plaintext_markup = true; | 2772 | config->current_bar->pango_markup = true; |
2773 | sway_log(L_DEBUG, "Enabling pango markup for bar: %s", config->current_bar->id); | 2773 | sway_log(L_DEBUG, "Enabling pango markup for bar: %s", config->current_bar->id); |
2774 | } else if (strcasecmp("none", argv[0]) == 0) { | 2774 | } else if (strcasecmp("none", argv[0]) == 0) { |
2775 | config->current_bar->plaintext_markup = false; | 2775 | config->current_bar->pango_markup = false; |
2776 | sway_log(L_DEBUG, "Disabling pango markup for bar: %s", config->current_bar->id); | 2776 | sway_log(L_DEBUG, "Disabling pango markup for bar: %s", config->current_bar->id); |
2777 | } else { | 2777 | } else { |
2778 | error = cmd_results_new(CMD_INVALID, "plaintext_markup", "Invalid value %s", argv[0]); | 2778 | error = cmd_results_new(CMD_INVALID, "pango_markup", "Invalid value %s", argv[0]); |
2779 | return error; | 2779 | return error; |
2780 | } | 2780 | } |
2781 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 2781 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
@@ -2885,7 +2885,7 @@ static struct cmd_handler bar_handlers[] = { | |||
2885 | { "mode", bar_cmd_mode }, | 2885 | { "mode", bar_cmd_mode }, |
2886 | { "modifier", bar_cmd_modifier }, | 2886 | { "modifier", bar_cmd_modifier }, |
2887 | { "output", bar_cmd_output }, | 2887 | { "output", bar_cmd_output }, |
2888 | { "plaintext_markup", bar_cmd_plaintext_markup }, | 2888 | { "pango_markup", bar_cmd_pango_markup }, |
2889 | { "position", bar_cmd_position }, | 2889 | { "position", bar_cmd_position }, |
2890 | { "separator_symbol", bar_cmd_separator_symbol }, | 2890 | { "separator_symbol", bar_cmd_separator_symbol }, |
2891 | { "status_command", bar_cmd_status_command }, | 2891 | { "status_command", bar_cmd_status_command }, |