Fix typo: persistant -> persistent

pull/446/head
Birger Schacht 2019-08-31 19:57:44 +02:00
parent 19d7bd4ecf
commit 2646390e28
2 changed files with 9 additions and 9 deletions

View File

@ -76,15 +76,15 @@ Additional to workspace name matching, the following *format-icons* can be set.
- *urgent*: Will be shown, when workspace is flagged as urgent - *urgent*: Will be shown, when workspace is flagged as urgent
- *focused*: Will be shown, when workspace is focused - *focused*: Will be shown, when workspace is focused
# PERSISTANT WORKSPACES # PERSISTENT WORKSPACES
Each entry of *persistant_workspace* names a workspace that should always be shown. Each entry of *persistent_workspace* names a workspace that should always be shown.
Associated with that value is a list of outputs indicating *where* the workspace should be shown, Associated with that value is a list of outputs indicating *where* the workspace should be shown,
an empty list denoting all outputs. an empty list denoting all outputs.
``` ```
"sway/workspaces": { "sway/workspaces": {
"persistant_workspaces": { "persistent_workspaces": {
"3": [], // Always show a workspace with name '3', on all outputs if it does not exists "3": [], // Always show a workspace with name '3', on all outputs if it does not exists
"4": ["eDP-1"], // Always show a workspace with name '4', on output 'eDP-1' if it does not exists "4": ["eDP-1"], // Always show a workspace with name '4', on output 'eDP-1' if it does not exists
"5": ["eDP-1", "DP-2"] // Always show a workspace with name '5', on outputs 'eDP-1' and 'DP-2' if it does not exists "5": ["eDP-1", "DP-2"] // Always show a workspace with name '5', on outputs 'eDP-1' and 'DP-2' if it does not exists
@ -120,4 +120,4 @@ n.b.: the list of outputs can be obtained from command line using *swaymsg -t ge
- *#workspaces button.visible* - *#workspaces button.visible*
- *#workspaces button.focused* - *#workspaces button.focused*
- *#workspaces button.urgent* - *#workspaces button.urgent*
- *#workspaces button.persistant* - *#workspaces button.persistent*

View File

@ -49,9 +49,9 @@ void Workspaces::onCmd(const struct Ipc::ipc_response &res) {
: true; : true;
}); });
// adding persistant workspaces (as per the config file) // adding persistent workspaces (as per the config file)
if (config_["persistant_workspaces"].isObject()) { if (config_["persistent_workspaces"].isObject()) {
const Json::Value & p_workspaces = config_["persistant_workspaces"]; const Json::Value & p_workspaces = config_["persistent_workspaces"];
const std::vector<std::string> p_workspaces_names = p_workspaces.getMemberNames(); const std::vector<std::string> p_workspaces_names = p_workspaces.getMemberNames();
for (const std::string &p_w_name : p_workspaces_names) { for (const std::string &p_w_name : p_workspaces_names) {
@ -151,9 +151,9 @@ auto Workspaces::update() -> void {
button.get_style_context()->remove_class("urgent"); button.get_style_context()->remove_class("urgent");
} }
if ((*it)["target_output"].isString()) { if ((*it)["target_output"].isString()) {
button.get_style_context()->add_class("persistant"); button.get_style_context()->add_class("persistent");
} else { } else {
button.get_style_context()->remove_class("persistant"); button.get_style_context()->remove_class("persistent");
} }
if (needReorder) { if (needReorder) {
box_.reorder_child(button, it - workspaces_.begin()); box_.reorder_child(button, it - workspaces_.begin());