Test new Hyprland config

This commit is contained in:
iFargle 2024-01-03 23:14:05 +09:00
parent 48a82ac84c
commit b5b30442e4
2 changed files with 78 additions and 95 deletions

View file

@ -64,6 +64,13 @@ nix develop -c /etc/nixos/git/docs/setup.sh
## Home-Manager ## Home-Manager
* [ ] Figure out what the home-manager `account` options are for. * [ ] Figure out what the home-manager `account` options are for.
* [ ] home-manager/common/software/cli/bash.nix - Break this out for theming -- Currently statically set to 'gruvbox' * [ ] home-manager/common/software/cli/bash.nix - Break this out for theming -- Currently statically set to 'gruvbox'
* [ ] Redo Hyprland config with Stylix / more nix-centric configuration
* [ ] Look at `services.gammastep`
* [ ] Look at `wayland.windowManager.hyprland` - [Example](https://github.com/SomeGuyNamedMy/users/blob/master/config/mason/desktop.nix)
* [ ] Look at `programs.rofi`
* [ ] Look at `programs.waybar`
* [ ] Look at `services.udiskie`, `services.mako`, `programs.wlogout`, `services.clipmenu`
* [ ] Essentially, move most of the configs to `home-manager` instead of `nixos`
## Desktop / GUI ## Desktop / GUI
* [ ] Syncthing + Logseq * [ ] Syncthing + Logseq

View file

@ -1,100 +1,76 @@
{ theme, ... }: { { theme, ... }: {
home.file = {
".config/hypr/hyprland.conf" = { wayland.windowManager.hyprland = {
enable = true; enable = true;
text = '' settings = {
# https://wiki.hyprland.org/Configuring/Variables/ layerrule = "blur, waybar";
env = GDK_SCALE,1 xwayland.force_zero_scaling = true;
env = XCURSOR_SIZE,22 env = "GTK_SCALE,1";
env = "XCURSOR_SIZE,22";
# unscale XWayland general = {
xwayland { gaps_in = "8";
force_zero_scaling = true gaps_out = "8";
} border_size = "2";
resize_on_border = "true";
layerrule = blur, waybar extend_border_grab_area = "15";
layout = "dwindle";
# nVidia Speficic Settings: };
# https://wiki.hyprland.org/Nvidia/ input = {
# env = LIBVA_DRIVER_NAME,nvidia kb_layout = "us";
# env = XDG_SESSION_TYPE,wayland follow_mouse = "1";
# env = GBM_BACKEND,nvidia-drm touchpad = {
# env = __GLX_VENDOR_LIBRARY_NAME,nvidia natural_scroll = true;
env = WLR_NO_HARDWARE_CURSORS,1 disable_while_typing = true;
tap-to-click = true;
general { clickfinger_behavior = true;
gaps_in = 5 drag_lock = true;
gaps_out = 15 };
border_size = 3 sensitivity = 0;
# First six are color, last 2 are opacity };
col.active_border = rgba(2a9b34bb) # Gruvbox fg2, opacity bb gestures = {
col.inactive_border = rgba(207427dd) # Gruvbox bg2, opacity aa workspace_swipe = true;
resize_on_border = true workspace_swipe_fingers = 3;
extend_border_grab_area = 15 workspace_swipe_numbered = false;
layout = dwindle };
} misc = {
input { disable_hyprland_logo = true;
kb_layout = us mouse_move_enables_dpms = true;
follow_mouse = 1 key_press_enables_dpms = true;
touchpad { };
natural_scroll = true decoration = {
disable_while_typing = true rounding = 5;
tap-to-click = true active_opacity = 0.8;
clickfinger_behavior = true inactive_opacity = 0.6;
drag_lock = true fullscreen_opacity = 1.0;
} drop_shadow = true;
sensitivity = 0 shadow_range = 4;
} shadow_render_power = 3;
gestures { blur = {
# https://wiki.hyprland.org/0.24.1/Configuring/Keywords/#gestures size = 8;
workspace_swipe = true passes = 3;
workspace_swipe_fingers = 3 ignore_opacity = true;
workspace_swipe_numbered = false };
} };
misc { animations = {
disable_hyprland_logo = true
mouse_move_enables_dpms = true
key_press_enables_dpms = true
}
decoration {
rounding = 5
active_opacity = 0.8
inactive_opacity = 0.6
fullscreen_opacity = 1.0
drop_shadow = true
shadow_range = 4
shadow_render_power = 3
col.shadow = rgba(05050500)
blur {
size = 8
passes = 3
ignore_opacity = true
}
}
animations {
# https://wiki.hyprland.org/Configuring/Animations/ # https://wiki.hyprland.org/Configuring/Animations/
enabled = true enabled = true;
bezier = myBezier, 0.05, 0.9, 0.1, 1.05 bezier = "myBezier, 0.05, 0.9, 0.1, 1.05";
animation = windows, 1, 7, myBezier animation = [
animation = windowsOut, 1, 7, default, popin 80% "windows,1,7,myBezier"
animation = border, 1, 10, default "windowsOut,1,7,default,popin80%"
animation = borderangle, 1, 8, default "border,1,10,default"
animation = fade, 1, 7, default "borderangle,1,8,default"
animation = workspaces, 1, 6, default "fade,1,7,default"
} "workspaces,1,6,default"
dwindle { ];
};
dwindle = {
# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more # See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
pseudotile = true # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below pseudotile = true; # master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
preserve_split = true # you probably want this preserve_split = true;# you probably want this
no_gaps_when_only = 1 no_gaps_when_only = 1;
};
} master.new_is_master = true;
master {
# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
new_is_master = true
}
'';
}; };
}; };
} }