feat: add misc style changes

Steam: added gamescopeSession and gamemoderun support
Hyprland: added additional formatting options
This commit is contained in:
Zhongheng Liu 2024-09-07 23:38:54 +03:00
commit 466f0992f1
No known key found for this signature in database
3 changed files with 23 additions and 9 deletions

View file

@ -62,6 +62,8 @@
file = {"wallpaper.jpg".source = ./assets/nixos-wallpaper.jpg;}; file = {"wallpaper.jpg".source = ./assets/nixos-wallpaper.jpg;};
}; };
home.packages = with pkgs; [ home.packages = with pkgs; [
bottom
libnotify
prismlauncher prismlauncher
protonvpn-gui protonvpn-gui
devenv devenv

View file

@ -21,11 +21,20 @@
#"eDP-1, 1920x1080@165,0x0,1" #"eDP-1, 1920x1080@165,0x0,1"
",preferred, auto, ${builtins.toString config.displayScale}" ",preferred, auto, ${builtins.toString config.displayScale}"
]; ];
general = {
border_size = 3;
gaps_in = 2.5;
gaps_out = 5;
};
decoration = {
rounding = 5;
};
input = { input = {
# xset rate 250 50 replacement on wayland... # xset rate 250 50 replacement on wayland...
# FAST MODE LET'S GOOO # FAST MODE LET'S GOOO
repeat_rate = 50; repeat_rate = 50;
repeat_delay = 250; repeat_delay = 250;
accel_profile = "flat";
}; };
exec-once = exec-once =
config.myAutostartCommands config.myAutostartCommands
@ -36,6 +45,7 @@
disable_hyprland_logo = true; disable_hyprland_logo = true;
disable_splash_rendering = true; disable_splash_rendering = true;
font_family = "monospace"; font_family = "monospace";
focus_on_activate = true; # see if fixes mako daemon not focusing
}; };
"$mod" = "SUPER"; "$mod" = "SUPER";
binde = [ binde = [
@ -64,7 +74,7 @@
"$mod, Q, killactive" "$mod, Q, killactive"
"$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel" "$mod, D, exec, ${pkgs.fuzzel}/bin/fuzzel"
# firefox quickstart # firefox quickstart
"$mod, F, exec, ${pkgs.firefox}/bin/firefox" "$mod, F, fullscreen"
"$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm" "$mod, E, exec, ${pkgs.pcmanfm}/bin/pcmanfm"
# foot terminal # foot terminal
"$mod, Return, exec, ${terminalCmd}" "$mod, Return, exec, ${terminalCmd}"

View file

@ -48,12 +48,8 @@
}; };
xdg.portal = { xdg.portal = {
enable = true; enable = true;
extraPortals = with pkgs; [ extraPortals = with pkgs; [xdg-desktop-portal-gtk];
xdg-desktop-portal-gtk config = {common.default = ["gtk"];};
];
config = {
common.default = ["gtk"];
};
}; };
systemd.user.services.mpris-proxy = { systemd.user.services.mpris-proxy = {
description = "Mpris proxy"; description = "Mpris proxy";
@ -69,8 +65,11 @@
true; # Open ports in the firewall for Source Dedicated Server true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = localNetworkGameTransfers.openFirewall =
true; # Open ports in the firewall for Steam Local Network Game Transfers true; # Open ports in the firewall for Steam Local Network Game Transfers
gamescopeSession = {
enable = true;
}; };
};
programs.gamemode.enable = true;
boot = { boot = {
kernelPackages = pkgs.linuxPackages_zen; kernelPackages = pkgs.linuxPackages_zen;
supportedFilesystems = ["ntfs"]; supportedFilesystems = ["ntfs"];
@ -131,7 +130,10 @@
initialPassword = "stevenpassword"; initialPassword = "stevenpassword";
isNormalUser = true; isNormalUser = true;
openssh.authorizedKeys.keys = []; openssh.authorizedKeys.keys = [];
packages = with pkgs; [nh gparted]; packages = with pkgs; [
nh
gparted
];
extraGroups = ["wheel" "input" "networkmanager"]; extraGroups = ["wheel" "input" "networkmanager"];
}; };
}; };