From 07772b1a60bafc2e59132d5ca3642b138d5a935a Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 10 May 2019 11:25:38 -0700 Subject: [PATCH] [taffybar] Add battery widget for razer blade --- dotfiles/config/taffybar/taffybar.hs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dotfiles/config/taffybar/taffybar.hs b/dotfiles/config/taffybar/taffybar.hs index faa44348..dfd84388 100644 --- a/dotfiles/config/taffybar/taffybar.hs +++ b/dotfiles/config/taffybar/taffybar.hs @@ -158,6 +158,17 @@ main = do , textClockNewWith defaultClockConfig , sniTrayNew ] + longLaptopWidgets = + map (>>= buildContentsBox) + [ batteryIconNew + , textBatteryNew "$percentage$%" + , textClockNewWith defaultClockConfig + , sniTrayNew + , cpuGraph + , memoryGraph + , networkGraphNew netCfg Nothing + , mpris2New + ] baseConfig = defaultSimpleTaffyConfig { startWidgets = @@ -177,7 +188,7 @@ main = do , baseConfig { endWidgets = fullEndWidgets, barHeight = 42 } ) , ( "ivanm-dfinity-razr" - , baseConfig { endWidgets = fullEndWidgets, barHeight = 42 } + , baseConfig { endWidgets = longLaptopWidgets, barHeight = 42 } ) ] simpleTaffyConfig = selectedConfig