{ 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); }