programs/hyprland: switch to hjem-rum
This commit is contained in:
parent
4e4a2d86e5
commit
98a319696f
1 changed files with 91 additions and 93 deletions
|
@ -59,105 +59,103 @@ in {
|
||||||
inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast
|
inputs.hyprwm-contrib.packages.${pkgs.system}.grimblast
|
||||||
gnomeControlCenter
|
gnomeControlCenter
|
||||||
];
|
];
|
||||||
files = {
|
|
||||||
".config/hypr/hyprland.conf".text = toHyprConf {
|
|
||||||
attrs =
|
|
||||||
{
|
|
||||||
xwayland = {
|
|
||||||
force_zero_scaling = true;
|
|
||||||
};
|
|
||||||
|
|
||||||
env = [
|
rum.programs.hyprland = {
|
||||||
|
enable = true;
|
||||||
|
settings =
|
||||||
|
{
|
||||||
|
xwayland = {
|
||||||
|
force_zero_scaling = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
env = [
|
||||||
|
];
|
||||||
|
|
||||||
|
cursor = {
|
||||||
|
no_hardware_cursors = 1;
|
||||||
|
};
|
||||||
|
|
||||||
|
monitor = [
|
||||||
|
"eDP-1, preferred, auto, 1.33"
|
||||||
|
"Unknown-1,disabled"
|
||||||
|
];
|
||||||
|
workspace = [
|
||||||
|
"special:terminal, on-created-empty:ghostty"
|
||||||
|
"special:file_manager_gui, on-created-empty:pcmanfm"
|
||||||
|
"special:file_manager_tui, on-created-empty:ghostty -e yazi"
|
||||||
|
|
||||||
|
"special:calculator_gui, on-created-empty:qalculate-gtk"
|
||||||
|
"special:mixer_gui, on-created-empty:pavucontrol"
|
||||||
|
];
|
||||||
|
|
||||||
|
windowrulev2 = [
|
||||||
|
# fixes fullscreen windows (mostly games)
|
||||||
|
"stayfocused, initialtitle:^()$, initialclass:^(steam)$"
|
||||||
|
"minsize 1 1, initialtitle:^()$, initialclass:^(steam)$"
|
||||||
|
"maximize, initialtitle:^(\S+)$, initialclass:^(steamwebhelper)$"
|
||||||
|
|
||||||
|
"immediate, initialclass:^(steam_app_)(.*)$"
|
||||||
|
"fullscreen, initialclass:^(steam_app_)(.*)$"
|
||||||
|
|
||||||
|
# inhibit idle on fullscreen apps (avoids going idle on games when playing with gamepad)
|
||||||
|
"idleinhibit always, fullscreen:1"
|
||||||
|
];
|
||||||
|
|
||||||
|
render = {
|
||||||
|
explicit_sync = 1;
|
||||||
|
explicit_sync_kms = 1;
|
||||||
|
expand_undersized_textures = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
bezier = "overshot, 0.05, 0.9, 0.1, 1.1";
|
||||||
|
|
||||||
|
animations = {
|
||||||
|
enabled = true;
|
||||||
|
animation = [
|
||||||
|
"windows, 1, 5, overshot"
|
||||||
|
"windowsOut, 1, 5, default, popin 80%"
|
||||||
|
"windowsMove, 1, 5, default, popin 80%"
|
||||||
|
"fade, 1, 5, default"
|
||||||
|
"border, 1, 5, default"
|
||||||
|
"borderangle, 0, 8, default"
|
||||||
|
"workspaces, 0"
|
||||||
|
"specialWorkspace, 0"
|
||||||
];
|
];
|
||||||
|
};
|
||||||
|
|
||||||
cursor = {
|
input = {
|
||||||
no_hardware_cursors = 1;
|
kb_options = "compose:ralt";
|
||||||
|
touchpad = {
|
||||||
|
natural_scroll = true;
|
||||||
|
scroll_factor = 0.8;
|
||||||
|
tap-to-click = true;
|
||||||
|
clickfinger_behavior = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
monitor = [
|
gestures = {
|
||||||
"eDP-1, preferred, auto, 1.33"
|
workspace_swipe = true;
|
||||||
"Unknown-1,disabled"
|
workspace_swipe_direction_lock = false;
|
||||||
];
|
workspace_swipe_cancel_ratio = 0.15;
|
||||||
workspace = [
|
};
|
||||||
"special:terminal, on-created-empty:ghostty"
|
|
||||||
"special:file_manager_gui, on-created-empty:pcmanfm"
|
|
||||||
"special:file_manager_tui, on-created-empty:ghostty -e yazi"
|
|
||||||
|
|
||||||
"special:calculator_gui, on-created-empty:qalculate-gtk"
|
misc = {
|
||||||
"special:mixer_gui, on-created-empty:pavucontrol"
|
force_default_wallpaper = 0;
|
||||||
];
|
disable_hyprland_logo = true;
|
||||||
|
middle_click_paste = false;
|
||||||
windowrulev2 = [
|
};
|
||||||
# fixes fullscreen windows (mostly games)
|
}
|
||||||
"stayfocused, initialtitle:^()$, initialclass:^(steam)$"
|
// optionalAttrs styleCfg.enable {
|
||||||
"minsize 1 1, initialtitle:^()$, initialclass:^(steam)$"
|
general = {
|
||||||
"maximize, initialtitle:^(\S+)$, initialclass:^(steamwebhelper)$"
|
border_size = 4;
|
||||||
|
"col.active_border" = "rgb(${lib.removePrefix "#" styleCfg.scheme.palette.base0E})";
|
||||||
"immediate, initialclass:^(steam_app_)(.*)$"
|
};
|
||||||
"fullscreen, initialclass:^(steam_app_)(.*)$"
|
decoration = {
|
||||||
|
rounding = 10;
|
||||||
# inhibit idle on fullscreen apps (avoids going idle on games when playing with gamepad)
|
blur.enabled = true;
|
||||||
"idleinhibit always, fullscreen:1"
|
};
|
||||||
];
|
}
|
||||||
|
// import ./binds.nix lib;
|
||||||
render = {
|
|
||||||
explicit_sync = 1;
|
|
||||||
explicit_sync_kms = 1;
|
|
||||||
expand_undersized_textures = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
bezier = "overshot, 0.05, 0.9, 0.1, 1.1";
|
|
||||||
|
|
||||||
animations = {
|
|
||||||
enabled = true;
|
|
||||||
animation = [
|
|
||||||
"windows, 1, 5, overshot"
|
|
||||||
"windowsOut, 1, 5, default, popin 80%"
|
|
||||||
"windowsMove, 1, 5, default, popin 80%"
|
|
||||||
"fade, 1, 5, default"
|
|
||||||
"border, 1, 5, default"
|
|
||||||
"borderangle, 0, 8, default"
|
|
||||||
"workspaces, 0"
|
|
||||||
"specialWorkspace, 0"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
input = {
|
|
||||||
kb_options = "compose:ralt";
|
|
||||||
touchpad = {
|
|
||||||
natural_scroll = true;
|
|
||||||
scroll_factor = 0.8;
|
|
||||||
tap-to-click = true;
|
|
||||||
clickfinger_behavior = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
gestures = {
|
|
||||||
workspace_swipe = true;
|
|
||||||
workspace_swipe_direction_lock = false;
|
|
||||||
workspace_swipe_cancel_ratio = 0.15;
|
|
||||||
};
|
|
||||||
|
|
||||||
misc = {
|
|
||||||
force_default_wallpaper = 0;
|
|
||||||
disable_hyprland_logo = true;
|
|
||||||
middle_click_paste = false;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// optionalAttrs styleCfg.enable {
|
|
||||||
general = {
|
|
||||||
border_size = 4;
|
|
||||||
"col.active_border" = "rgb(${lib.removePrefix "#" styleCfg.scheme.palette.base0E})";
|
|
||||||
};
|
|
||||||
decoration = {
|
|
||||||
rounding = 10;
|
|
||||||
blur.enabled = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// import ./binds.nix lib;
|
|
||||||
};
|
|
||||||
|
|
||||||
".config/uwsm/env-hyprland".source = config.hjem.users.${username}.environment.setEnvironment;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.sessionVariables = mkMerge [
|
environment.sessionVariables = mkMerge [
|
||||||
|
|
Loading…
Add table
Reference in a new issue