This commit is contained in:
2026-02-23 11:48:11 +01:00
parent f2ef0c0b16
commit ca0a63597c
4 changed files with 265 additions and 196 deletions

View File

@@ -7,3 +7,4 @@ hyprlock
hyprsunset hyprsunset
satty satty
kitty kitty
mangohud

View File

@@ -24,8 +24,10 @@
}; };
imports = [ imports = [
# general packages list # general
./modules/packages.nix ./modules/packages.nix
./modules/xdg.nix
./modules/desktop.nix
# cli tools # cli tools
./modules/cli/fish.nix ./modules/cli/fish.nix
./modules/cli/nixvim.nix ./modules/cli/nixvim.nix
@@ -41,6 +43,7 @@
./modules/gui/kitty.nix ./modules/gui/kitty.nix
./modules/gui/satty.nix ./modules/gui/satty.nix
./modules/gui/mako.nix ./modules/gui/mako.nix
./modules/gui/mangohud.nix
# status bars # status bars
./modules/bars/ashell.nix ./modules/bars/ashell.nix
./modules/bars/waybar.nix ./modules/bars/waybar.nix
@@ -50,36 +53,16 @@
./modules/hypr/hypridle.nix ./modules/hypr/hypridle.nix
./modules/hypr/hyprlock.nix ./modules/hypr/hyprlock.nix
./modules/hypr/hyprsunset.nix ./modules/hypr/hyprsunset.nix
# other stuff
./modules/xdg.nix
./modules/desktop.nix
]; ];
# === DOTFILES IMPORT === # === DOTFILES IMPORT ===
home.file = { home.file = {
".config/MangoHud".source = ./dotfiles/mangohud;
".config/gtk-3.0/settings.ini".source = ./dotfiles/gtk-3.0/settings.ini; ".config/gtk-3.0/settings.ini".source = ./dotfiles/gtk-3.0/settings.ini;
".config/gtk-4.0".source = ./dotfiles/gtk-4.0; ".config/gtk-4.0".source = ./dotfiles/gtk-4.0;
".config/mimeapps.list".source = ./dotfiles/mimeapps.list; ".config/mimeapps.list".source = ./dotfiles/mimeapps.list;
".local/bin".source = ./scripts; ".local/bin".source = ./scripts;
}; };
# XDG
xdg.desktopEntries.x = {
name = "X";
genericName = "Social Media Client";
comment = "Open X (twitter)";
exec = "uwsm app -- chromium --app=https://x.com";
icon = "twitter";
terminal = false;
categories = [
"Network"
"WebBrowser"
"X-Social"
];
};
# === VARS === # === VARS ===
home.sessionVariables = { home.sessionVariables = {

81
modules/gui/mangohud.nix Normal file
View File

@@ -0,0 +1,81 @@
{
config,
pkgs,
isNixOS,
...
}:
{
catppuccin.mangohud.enable = false;
programs.mangohud = {
enable = true;
package = if isNixOS then pkgs.mangohud else (pkgs.runCommand "dummy-mangohud" { } "mkdir $out");
};
xdg.configFile."MangoHud/MangoHud.conf".text = ''
legacy_layout=false
background_alpha=0.6
round_corners=10
background_color=1E1E2E
font_size=24
text_color=CDD6F4
position=top-right
no_display
hud_compact
pci_dev=0:03:00.0
table_columns=2
gpu_text=GPU
gpu_stats
gpu_voltage
gpu_core_clock
gpu_mem_clock
gpu_temp
gpu_mem_temp
gpu_fan
gpu_power
gpu_color=A6E3A1
gpu_name
cpu_text=CPU
cpu_stats
cpu_load_change
cpu_load_value=50,90
cpu_load_color=A6E3A1,FAB387,F38BA8
cpu_mhz
cpu_temp
cpu_power
cpu_color=89B4FA
vram
vram_color=A6E3A1
ram
ram_color=F5C2E7
io_stats
io_read
io_write
io_color=CDD6F4
fps
fps_metrics=avg,0.01
frame_timing
frametime_color=A6E3A1
fps_limit_method=late
toggle_fps_limit=Shift_L+F1
fps_limit=0
resolution
gamemode
fps_color_change
fps_color=F38BA8,F9E2AF,A6E3A1
fps_value=30,60
log_duration=30
autostart_log=0
log_interval=100
toggle_logging=Shift_L+F2
blacklist=pamac-manager,lact,ghb,bitwig-studio,ptyxis,yumex
'';
}

View File

@@ -96,7 +96,7 @@
}; };
permission = [ permission = [
"/usr/bin/grim, screencopy, allow" ".*(grim), screencopy, allow"
"/usr/bin/hyprlock, screencopy, allow" "/usr/bin/hyprlock, screencopy, allow"
"/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow" "/usr/(lib|libexec|lib64)/xdg-desktop-portal-hyprland, screencopy, allow"
]; ];
@@ -188,7 +188,9 @@
"match:class ^(com.obsproject.Studio)$, workspace 10" "match:class ^(com.obsproject.Studio)$, workspace 10"
]; ];
bind = [ bind =
# hyprlang
[
# background # background
"$mainMod, V, exec, cliphist list | hyprlauncher -m | cliphist decode | wl-copy" "$mainMod, V, exec, cliphist list | hyprlauncher -m | cliphist decode | wl-copy"
"$mainMod ALT_L, V, exec, cliphist wipe && notify-send \"Clipboard\" \"Clipboard cleared!\"" "$mainMod ALT_L, V, exec, cliphist wipe && notify-send \"Clipboard\" \"Clipboard cleared!\""
@@ -310,7 +312,9 @@
]; ];
}; };
extraConfig = '' extraConfig =
#hyprlang
''
windowrule { windowrule {
name = pavucontrol-float name = pavucontrol-float
match:class = ^(org.pulseaudio.pavucontrol)$ match:class = ^(org.pulseaudio.pavucontrol)$