aboutsummaryrefslogtreecommitdiff
path: root/lib/Daffm/Types.hs
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-10-05 00:43:39 +0530
committerAkshay Nair <phenax5@gmail.com>2025-10-05 00:45:40 +0530
commit4582ce60603c57c6b75b73d590d93f443acda96a (patch)
tree2d6c0dde60443fdd87356a3233a9d2cd92046ef3 /lib/Daffm/Types.hs
parenta302dfc2aabda53446fb38e035e61ae91b28f84a (diff)
downloaddaffm-4582ce60603c57c6b75b73d590d93f443acda96a.tar.gz
daffm-4582ce60603c57c6b75b73d590d93f443acda96a.zip
Add configuration (keymap) loading from toml file
Diffstat (limited to 'lib/Daffm/Types.hs')
-rw-r--r--lib/Daffm/Types.hs6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Daffm/Types.hs b/lib/Daffm/Types.hs
index 953e3a8..7264673 100644
--- a/lib/Daffm/Types.hs
+++ b/lib/Daffm/Types.hs
@@ -73,3 +73,9 @@ type Key = V.Key
type Keymap = Map.Map [Key] Command
type KeySequence = [Key]
+
+data Configuration = Configuration
+ { configKeymap :: !Keymap,
+ configTheme :: !(Map.Map Text.Text Text.Text)
+ }
+ deriving (Show)