fix: fix hyprland configuration

add new hyprland NixOS module
This commit is contained in:
Zhongheng Liu 2024-08-06 18:58:56 +08:00
commit e0537affdc
2 changed files with 9 additions and 6 deletions

View file

@ -9,9 +9,11 @@
xwayland.enable = true;
settings = {
"$mod" = "SUPER";
bindm = [
bind = [
# foot terminal
"$mod, ENTER, exec ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=24' zsh"
"$mod, ENTER, exec, ${pkgs.foot}/bin/foot -f 'BlexMono Nerd Font:size=24' zsh"
];
bindm = [
# mouse movements
"$mod, mouse:272, movewindow"
"$mod, mouse:273, resizewindow"

View file

@ -48,10 +48,11 @@
security.polkit.enable = true;
services.gnome.gnome-keyring.enable = true;
programs.sway = {
enable = true;
wrapperFeatures.gtk = true;
};
#programs.sway = {
# enable = true;
# wrapperFeatures.gtk = true;
#};
programs.hyprland.enable = true; # enables Hyprland DM.
nixpkgs = {
overlays = [
];