# Cons:
# * Does not support set 3-finger swipe directions
# * Extensions use JS
{ pkgs, ... }: let
  plasma-manager = (import <nixpkgs> {}).fetchFromGitHub {
    owner = "nix-community";
    repo = "plasma-manager";
    rev = "51816be33a1ff0d4b22427de83222d5bfa96d30e";
    hash = "sha256-d5Q1GmQ+sW1Bt8cgDE0vOihzLaswsm8cSdg8124EqXE=";
  };
in {
  imports = [
    (plasma-manager + "/modules")
  ];
  home.packages = [
    # Plasma6 extension also uses javascript! It is insane!
    pkgs.kdePackages.dynamic-workspaces
  ];
  programs = {
    plasma = {
      enable = true;
      shortcuts = {
        kwin = {
          "Window Maximize" = "Meta+Up";
          "Window Quick Tile Top Left" = "Meta+[";
          "Window Quick Tile Top Right" = "Meta+]";
          "Window Quick Tile Bottom Left" = "Meta+,";
          "Window Quick Tile Bottom Right" = "Meta+.";
          "Switch One Desktop to the Left" = "Ctrl+Alt+Left";
          "Switch One Desktop to the Right" = "Ctrl+Alt+Right";
          "Window One Desktop to the Left" = "Ctrl+Meta+Left";
          "Window One Desktop to the Right" = "Ctrl+Meta+Right";
        };
      };
    };
  };
}