[modules] add a module "keys" that shows whether a key is pressed

also, add backend functionality to hide individual widgets of a module.
This commit is contained in:
tobi-wan-kenobi 2021-03-13 13:17:20 +01:00
parent 7d0d1455c8
commit 8d88b23947
4 changed files with 46 additions and 28 deletions

View file

@ -44,29 +44,44 @@
"bg": "#b8bb26"
}
},
"bluetooth": {
"ON": {
"fg": "#1d2021",
"bg": "#b8bb26"
}
},
"git": {
"modified": { "bg": "#458588" },
"deleted": { "bg": "#9d0006" },
"new": { "bg": "#b16286" }
},
"pomodoro": {
"paused": {
"fg": "#1d2021",
"bg": "#d79921"
},
"work": {
"fg": "#1d2021",
"bg": "#b8bb26"
},
"break": {
"fg": "#002b36",
"bg": "#859900"
}
}
"bluetooth": {
"ON": {
"fg": "#1d2021",
"bg": "#b8bb26"
}
},
"git": {
"modified": { "bg": "#458588" },
"deleted": { "bg": "#9d0006" },
"new": { "bg": "#b16286" }
},
"pomodoro": {
"paused": {
"fg": "#1d2021",
"bg": "#d79921"
},
"work": {
"fg": "#1d2021",
"bg": "#b8bb26"
},
"break": {
"fg": "#002b36",
"bg": "#859900"
}
},
"keys": {
"Key.cmd": {
"bg": "#8ec07c",
"full_text": "***"
},
"Key.shift": {
"bg": "#fabd2f"
},
"Key.ctrl": {
"bg": "#83a598"
},
"Key.alt": {
"bg": "#f28019"
}
}
}