mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-20 10:36:25 +00:00
33 lines
802 B
Nix
33 lines
802 B
Nix
|
{ pkgs, ... }: {
|
||
|
wayland.windowManager.hyprland = {
|
||
|
enable = true;
|
||
|
settings = {
|
||
|
"$mod" = "SUPER";
|
||
|
bind =
|
||
|
[
|
||
|
"$mod, F, exec, ${pkgs.rofi}/bin/rofi"
|
||
|
]
|
||
|
++ (
|
||
|
# 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)
|
||
|
);
|
||
|
};
|
||
|
};
|
||
|
}
|