Key : Migrate meta keys to specific apps.

This commit is contained in:
Dmitry Voronin 2024-04-14 23:09:59 +03:00
parent 9082764b58
commit 11ea09cf74
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
6 changed files with 14 additions and 19 deletions

View file

@ -1,6 +1,6 @@
{ key, ... }: {
text = ''
leader = "${key.meta.app.nvim}"
leader = "${key.nvim.leader}"
vim.g.mapleader = leader
vim.g.maplocalleader = leader

View file

@ -1,5 +1,5 @@
{ style, key, util, setting, ... }: let
mod = key.meta.shell.tmux;
mod = key.tmux.mod;
accent = style.color.accent;
bg = style.color.bg.dark;

View file

@ -1,5 +1,5 @@
{ lib, key, ... }: let
mod = key.meta.window.gnome;
mod = key.gnome.mod;
in {
programs.dconf.enable = true;
programs.dconf.profiles.user = {

View file

@ -8,7 +8,7 @@
./module/Style.nix
./module/Display.nix
./module/Input.nix
./module/Leader.nix
./module/Mod.nix
./module/Font.nix
./module/Launcher.nix
./module/Terminal.nix

View file

@ -1,6 +1,6 @@
{ key, ... }: {
text = ''
# Meta key. Use Mod1 for Alt.
set $mod ${key.meta.window.sway}
set $mod ${key.sway.mod}
'';
}

View file

@ -1,13 +1,4 @@
{ ... }: {
meta = {
app.nvim = " ";
shell.tmux = "M";
window = {
sway = "Mod4";
gnome = "<Super>";
};
};
navigation = {
go = {
down = "s";
@ -52,6 +43,7 @@
nvim = {
buffer.new = "n";
leader = " ";
colorscheme.toggle = {
contrast = "[";
light = "]";
@ -84,6 +76,7 @@
};
tmux = {
mod = "M";
prefix = "t";
reload = "r";
scroll = {
@ -111,6 +104,8 @@
};
sway = {
launch.terminal = "Escape";
mod = "Mod4";
notification = {
dismiss = "shift+N";
restore = "n";
@ -119,8 +114,9 @@
selection = "v";
screen = "shift+V";
};
launch.terminal = "Escape";
window = {
layout.toggle = "Tab";
fullscreen = "f";
floating = {
toggle = "shift+f";
cycle = "r";
@ -129,17 +125,16 @@
horizontal = "backslash";
vertical = "minus";
};
layout.toggle = "Tab";
fullscreen = "f";
};
};
gnome = {
launch.terminal = "Escape";
mod = "<Super>";
screenshot = "v";
window = {
switch = "Tab";
fullscreen = "f";
};
launch.terminal = "Escape";
screenshot = "v";
};
}