refactor!: hyprland persistent workspaces config option name standardization
This commit is contained in:
parent
80de22a159
commit
44ac6b8044
|
@ -69,7 +69,7 @@ Additional to workspace name matching, the following *format-icons* can be set.
|
||||||
"active": "",
|
"active": "",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"persistent_workspaces": {
|
"persistent-workspaces": {
|
||||||
"*": 5, // 5 workspaces by default on every monitor
|
"*": 5, // 5 workspaces by default on every monitor
|
||||||
"HDMI-A-1": 3 // but only three on HDMI-A-1
|
"HDMI-A-1": 3 // but only three on HDMI-A-1
|
||||||
}
|
}
|
||||||
|
@ -88,7 +88,7 @@ Additional to workspace name matching, the following *format-icons* can be set.
|
||||||
"active": "",
|
"active": "",
|
||||||
"default": ""
|
"default": ""
|
||||||
},
|
},
|
||||||
"persistent_workspaces": {
|
"persistent-workspaces": {
|
||||||
"*": [ 2,3,4,5 ], // 2-5 on every monitor
|
"*": [ 2,3,4,5 ], // 2-5 on every monitor
|
||||||
"HDMI-A-1": [ 1 ] // but only workspace 1 on HDMI-A-1
|
"HDMI-A-1": [ 1 ] // but only workspace 1 on HDMI-A-1
|
||||||
}
|
}
|
||||||
|
|
|
@ -231,8 +231,8 @@ void Workspaces::remove_workspace(std::string name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspaces::fill_persistent_workspaces() {
|
void Workspaces::fill_persistent_workspaces() {
|
||||||
if (config_["persistent_workspaces"].isObject()) {
|
if (config_["persistent-workspaces"].isObject()) {
|
||||||
const Json::Value persistent_workspaces = config_["persistent_workspaces"];
|
const Json::Value persistent_workspaces = config_["persistent-workspaces"];
|
||||||
const std::vector<std::string> keys = persistent_workspaces.getMemberNames();
|
const std::vector<std::string> keys = persistent_workspaces.getMemberNames();
|
||||||
|
|
||||||
for (const std::string &key : keys) {
|
for (const std::string &key : keys) {
|
||||||
|
|
Loading…
Reference in New Issue