From 1032c2f760f26dc4a0037c14cb65d1184a83bdb4 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 25 Aug 2024 04:48:55 +0300 Subject: [PATCH] Keyd : Add Nautilus. --- home/config/keyd/module/Firefox.nix | 36 +++++++++++------------ home/config/keyd/module/Jetbrains.nix | 41 ++++++++++++++------------- home/config/keyd/module/Nautilus.nix | 26 +++++++++++++++++ 3 files changed, 65 insertions(+), 38 deletions(-) create mode 100644 home/config/keyd/module/Nautilus.nix diff --git a/home/config/keyd/module/Firefox.nix b/home/config/keyd/module/Firefox.nix index 5bd7c048..26d9a171 100644 --- a/home/config/keyd/module/Firefox.nix +++ b/home/config/keyd/module/Firefox.nix @@ -1,24 +1,24 @@ { pkgs, ... }: { file = (pkgs.formats.ini {}).generate "KeydFirefoxConfig" { "firefox-esr" = { - "alt.E" = "C-S-pagedown"; - "alt.N" = "S-f3"; - "alt.Q" = "C-S-pageup"; - "alt.a" = "A-left"; - "alt.capslock" = "C-t"; - "alt.d" = "A-right"; - "alt.e" = "C-pagedown"; - "alt.f" = "C-f"; - "alt.l" = "A-S-a"; - "alt.n" = "f3"; - "alt.p" = "C-S-l"; - "alt.q" = "C-pageup"; - "alt.r" = "C-f5"; - "alt.s" = "down"; - "alt.space" = "f6"; - "alt.u" = "C-S-t"; - "alt.w" = "up"; - "alt.x" = "C-w"; + "alt.capslock" = "C-t"; # New tab. + "alt.x" = "C-w"; # Close tab. + "alt.u" = "C-S-t"; # Restore closed tab. + "alt.q" = "C-pageup"; # Prev tab. + "alt.e" = "C-pagedown"; # Next tab. + "alt.Q" = "C-S-pageup"; # Move tab left. + "alt.E" = "C-S-pagedown"; # Move tab right. + "alt.a" = "A-left"; # Go back. + "alt.d" = "A-right"; # Go forward. + "alt.s" = "down"; # Scroll down. + "alt.w" = "up"; # Scroll up. + "alt.f" = "C-f"; # Find text. + "alt.N" = "S-f3"; # Find prev. + "alt.n" = "f3"; # Find next. + "alt.space" = "f6"; # Focus address bar. + "alt.r" = "C-f5"; # Full refresh. + "alt.l" = "A-S-a"; # Toggle dark mode. + "alt.p" = "C-S-l"; # Fill password. }; }; } diff --git a/home/config/keyd/module/Jetbrains.nix b/home/config/keyd/module/Jetbrains.nix index cb4026c9..f4361102 100644 --- a/home/config/keyd/module/Jetbrains.nix +++ b/home/config/keyd/module/Jetbrains.nix @@ -1,26 +1,27 @@ { pkgs, ... }: { file = (pkgs.formats.ini {}).generate "KeydJetbrainsConfig" { "jetbrains-*" = { - "alt./" = "C-/"; - "alt.=" = "C-A-l"; - "alt.a" = "C-A-5"; - "alt.c" = "S-escape"; - "alt.capslock" = "C-A-S-insert"; - "alt.d" = "S-f9"; - "alt.e" = "A-right"; - "alt.f" = "C-S-f"; - "alt.g" = "macro(gd)"; - "alt.i" = "C-i"; - "alt.n" = "C-A-n"; - "alt.o" = "C-o"; - "alt.q" = "A-left"; - "alt.r" = "S-f10"; - "alt.s" = "C-A-s"; - "alt.tab" = "timeout(f8, 150, macro2(0, 0, f7))"; - "alt.v" = "C-q"; - "alt.w" = "C-S-A-t"; - "alt.x" = "C-f4"; - "alt.z" = "C-f2"; + "alt./" = "C-/"; # Toggle comment. + "alt.= " = "C-A-l"; # Reformat. + "alt.c" = "S-escape"; # Close panel. + "alt.capslock" = "C-A-S-insert"; # New scratch file. + "alt.q" = "A-left"; # Prev tab. + "alt.e" = "A-right"; # Next tab. + "alt.x" = "C-f4"; # Close tab. + "alt.f" = "C-S-f"; # Find text. + "alt.n" = "C-A-n"; # Find next. + "alt.g" = "macro(gd)"; # Go to definition. + "alt.i" = "C-i"; # Implement. + "alt.o" = "C-o"; # Override. + "alt.r" = "S-f10"; # Run. + "alt.z" = "C-f2"; # Stop app. + "alt.d" = "S-f9"; # Run debugger. + "alt.a" = "C-A-5"; # Attach debugger. + "alt.s" = "C-A-s"; # Settings. + "alt.v" = "C-q"; # Show doc under cursor. + "alt.w" = "C-S-A-t"; # Refactor selection. + + "alt.tab" = "timeout(f8, 150, macro2(0, 0, f7))"; # Tap to step over, hold to step into. }; }; } diff --git a/home/config/keyd/module/Nautilus.nix b/home/config/keyd/module/Nautilus.nix new file mode 100644 index 00000000..60cb1bf2 --- /dev/null +++ b/home/config/keyd/module/Nautilus.nix @@ -0,0 +1,26 @@ +{ pkgs, ... }: { + file = (pkgs.formats.ini {}).generate "KeydNautilusConfig" { + "org-gnome-nautilus" = { + "alt.capslock" = "C-t"; # New tab. + "alt.o" = "C-n"; # New window. + "alt.x" = "C-w"; # Close tab. + "alt.u" = "C-S-t"; # Restore tab. + "alt.e" = "C-pagedown"; # Next tab. + "alt.q" = "C-pageup"; # Prev tab. + "alt.E" = "C-S-pagedown"; # Move tab next. + "alt.Q" = "C-S-pageup"; # Move tab prev. + "alt.z" = "C-h"; # Toggle hidden files. + "alt.1" = "C-1"; # List view. + "alt.2" = "C-2"; # Grid view. + "alt.s" = "A-up"; # Go back. + "alt.space" = "C-l"; # Focus location bar. + "alt.A" = "C-S-i"; # Invert selection. + "alt.v" = "C-i"; # File info. + "alt.d" = "C-S-delete"; # Delete file. + "alt.w" = "f2"; # Rename. + "alt.a" = "C-S-n"; # Create dir. + "alt.f" = "C-f"; # Search dir. + "alt.r" = "f5"; # Refresh dir. + }; + }; +}