more hyprland tinkering...

This commit is contained in:
John Bowdre 2023-09-26 20:24:07 -05:00
parent 21481c10e6
commit c292a03707
4 changed files with 32 additions and 5 deletions

View file

@ -31,7 +31,7 @@
}; };
}; };
outputs = { self, nixpkgs, home-manager, ... } @inputs: outputs = { self, nixpkgs, home-manager, hyprland, ... } @inputs:
let let
inherit (self) outputs; inherit (self) outputs;
lib = nixpkgs.lib // home-manager.lib; lib = nixpkgs.lib // home-manager.lib;
@ -77,7 +77,11 @@
extraSpecialArgs = { inherit inputs outputs; }; extraSpecialArgs = { inherit inputs outputs; };
}; };
"john@pixnix" = lib.homeManagerConfiguration { "john@pixnix" = lib.homeManagerConfiguration {
modules = [ ./home/pixnix.nix ]; modules = [
./home/pixnix.nix
hyprland.homeManagerModules.default
{wayland.windowManager.hyprland.enable = true;}
];
pkgs = pkgsFor.x86_64-linux; pkgs = pkgsFor.x86_64-linux;
extraSpecialArgs = { inherit inputs outputs; }; extraSpecialArgs = { inherit inputs outputs; };
}; };

View file

@ -21,6 +21,5 @@
) )
10)} 10)}
# ...
''; '';
} }

View file

@ -3,7 +3,7 @@
./global ./global
./features/cli/extras ./features/cli/extras
./features/desktop ./features/desktop
./features/desktop/hyprland.nix # ./features/desktop/hyprland.nix
]; ];
# packages # packages
@ -11,4 +11,28 @@
kitty kitty
vagrant vagrant
]; ];
wayland.windowManager.hyprland.extraConfig = ''
$mod = SUPER
bind = $mod, F, exec, firefox
bind = , Print, exec, grimblast copy area
bind = $mod, Q, exec, kitty
# workspaces
# binds $mod + [shift +] {1..10} to [move to] workspace {1..10}
${builtins.concatStringsSep "\n" (builtins.genList (
x: let
ws = let
c = (x + 1) / 10;
in
builtins.toString (x + 1 - (c * 10));
in ''
bind = $mod, ${ws}, workspace, ${toString (x + 1)}
bind = $mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}
''
)
10)}
'';
} }

View file

@ -10,7 +10,7 @@
../common/optional/docker.nix ../common/optional/docker.nix
#../common/optional/gnome.nix #../common/optional/gnome.nix
# ../common/optional/hyprland.nix ../common/optional/hyprland.nix
../common/optional/libvirtd.nix ../common/optional/libvirtd.nix
../common/optional/pipewire.nix ../common/optional/pipewire.nix
../common/optional/printing.nix ../common/optional/printing.nix