feat: further structure hyprland configuration
Added special keybind definition files Created new hyprland-specific config dir
This commit is contained in:
parent
d4059b5e9a
commit
a29235acb6
5 changed files with 128 additions and 115 deletions
68
home-manager/stvnliu/hypr/hyprland/default.nix
Normal file
68
home-manager/stvnliu/hypr/hyprland/default.nix
Normal file
|
@ -0,0 +1,68 @@
|
|||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
home.packages = with pkgs; [foot];
|
||||
wayland.windowManager.hyprland = {
|
||||
# Whether to enable Hyprland wayland compositor
|
||||
enable = true;
|
||||
# The hyprland package to use
|
||||
package = pkgs.hyprland;
|
||||
plugins = with pkgs.hyprlandPlugins; [hyprfocus csgo-vulkan-fix];
|
||||
# Whether to enable XWayland
|
||||
xwayland.enable = true;
|
||||
settings = {
|
||||
env = ["AQ_DRM_DEVICES, /dev/dri/card1:/dev/dri/card0"];
|
||||
xwayland = {force_zero_scaling = true;};
|
||||
monitor = [
|
||||
#"eDP-1, 1920x1080@165,0x0,1"
|
||||
"HDMI-A-1, 1920x1080@75, 2560x0, 1"
|
||||
"eDP-1,preferred, auto, ${builtins.toString config.displayScale}"
|
||||
];
|
||||
general = {
|
||||
border_size = 1;
|
||||
gaps_in = 2.5;
|
||||
gaps_out = 5;
|
||||
};
|
||||
decoration = {rounding = 5;};
|
||||
input = {
|
||||
# xset rate 250 50 replacement on wayland...
|
||||
# FAST MODE LET'S GOOO
|
||||
repeat_rate = 50;
|
||||
repeat_delay = 250;
|
||||
accel_profile = "flat";
|
||||
};
|
||||
exec-once =
|
||||
config.myAutostartCommands
|
||||
++ [
|
||||
"[workspace special silent] ${pkgs.foot}/bin/foot -f '${config.desktopFontFullName}:size=16' -o colors.alpha=0.80 ${config.myShells.defaultShell}"
|
||||
];
|
||||
misc = {
|
||||
disable_hyprland_logo = true;
|
||||
disable_splash_rendering = true;
|
||||
font_family = "monospace";
|
||||
focus_on_activate = true; # see if fixes mako daemon not focusing
|
||||
};
|
||||
"$mod" = "SUPER";
|
||||
binde = import ./xf86_binds.nix {
|
||||
inherit config;
|
||||
inherit pkgs;
|
||||
};
|
||||
bind = import ./binds.nix {
|
||||
inherit config;
|
||||
inherit pkgs;
|
||||
};
|
||||
bindm = [
|
||||
# mouse movements
|
||||
"$mod, mouse:272, movewindow"
|
||||
"$mod, mouse:273, resizewindow"
|
||||
"$mod ALT, mouse:272, resizewindow"
|
||||
];
|
||||
};
|
||||
# Optional
|
||||
# Whether to enable hyprland-session.target on hyprland startup
|
||||
systemd = {enable = true;};
|
||||
};
|
||||
# ...
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue