From e7300f03dcf0af7d968977000a10e8a8befdb60a Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Wed, 28 Feb 2024 12:37:51 -0700 Subject: Huge refactor for the Haskell code. This adds new layout configuration, preparing for actually using the layouts. This also restructures the code and tries to keep code interfacing with the foreign structures together and rename them to more sensible names. --- src/Config.hs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'src/Config.hs') diff --git a/src/Config.hs b/src/Config.hs index 818150e..e49a869 100644 --- a/src/Config.hs +++ b/src/Config.hs @@ -1,6 +1,14 @@ -module Config (wetterhorn) where +module Config where -import Wetterhorn.Core +import Wetterhorn.Core.W +import Wetterhorn.Layout.Full +import Wetterhorn.Layout.Combine -wetterhorn :: IO Wetterhorn -wetterhorn = initWetterhorn defaultConfig +config = defaultConfig { + keyHook = wio . print, + surfaceHook = wio . print, + layout = WindowLayout Full +} + +-- wetterhorn :: IO Wetterhorn +-- wetterhorn = initWetterhorn defaultConfig -- cgit