From cfac4d192863386faaf4bb8b67257e673e96db7e Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 28 Apr 2018 02:01:48 -0700 Subject: [PATCH] [taffybar] github tweaks --- dotfiles/config/taffybar/taffybar | 2 +- dotfiles/config/taffybar/taffybar.hs | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/dotfiles/config/taffybar/taffybar b/dotfiles/config/taffybar/taffybar index 553c634f..7ecfcfc1 160000 --- a/dotfiles/config/taffybar/taffybar +++ b/dotfiles/config/taffybar/taffybar @@ -1 +1 @@ -Subproject commit 553c634f36cc66c9d789d789ee9e4e2f81d5e6d5 +Subproject commit 7ecfcfc1018fa1380656be9cbed908ff05e5c481 diff --git a/dotfiles/config/taffybar/taffybar.hs b/dotfiles/config/taffybar/taffybar.hs index f9933001..19082a1c 100644 --- a/dotfiles/config/taffybar/taffybar.hs +++ b/dotfiles/config/taffybar/taffybar.hs @@ -131,9 +131,7 @@ logDebug = do github = do Right (token, _) <- passGet "github-token" - githubNotificationsNew GitHubConfig { ghAuth = Auth.OAuth $ BS.pack token - , ghIcon = undefined - } + githubNotificationsNew $ defaultGithubConfig $ Auth.OAuth $ BS.pack token main = do interfaceNames <- getInterfaces @@ -206,12 +204,12 @@ main = do [ batteryBarNewWithFormat defaultBatteryConfig "$percentage$% ($time$) - $status$" 1.0 , makeContents sniTrayNew "Cpu" , makeContents clock "Cpu" + , github >>= buildPadBox , makeContents cpu "Cpu" , makeContents mem "Cpu" , makeContents netMonitor "Cpu" , makeContents (fsMonitorNew 60 ["/dev/sdd2"]) "Cpu" , mpris >>= buildPadBox - , github >>= buildPadBox ] , barPosition = Top , barPadding = 0