1
0
forked from KYS/maxfiles
nix-config/conf/users/maxmen11/hypr/settings.nix
2025-09-23 16:37:32 +02:00

29 lines
664 B
Nix

{
pkgs,
...
}:
let
sx = k: w: "$S, ${k}, exec, ${w}";
ws = k: w:
["$S+Alt, ${toString k}, movetoworkspacesilent, ${toString w}"
"$S+Shift, ${toString k}, movetoworkspace, ${toString w}"
"$S, ${toString k}, workspace, ${toString w}"];
ws_mul = start: end:
if start > end then []
else ws (if start == 10 then 0 else start) start
++ ws_mul (start + 1) end;
in
{
"$S" = "SUPER";
"$T" = "${pkgs.alacritty}/bin/alacritty";
"$B" = "${pkgs.librewolf}/bin/librewolf";
"$L" = "${pkgs.rofi}/bin/rofi -show drun";
bind = [
"$S, Q, killactive"
(sx "T" "$T")
(sx "A" "$L")
(sx "F" "$B")
]
++ (ws_mul 1 10);
}