diff --git a/dotfiles/config/taffybar/TaffybarConfig/Config.hs b/dotfiles/config/taffybar/TaffybarConfig/Config.hs index 1843703e..3229b0bd 100644 --- a/dotfiles/config/taffybar/TaffybarConfig/Config.hs +++ b/dotfiles/config/taffybar/TaffybarConfig/Config.hs @@ -3,7 +3,7 @@ module TaffybarConfig.Config ) where -import TaffybarConfig.Host (compactBarHosts, smallBarHosts) +import TaffybarConfig.Host (compactBarHosts, smallBarHosts, tinyBarHosts) import TaffybarConfig.Widgets (clockWidget, endWidgetsForHost, startWidgetsForHostAndBackend) import System.Taffybar.Context (Backend) import System.Taffybar.SimpleConfig @@ -18,18 +18,24 @@ mkSimpleTaffyConfig hostName backend cssFiles = barPosition = Top, widgetSpacing = 0, barPadding = - if hostName `elem` smallBarHosts - then 1 + if hostName `elem` tinyBarHosts + then 0 else - if hostName `elem` compactBarHosts - then 2 - else 4, + if hostName `elem` smallBarHosts + then 1 + else + if hostName `elem` compactBarHosts + then 2 + else 4, barHeight = - if hostName `elem` smallBarHosts - then ScreenRatio $ 1 / 48 + if hostName `elem` tinyBarHosts + then ScreenRatio $ 1 / 90 else - if hostName `elem` compactBarHosts - then ScreenRatio $ 1 / 40 - else ScreenRatio $ 1 / 33, + if hostName `elem` smallBarHosts + then ScreenRatio $ 1 / 72 + else + if hostName `elem` compactBarHosts + then ScreenRatio $ 1 / 60 + else ScreenRatio $ 2 / 99, cssPaths = cssFiles } diff --git a/dotfiles/config/taffybar/TaffybarConfig/Host.hs b/dotfiles/config/taffybar/TaffybarConfig/Host.hs index a95c3d6d..e85887af 100644 --- a/dotfiles/config/taffybar/TaffybarConfig/Host.hs +++ b/dotfiles/config/taffybar/TaffybarConfig/Host.hs @@ -3,6 +3,7 @@ module TaffybarConfig.Host cssFilesForHost, laptopHosts, smallBarHosts, + tinyBarHosts, ) where @@ -16,7 +17,8 @@ defaultCssFiles = ["taffybar.css"] cssFilesByHostname :: [(String, [FilePath])] cssFilesByHostname = - [ ("ryzen-shine", ["ryzen-shine.css"]), + [ ("jay-lenovo", ["jay-lenovo.css"]), + ("ryzen-shine", ["ryzen-shine.css"]), ("strixi-minaj", ["strixi-minaj.css"]) ] @@ -28,6 +30,10 @@ smallBarHosts :: [String] smallBarHosts = ["strixi-minaj"] +tinyBarHosts :: [String] +tinyBarHosts = + ["jay-lenovo"] + laptopHosts :: [String] laptopHosts = [ "adell", diff --git a/dotfiles/config/taffybar/jay-lenovo.css b/dotfiles/config/taffybar/jay-lenovo.css new file mode 100644 index 00000000..d741708e --- /dev/null +++ b/dotfiles/config/taffybar/jay-lenovo.css @@ -0,0 +1,68 @@ +@import url("taffybar.css"); + +/* Host-specific density tweak for jay-lenovo. */ +.taffy-box { + font-size: 8.5pt; + border-radius: 7px; +} + +.outer-pad, +.workspaces .outer-pad { + border-radius: 7px; + margin: 2px 3px; +} + +.inner-pad, +.workspaces .inner-pad { + border-radius: 6px; + padding-top: 0px; + padding-bottom: 0px; +} + +.inner-pad { + padding-left: 8px; + padding-right: 8px; +} + +.workspaces .inner-pad { + padding-left: 8px; + padding-right: 2px; +} + +.workspaces .contents { + border-radius: 6px; + padding: 0px 2px; +} + +.workspace-label { + font-size: 8pt; +} + +.workspaces .overlay-box .workspace-label { + padding: 0px 3px 3px 9px; +} + +.visible .contents, +.workspaces .window-icon-container, +.workspaces .window-icon-container.active { + padding-top: 0px; + padding-bottom: 0px; +} + +.auto-size-image, +.sni-tray { + padding-top: 0px; + padding-bottom: 0px; +} + +.icon-label > .icon, +.usage-section.icon-label > .icon, +.ram-swap .icon-label > .icon { + padding-right: 6px; + min-width: 18px; +} + +.sun-lock .wlsunset, +.sun-lock .screen-lock { + padding: 0px 3px; +}