From 8c747172a74f5f4f8ce92c487b2b26d48039727e Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Fri, 7 Jun 2024 22:08:54 +0100 Subject: [PATCH] [tohru] Stop GNOME overriding VS Code keybindings for Copy Line Up/Down --- home/gnome/default.nix | 1 + home/gnome/keyboard.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 home/gnome/keyboard.nix diff --git a/home/gnome/default.nix b/home/gnome/default.nix index 9e5a1ee..160be51 100644 --- a/home/gnome/default.nix +++ b/home/gnome/default.nix @@ -4,5 +4,6 @@ imports = [ # TODO: nix-ify other parts of GNOME config ./appearance.nix + ./keyboard.nix ]; } diff --git a/home/gnome/keyboard.nix b/home/gnome/keyboard.nix new file mode 100644 index 0000000..7950cb8 --- /dev/null +++ b/home/gnome/keyboard.nix @@ -0,0 +1,15 @@ +# { config, lib, pkgs, ... }: + +{ + dconf = { + enable = true; + settings = { + "org/gnome/desktop/wm/keybindings" = { + # These are largely useless on most normal systems + # and conflict with VS Code's default keybinds for "Copy Line Up/Down" + move-to-workspace-up = [ ]; + move-to-workspace-down = [ ]; + }; + }; + }; +}