{ inputs, pkgs, ... }: { imports = [ inputs.ironbar.homeManagerModules.default ]; programs.ironbar = { enable = true; config.monitors = { HDMI-A-2 = { position = "bottom"; start = [ { type = "launcher"; favourites = [ "firefox" "discord" ]; show_names = false; show_icons = true; } { type = "focused"; } ]; end = [ { type = "clipboard"; max_items = 3; truncate.length = 50; truncate.mode = "end"; } { type = "music"; player_type = "mpris"; } { type = "clock"; } ]; }; DP-1 = { position = "bottom"; icon_theme = "Papirus-Dark"; end = [ { type = "sys_info"; format = [ " CPU {cpu_percent}% | {temp_c:coretemp-Package-id-0}°C" " RAM {memory_used}GB/{memory_total}GB ({memory_percent})%" ]; interval = { cpu = 1; temps = 5; memory = 30; # disks= 300; # networks= 3; }; } { type = "tray"; } ]; start = [{ type = "workspaces"; name_map = { "1" = "icon:foot"; "2" = "icon:code"; "3" = "icon:firefox"; "4" = "icon:slack"; "5" = "icon:steam"; "6" = "icon:misc"; "7" = "icon:misc"; "8" = "icon:firefox"; "9" = "icon:discord"; "10" = "icon:spotify"; }; favorites = [ "1" "2" "3" "4" "5" "6" "7" "8" "9" "10" ]; all_monitors = true; }]; }; }; style = let # mocha = fetchurl { # url = "https://github.com/catppuccin/waybar/releases/download/v1.0/mocha.css"; # sha256 = pkgs.lib.fakeSha256; # }; catppuccin = pkgs.fetchFromGitHub { owner = "catppuccin"; repo = "waybar"; rev = "v1.0"; sha256 = "sha256-vfwfBE3iqIN1cGoItSssR7h0z6tuJAhNarkziGFlNBw"; }; mocha = builtins.readFile "${catppuccin}/mocha.css"; in mocha + builtins.readFile ./ironbar.css; }; }