Skip to content

Commit

Permalink
Mangohud
Browse files Browse the repository at this point in the history
  • Loading branch information
amadejkastelic committed Sep 2, 2024
1 parent f2567a1 commit 20ef05a
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 9 deletions.
21 changes: 21 additions & 0 deletions home/programs/browsers/schizofox.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ in {
Method = "GET";
URLTemplate = "https://startpage.com/sp/search?query={searchTerms}&prfe=${startPagePrefs}";
}
{
Name = "Youtube";
Description = "Search Youtube";
Method = "GET";
URLTemplate = "https://www.youtube.com/results?search_query={searchTerms}";
Alias = "!yt";
}
{
Name = "Nix Packages";
Description = "Search NixPkgs";
Expand All @@ -40,6 +47,20 @@ in {
URLTemplate = "https://home-manager-options.extranix.com/?release=master&query={searchTerms}";
Alias = "!hm";
}
{
Name = "Github Code";
Description = "Search Github code";
Method = "GET";
URLTemplate = "https://github.com/search?type=code&q={searchTerms}";
Alias = "!gh";
}
{
Name = "Github Repositories";
Description = "Search Github repositories";
Method = "GET";
URLTemplate = "https://github.com/search?type=repositories&q={searchTerms}";
Alias = "!ghr";
}
];
};

Expand Down
10 changes: 5 additions & 5 deletions home/programs/games/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
pkgs,
inputs,
...
}:
# games
{
}: {
imports = [
./mangohud.nix
];

home.packages = with pkgs; [
# inputs.nix-gaming.packages.${pkgs.system}.osu-lazer-bin
winetricks
adwsteamgtk
steam-run
vibrantlinux
];
}
12 changes: 12 additions & 0 deletions home/programs/games/mangohud.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
programs.mangohud = {
enable = true;
settings = {
cpu_temp = true;
gpu_temp = true;
vram = true;
frame_timing = false;
toggle_hud = "Shift_L+F11";
};
};
}
3 changes: 3 additions & 0 deletions home/programs/wayland/hyprland/rules.nix
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@

"dimaround, class:^(gcr-prompter)$"
"dimaround, class:^(xdg-desktop-portal-gtk)$"
"float, class:^(xdg-desktop-portal-gtk)$"
"center, class:^(xdg-desktop-portal-gtk)$"
"size 1920 1080, class:^(xdg-desktop-portal-gtk)$"
"dimaround, class:^(polkit-gnome-authentication-agent-1)$"

# fix xwayland apps
Expand Down
1 change: 1 addition & 0 deletions home/programs/wayland/hyprland/settings.nix
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ in {

vrr = 0;
render_ahead_of_time = false;
render_unfocused_fps = 60;
};

render = {
Expand Down
4 changes: 0 additions & 4 deletions system/programs/gaming/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,5 @@
./gamescope.nix
];

environment.systemPackages = with pkgs; [
mangohud
];

services.power-profiles-daemon.enable = true;
}

0 comments on commit 20ef05a

Please sign in to comment.