diff --git a/terminatorlib/plugins/custom_commands.py b/terminatorlib/plugins/custom_commands.py index 99d45ac5..3733a501 100644 --- a/terminatorlib/plugins/custom_commands.py +++ b/terminatorlib/plugins/custom_commands.py @@ -73,7 +73,9 @@ def __init__( self): name = s["name"] name_parse = s.get("name_parse", "True") command = s["command"] - enabled = s["enabled"] and s["enabled"] or False + enabled = s.get("enabled", False) + if isinstance(enabled, str): + enabled = enabled.lower() in ("true", "1", "yes") if "position" in s: self.cmd_list[int(s["position"])] = {'enabled' : enabled, 'name' : name,