changed structure quite significantly
This commit is contained in:
parent
6a7cda5ba5
commit
a905e2dc3d
18 changed files with 15 additions and 13 deletions
52
modules/home/hyprland/default.nix
Normal file
52
modules/home/hyprland/default.nix
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
{ config, lib, pkgs, osConfig, ... }
|
||||
|
||||
{
|
||||
|
||||
imports = [
|
||||
hyprland.homeManagerModules.default
|
||||
./hyprland-environment.nix
|
||||
|
||||
];
|
||||
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
waybar
|
||||
];
|
||||
};
|
||||
|
||||
programs = {
|
||||
hyperland = {
|
||||
enable = true;
|
||||
xwayland.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
wayland.windowManager.hyprland = {
|
||||
enable = true;
|
||||
systemdIntegration = true;
|
||||
settings = {
|
||||
"$mod" = "SUPER";
|
||||
bind = [
|
||||
"$mod, F, exec, firefox"
|
||||
", Print, exec, grimblast copy area"
|
||||
] ++ ( # workspaces
|
||||
# binds $mod + [shift+] {1..10} to [move to] workspace {1..10}
|
||||
builtins.concatLists (builtins.genList (
|
||||
x: let
|
||||
ws = let
|
||||
c = (x + 1) / 10;
|
||||
in
|
||||
builtins.toString (x + 1 - (c * 10));
|
||||
in [
|
||||
"$mod, ${ws}, workspace, ${toString (x + 1)}"
|
||||
"$mod SHIFT, ${ws}, movetoworkspace, ${toString (x + 1)}"
|
||||
]
|
||||
)
|
||||
10)
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
|
||||
}
|
||||
20
modules/home/hyprland/environment.nix
Normal file
20
modules/home/hyprland/environment.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
|
||||
home = {
|
||||
|
||||
sessionVariables = {
|
||||
EDITOR = "micro";
|
||||
BROWSER = "firefox";
|
||||
TERMINAL = "kitty";
|
||||
|
||||
XDG_CURRENT_DESKTOP = "Hyprland";
|
||||
XDG_SESSION_DESKTOP - "Hyprland";
|
||||
XDG_SESSION_TYPE = "wayland";
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue