refactor!: hyprland persistent workspaces config option name standardization

This commit is contained in:
khaneliman 2023-09-05 13:10:34 -05:00 committed by Austin Horstman
parent 80de22a159
commit 44ac6b8044
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ Additional to workspace name matching, the following *format-icons* can be set.
"active": "",
"default": ""
},
"persistent_workspaces": {
"persistent-workspaces": {
"*": 5, // 5 workspaces by default on every monitor
"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": "",
"default": ""
},
"persistent_workspaces": {
"persistent-workspaces": {
"*": [ 2,3,4,5 ], // 2-5 on every monitor
"HDMI-A-1": [ 1 ] // but only workspace 1 on HDMI-A-1
}

View File

@ -231,8 +231,8 @@ void Workspaces::remove_workspace(std::string name) {
}
void Workspaces::fill_persistent_workspaces() {
if (config_["persistent_workspaces"].isObject()) {
const Json::Value persistent_workspaces = config_["persistent_workspaces"];
if (config_["persistent-workspaces"].isObject()) {
const Json::Value persistent_workspaces = config_["persistent-workspaces"];
const std::vector<std::string> keys = persistent_workspaces.getMemberNames();
for (const std::string &key : keys) {