refactor!: sway persistent workspaces config name rename
parent
44ac6b8044
commit
4a6c1269fb
|
@ -60,7 +60,7 @@ Addressed by *sway/workspaces*
|
||||||
default: false ++
|
default: false ++
|
||||||
If set to true. Only focused workspaces will be shown.
|
If set to true. Only focused workspaces will be shown.
|
||||||
|
|
||||||
*persistent_workspaces*: ++
|
*persistent-workspaces*: ++
|
||||||
typeof: json (see below) ++
|
typeof: json (see below) ++
|
||||||
default: empty ++
|
default: empty ++
|
||||||
Lists workspaces that should always be shown, even when non existent
|
Lists workspaces that should always be shown, even when non existent
|
||||||
|
@ -112,7 +112,7 @@ an empty list denoting all outputs.
|
||||||
|
|
||||||
```
|
```
|
||||||
"sway/workspaces": {
|
"sway/workspaces": {
|
||||||
"persistent_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
|
||||||
|
|
|
@ -80,8 +80,8 @@ void Workspaces::onCmd(const struct Ipc::ipc_response &res) {
|
||||||
});
|
});
|
||||||
|
|
||||||
// adding persistent workspaces (as per the config file)
|
// adding persistent workspaces (as per the config file)
|
||||||
if (config_["persistent_workspaces"].isObject()) {
|
if (config_["persistent-workspaces"].isObject()) {
|
||||||
const Json::Value &p_workspaces = config_["persistent_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) {
|
||||||
|
|
Loading…
Reference in New Issue