nix/module/sway/Config.nix

24 lines
929 B
Nix
Raw Normal View History

2024-04-03 05:06:03 +03:00
{ pkgs, wallpaper, config, ... }: let
accent = config.lib.stylix.colors.base02;
bg = config.lib.stylix.colors.base00;
bg_alt = config.lib.stylix.colors.base01;
fg = config.lib.stylix.colors.base04;
fg_alt = config.lib.stylix.colors.base05;
negative = config.lib.stylix.colors.base03;
in {
config = pkgs.writeText "sway_config" ''
# Read `man 5 sway` for a complete reference.
output * bg ${wallpaper.path} fill
client.focused #${accent} #${accent} #${fg} #${accent} #${accent}
client.focused_inactive #${bg_alt} #${bg_alt} #${fg} #${bg_alt} #${bg_alt}
client.unfocused #${bg_alt} #${bg_alt} #${fg_alt} #${bg_alt} #${bg_alt}
client.urgent #${bg_alt} #${negative} #${fg_alt} #${negative} #${negative}
client.placeholder #${bg} #${bg} #${fg} #${bg} #${bg}
include /etc/sway/config.d/*
include $SWAY_CONFIG/*
'';
}