diff --git a/dotfiles/config/taffybar/ryzen-shine.css b/dotfiles/config/taffybar/ryzen-shine.css new file mode 100644 index 00000000..881cbade --- /dev/null +++ b/dotfiles/config/taffybar/ryzen-shine.css @@ -0,0 +1,60 @@ +/* Host-specific density tweaks for ryzen-shine. Keep the same visual style, + * but shrink the bar back down after the upstream sizing change. + */ + +.taffy-box { + font-size: 10pt; +} + +.outer-pad { + margin: 2px 3px; +} + +.inner-pad { + padding: 1px 8px; +} + +.icon-label > .icon { + padding-right: 8px; +} + +.ram-swap .icon-label > .icon { + min-width: 18px; + padding-right: 6px; +} + +.workspaces .outer-pad { + margin: 2px 2px; +} + +.workspaces .inner-pad { + padding: 1px 2px 1px 8px; +} + +.workspace-label { + font-size: 9pt; +} + +.workspaces .overlay-box .workspace-label { + padding: 1px 4px 3px 10px; +} + +.window-icon-container { + padding: 0px 3px; +} + +.auto-size-image, .sni-tray { + padding: 0px 3px; +} + +.sni-tray-expand-toggle, +.sni-tray-edit-toggle, +.sni-tray-settings-toggle { + padding: 0px 3px; + margin-left: 2px; +} + +/* Debug probe: verify host CSS can target the visible CPU pill directly. */ +.outer-pad.cpu { + background-color: rgba(255, 0, 0, 1.0); +} diff --git a/dotfiles/config/taffybar/taffybar b/dotfiles/config/taffybar/taffybar index 98972536..07442aae 160000 --- a/dotfiles/config/taffybar/taffybar +++ b/dotfiles/config/taffybar/taffybar @@ -1 +1 @@ -Subproject commit 989725362fc6a04fbbee8ff0de5f68fa2ee0636f +Subproject commit 07442aaeae81ee5537d58b22ded3bea799af39ec diff --git a/dotfiles/config/taffybar/taffybar.hs b/dotfiles/config/taffybar/taffybar.hs index c3d43e4c..9b3afb93 100644 --- a/dotfiles/config/taffybar/taffybar.hs +++ b/dotfiles/config/taffybar/taffybar.hs @@ -251,7 +251,7 @@ defaultCssFiles = ["palette.css", "taffybar.css"] cssFilesByHostname :: [(String, [FilePath])] cssFilesByHostname = [ ("imalison-home", ["palette.css", "taffybar.css"]), - ("ryzen-shine", ["palette.css", "taffybar.css"]), + ("ryzen-shine", ["palette.css", "taffybar.css", "ryzen-shine.css"]), ("stevie-nixos", ["palette.css", "taffybar.css"]) ] @@ -608,8 +608,11 @@ mkSimpleTaffyConfig hostName backend cssFiles = barLevels = Nothing, barPosition = Top, widgetSpacing = 0, - barPadding = 4, - barHeight = ScreenRatio $ 1 / 33, + barPadding = if hostName == "ryzen-shine" then 2 else 4, + barHeight = + if hostName == "ryzen-shine" + then ScreenRatio $ 1 / 40 + else ScreenRatio $ 1 / 33, cssPaths = cssFiles }