From 92c8ab73bf974457ea1dc720b3fe6876496294c4 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 8 Jun 2024 06:15:39 +0530 Subject: home/wayland/sway: properly use `global.font` --- home/wayland/modules/sway/home.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'home/wayland/modules/sway/home.nix') diff --git a/home/wayland/modules/sway/home.nix b/home/wayland/modules/sway/home.nix index d97e8a6..4878bf0 100644 --- a/home/wayland/modules/sway/home.nix +++ b/home/wayland/modules/sway/home.nix @@ -19,6 +19,10 @@ brightnessctl = lib.getExe pkgs.brightnessctl; mako = lib.getExe config.services.mako.package; firefox = lib.getExe config.programs.firefox.finalPackage; + + font = config.global.font.sans.name + + lib.optionalString (config.global.font.sans.size != null) + " " + builtins.toString config.global.font.sans.size; in { imports = [ ./mako.nix @@ -45,8 +49,8 @@ in { settings = { bar = { + inherit font; position = "top"; - font = "sans"; status_command = i3status; colors = { background = "#000000"; -- cgit v1.2.3