From d530804cb725f329b1faf3ce488b430fa36039bb Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 28 May 2023 13:53:08 -0700 Subject: font: switch to Roboto for system font and JetBrain for monospace --- home/profiles/sway.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'home/profiles/sway.nix') diff --git a/home/profiles/sway.nix b/home/profiles/sway.nix index dc3999c..193ecd5 100644 --- a/home/profiles/sway.nix +++ b/home/profiles/sway.nix @@ -1,6 +1,12 @@ { config, lib, pkgs, ... }: let modifier = "Mod4"; # `Super` key + fonts = { + names = [ "Roboto" "Font Awesome 5 Free" "Font Awesome 5 Brands" "Arial" "sans-serif" ]; + style = "Bold"; + size = 10.0; + }; + in { imports = [ @@ -59,15 +65,11 @@ in # dbus-update-activation-environment systemdIntegration = true; config = { + inherit fonts modifier; # FIXME: this should be a variable terminal = "kitty"; - modifier = modifier; menu = ''${pkgs.wofi}/bin/wofi -S drun -p "app:" -L 10''; bars = [ ]; - fonts = { - names = [ "Source Code Pro" ]; - size = 10.0; - }; keybindings = lib.mkOptionDefault { # control the volume "XF86AudioRaiseVolume" = @@ -139,10 +141,11 @@ in }; xdg.configFile."swaylock/config".source = pkgs.writeText "config" '' - color=2E3440 daemonize - indicator-caps-lock hide-keyboard-layout + indicator-caps-lock + color=2E3440 + font=Roboto ''; services.swayidle = { -- cgit 1.4.1