[taffybar] Add configuration for jay-lenovo

This commit is contained in:
Ivan Malison 2023-04-21 11:19:10 -06:00
parent 9396872a71
commit 5269bfa9e2

View File

@ -201,7 +201,7 @@ main = do
laptopEndWidgets = batteryWidgets ++ baseEndWidgets ++ [ myMpris ]
baseConfig =
defaultSimpleTaffyConfig
{ startWidgets = [myWorkspaces, myLayout, myWindows]
{ startWidgets = [ myWorkspaces, myLayout, myWindows ]
, endWidgets = fullEndWidgets
, barPosition = Top
, widgetSpacing = 0
@ -209,6 +209,7 @@ main = do
, barHeight = ScreenRatio $ 1/27
, cssPaths = cssFiles
, startupHook = void $ setCMCAPIKey "f9e66366-9d42-4c6e-8d40-4194a0aaa329"
, centerWidgets = [ myClock ]
}
selectedConfig =
fromMaybe baseConfig $ lookup hostName
@ -232,6 +233,9 @@ main = do
, startWidgets = [myWorkspaces, myLayout]
}
)
, ( "jay-lenovo"
, baseConfig { endWidgets = laptopEndWidgets }
)
]
simpleTaffyConfig = selectedConfig
{ centerWidgets = [ myClock ]