2024-09-09 00:22:14 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-09-13 01:50:53 +00:00
|
|
|
with lib; let
|
2024-09-09 00:22:14 +00:00
|
|
|
cfg = config.custom.programs.mangohud;
|
2024-09-13 01:50:53 +00:00
|
|
|
in {
|
|
|
|
options.custom.programs.mangohud.enable = mkOption {default = false;};
|
2024-09-09 00:22:14 +00:00
|
|
|
|
|
|
|
config.home-manager.users.${config.custom.username} = mkIf cfg.enable {
|
|
|
|
# https://github.com/flightlessmango/MangoHud
|
|
|
|
programs.mangohud = {
|
|
|
|
enable = true;
|
|
|
|
enableSessionWide = true;
|
|
|
|
|
|
|
|
settings = {
|
|
|
|
background_alpha = 0;
|
|
|
|
background_color = "002b36";
|
2024-10-19 00:21:52 +00:00
|
|
|
battery = true;
|
|
|
|
battery_watt = true;
|
2024-10-14 04:08:07 +00:00
|
|
|
core_load = true;
|
2024-09-09 00:22:14 +00:00
|
|
|
cpu_color = "268bd2";
|
2024-10-19 00:21:52 +00:00
|
|
|
cpu_temp = true;
|
2024-09-09 00:22:14 +00:00
|
|
|
device_battery = "gamepad,mouse";
|
2024-10-19 00:21:52 +00:00
|
|
|
dynamic_frame_timing = true;
|
2024-09-09 00:22:14 +00:00
|
|
|
engine_color = "dc322f";
|
2024-12-08 04:06:49 +00:00
|
|
|
font_file = "${pkgs.nerd-fonts.iosevka}/share/fonts/truetype/NerdFonts/IosevkaTermSlabNerdFontPropo-Medium.ttf";
|
2024-10-14 04:08:07 +00:00
|
|
|
font_size = 24;
|
2024-10-19 00:21:52 +00:00
|
|
|
fps_limit = "100,75,60,50"; # !! Monitor dependent
|
2024-09-09 00:22:14 +00:00
|
|
|
fps_limit_method = "early"; # Smoother frametimes compared to late
|
2024-10-19 00:21:52 +00:00
|
|
|
frametime = true;
|
2024-09-09 00:22:14 +00:00
|
|
|
frametime_color = "859900";
|
2024-10-19 00:21:52 +00:00
|
|
|
#// gl_vsync = -1; # Adaptive
|
2024-09-09 00:22:14 +00:00
|
|
|
gpu_color = "2aa198";
|
2024-10-19 00:21:52 +00:00
|
|
|
gpu_load_change = true;
|
|
|
|
gpu_temp = true;
|
2024-10-14 04:08:07 +00:00
|
|
|
gpu_stats = true;
|
2024-10-19 00:21:52 +00:00
|
|
|
hud_compact = true;
|
|
|
|
io_color = "b58900";
|
|
|
|
io_read = true;
|
|
|
|
io_write = true;
|
2024-10-14 04:08:07 +00:00
|
|
|
no_display = true; # Hide by default
|
2024-09-09 00:22:14 +00:00
|
|
|
position = "top-center";
|
2024-10-14 04:08:07 +00:00
|
|
|
ram = true;
|
2024-09-09 00:22:14 +00:00
|
|
|
ram_color = "d33682";
|
2024-10-19 00:21:52 +00:00
|
|
|
reload_cfg = "Control_L+Shift_L+slash";
|
|
|
|
show_fps_limit = true;
|
|
|
|
swap = true;
|
|
|
|
text_color = "fdf6e3";
|
|
|
|
throttling_status_graph = true;
|
2024-09-09 00:22:14 +00:00
|
|
|
toggle_fps_limit = "Control_L+period";
|
|
|
|
toggle_hud = "Control_L+slash";
|
2024-10-19 00:21:52 +00:00
|
|
|
#// vsync = 0; # Adaptive
|
2024-10-14 04:08:07 +00:00
|
|
|
vram = true;
|
2024-09-09 00:22:14 +00:00
|
|
|
vram_color = "6c71c4";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|