[core] Refactor engine
This is going to be a bit more comprehensive than anticipated. In order to cleanly refactor the core and the engine, basically start from scratch with the implementation. Goals: * Test coverage * Maintain backwards compatibility with module interface as much as possible (but still make modules easier to code) * Simplicity see #23
This commit is contained in:
parent
20858991b9
commit
a8a6c9bba2
72 changed files with 19 additions and 2155 deletions
|
@ -1,119 +0,0 @@
|
|||
{
|
||||
"memory": {
|
||||
"prefix": "ram"
|
||||
},
|
||||
"cpu": {
|
||||
"prefix": "cpu"
|
||||
},
|
||||
"disk": {
|
||||
"prefix": "hdd"
|
||||
},
|
||||
"dnf": {
|
||||
"prefix": "dnf"
|
||||
},
|
||||
"brightness": {
|
||||
"prefix": "o"
|
||||
},
|
||||
"cmus": {
|
||||
"states": {
|
||||
"playing": {
|
||||
"prefix": ">"
|
||||
},
|
||||
"paused": {
|
||||
"prefix": "||"
|
||||
},
|
||||
"stopped": {
|
||||
"prefix": "[]"
|
||||
}
|
||||
},
|
||||
"prev": {
|
||||
"prefix": "|<"
|
||||
},
|
||||
"next": {
|
||||
"prefix": ">|"
|
||||
},
|
||||
"shuffle": {
|
||||
"states": { "on": { "prefix": "S" }, "off": { "prefix": "[s]" } }
|
||||
},
|
||||
"repeat": {
|
||||
"states": { "on": { "prefix": "R" }, "off": { "prefix": "[r]" } }
|
||||
}
|
||||
},
|
||||
"pasink": {
|
||||
"states": {
|
||||
"muted": {
|
||||
"prefix": "audio(mute)"
|
||||
},
|
||||
"unmuted": {
|
||||
"prefix": "audio"
|
||||
}
|
||||
}
|
||||
},
|
||||
"pasource": {
|
||||
"states": {
|
||||
"muted": {
|
||||
"prefix": "mic(mute)"
|
||||
},
|
||||
"unmuted": {
|
||||
"prefix": "mic"
|
||||
}
|
||||
}
|
||||
},
|
||||
"nic": {
|
||||
"states": {
|
||||
"wireless-up": {
|
||||
"prefix": "wifi"
|
||||
},
|
||||
"wireless-down": {
|
||||
"prefix": "wifi"
|
||||
},
|
||||
"wired-up": {
|
||||
"prefix": "lan"
|
||||
},
|
||||
"wired-down": {
|
||||
"prefix": "lan"
|
||||
},
|
||||
"tunnel-up": {
|
||||
"prefix": "tun"
|
||||
},
|
||||
"tunnel-down": {
|
||||
"prefix": "tun"
|
||||
}
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"charged": {
|
||||
"suffix": "full"
|
||||
},
|
||||
"charging": {
|
||||
"suffix": "chr"
|
||||
},
|
||||
"AC": {
|
||||
"suffix": "ac"
|
||||
},
|
||||
"discharging-10": {
|
||||
"prefix": "!",
|
||||
"suffix": "dis"
|
||||
},
|
||||
"discharging-25": {
|
||||
"suffix": "dis"
|
||||
},
|
||||
"discharging-50": {
|
||||
"suffix": "dis"
|
||||
},
|
||||
"discharging-80": {
|
||||
"suffix": "dis"
|
||||
},
|
||||
"discharging-100": {
|
||||
"suffix": "dis"
|
||||
}
|
||||
}
|
||||
},
|
||||
"caffeine": {
|
||||
"states": { "activated": {"prefix": "caf-on" }, "deactivated": { "prefix": "caf-off " } }
|
||||
},
|
||||
"xrandr": {
|
||||
"states": { "on": { "prefix": " off "}, "off": { "prefix": " on "} }
|
||||
}
|
||||
}
|
|
@ -1,134 +0,0 @@
|
|||
{
|
||||
"defaults": {
|
||||
"separator": ""
|
||||
},
|
||||
"date": {
|
||||
"prefix": ""
|
||||
},
|
||||
"time": {
|
||||
"prefix": ""
|
||||
},
|
||||
"memory": {
|
||||
"prefix": ""
|
||||
},
|
||||
"cpu": {
|
||||
"prefix": ""
|
||||
},
|
||||
"disk": {
|
||||
"prefix": ""
|
||||
},
|
||||
"dnf": {
|
||||
"prefix": ""
|
||||
},
|
||||
"brightness": {
|
||||
"prefix": ""
|
||||
},
|
||||
"cmus": {
|
||||
"states": {
|
||||
"playing": {
|
||||
"prefix": ""
|
||||
},
|
||||
"paused": {
|
||||
"prefix": ""
|
||||
},
|
||||
"stopped": {
|
||||
"prefix": ""
|
||||
}
|
||||
},
|
||||
"prev": {
|
||||
"prefix": ""
|
||||
},
|
||||
"next": {
|
||||
"prefix": ""
|
||||
},
|
||||
"shuffle": {
|
||||
"states": { "on": { "prefix": "" }, "off": { "prefix": "" } }
|
||||
},
|
||||
"repeat": {
|
||||
"states": { "on": { "prefix": "" }, "off": { "prefix": "" } }
|
||||
}
|
||||
},
|
||||
"pasink": {
|
||||
"states": {
|
||||
"muted": {
|
||||
"prefix": ""
|
||||
},
|
||||
"unmuted": {
|
||||
"prefix": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"pasource": {
|
||||
"states": {
|
||||
"muted": {
|
||||
"prefix": ""
|
||||
},
|
||||
"unmuted": {
|
||||
"prefix": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"nic": {
|
||||
"states": {
|
||||
"wireless-up": {
|
||||
"prefix": ""
|
||||
},
|
||||
"wireless-down": {
|
||||
"prefix": ""
|
||||
},
|
||||
"wired-up": {
|
||||
"prefix": ""
|
||||
},
|
||||
"wired-down": {
|
||||
"prefix": ""
|
||||
},
|
||||
"tunnel-up": {
|
||||
"prefix": ""
|
||||
},
|
||||
"tunnel-down": {
|
||||
"prefix": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"charged": {
|
||||
"prefix": "",
|
||||
"suffix": ""
|
||||
},
|
||||
"AC": {
|
||||
"suffix": ""
|
||||
},
|
||||
"charging": {
|
||||
"prefix": [ "", "", "", "", "" ],
|
||||
"suffix": ""
|
||||
},
|
||||
"discharging-10": {
|
||||
"prefix": "",
|
||||
"suffix": ""
|
||||
},
|
||||
"discharging-25": {
|
||||
"prefix": "",
|
||||
"suffix": ""
|
||||
},
|
||||
"discharging-50": {
|
||||
"prefix": "",
|
||||
"suffix": ""
|
||||
},
|
||||
"discharging-80": {
|
||||
"prefix": "",
|
||||
"suffix": ""
|
||||
},
|
||||
"discharging-100": {
|
||||
"prefix": "",
|
||||
"suffix": ""
|
||||
}
|
||||
}
|
||||
},
|
||||
"caffeine": {
|
||||
"states": { "activated": {"prefix": " " }, "deactivated": { "prefix": " " } }
|
||||
},
|
||||
"xrandr": {
|
||||
"states": { "on": { "prefix": " "}, "off": { "prefix": " "} }
|
||||
}
|
||||
}
|
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"memory": {
|
||||
"prefix": " "
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue