programs/hyprland: disable Unknown-1 ghost monitor, move env variables to environment.d
, add nvidia env variables
This commit is contained in:
parent
d0242089e2
commit
a9a07fea6d
1 changed files with 110 additions and 96 deletions
|
@ -7,7 +7,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (builtins) toString;
|
||||
inherit (lib) mkIf;
|
||||
inherit (lib) mkIf optionalAttrs optionalString;
|
||||
inherit (lib'.generators) toHyprConf;
|
||||
inherit (config.local.systemVars) username;
|
||||
|
||||
|
@ -63,7 +63,8 @@ in {
|
|||
inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast
|
||||
gnomeControlCenter
|
||||
];
|
||||
files.".config/hypr/hyprland.conf".text = toHyprConf {
|
||||
files = {
|
||||
".config/hypr/hyprland.conf".text = toHyprConf {
|
||||
attrs =
|
||||
{
|
||||
xwayland = {
|
||||
|
@ -71,7 +72,6 @@ in {
|
|||
};
|
||||
|
||||
env = [
|
||||
"GDK_SCALE,1"
|
||||
];
|
||||
|
||||
cursor = {
|
||||
|
@ -80,6 +80,7 @@ in {
|
|||
|
||||
monitor = [
|
||||
"eDP-1, preferred, auto, 1.33"
|
||||
"Unknown-1,disabled"
|
||||
];
|
||||
workspace = [
|
||||
"special:terminal, on-created-empty:foot"
|
||||
|
@ -145,12 +146,7 @@ in {
|
|||
middle_click_paste = false;
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs styleCfg.enable {
|
||||
env = [
|
||||
"HYPRCURSOR_THEME,${styleCfg.cursorTheme.name}"
|
||||
"HYPRCURSOR_SIZE,${toString styleCfg.cursorTheme.size}"
|
||||
"XCURSOR_SIZE,${toString styleCfg.cursorTheme.size}"
|
||||
];
|
||||
// optionalAttrs styleCfg.enable {
|
||||
general = {
|
||||
border_size = 4;
|
||||
"col.active_border" = "rgb(${lib.removePrefix "#" styleCfg.scheme.palette.base0E})";
|
||||
|
@ -162,6 +158,24 @@ in {
|
|||
}
|
||||
// import ./binds.nix lib;
|
||||
};
|
||||
".config/environment.d/${config.local.homeVars.userEnvFile}.conf".text =
|
||||
''
|
||||
GDK_SCALE="1"
|
||||
''
|
||||
+ optionalString styleCfg.enable ''
|
||||
|
||||
HYPRCURSOR_THEME="${styleCfg.cursorTheme.name}"
|
||||
HYPRCURSOR_SIZE="${toString styleCfg.cursorTheme.size}"
|
||||
XCURSOR_SIZE="${toString styleCfg.cursorTheme.size}"
|
||||
|
||||
''
|
||||
+ optionalString config.local.modules.nvidia.enable ''
|
||||
LIBVA_DRIVER_NAME="nvidia"
|
||||
__GLX_VENDOR_LIBRARY_NAME="nvidia"
|
||||
XDG_SESSION_TYPE="wayland"
|
||||
GBM_BACKEND="nvidia-drm"
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue