mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
keyd config update for gnome
This commit is contained in:
parent
aaf12d0143
commit
c27ae47f11
@ -30,6 +30,7 @@ in {
|
|||||||
gnome.dconf-editor
|
gnome.dconf-editor
|
||||||
gnome.gnome-tweaks
|
gnome.gnome-tweaks
|
||||||
gnomeExtensions.focus-changer
|
gnomeExtensions.focus-changer
|
||||||
|
evolution
|
||||||
# TODO: Add back when fixed upstream
|
# TODO: Add back when fixed upstream
|
||||||
#gnomeExtensions.fullscreen-avoider
|
#gnomeExtensions.fullscreen-avoider
|
||||||
];
|
];
|
||||||
@ -202,8 +203,11 @@ in {
|
|||||||
minimize = [];
|
minimize = [];
|
||||||
};
|
};
|
||||||
} // generate_custom_keybindings {
|
} // generate_custom_keybindings {
|
||||||
"terminal" = { binding = "<Super>Return"; command = "kgx"; name = "Open Terminal"; };
|
"terminal" = { binding = "<Super><Control>Return"; command = "kgx"; name = "Open Terminal"; };
|
||||||
"browser" = { binding = "<Super><Control>b"; command = "google-chrome-stable --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'"; name = "Open Browser"; };
|
"browser" = { binding = "<Super><Control>b"; command = "google-chrome-stable --simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'"; name = "Open Browser"; };
|
||||||
|
"steam" = { binding = "<Super><Control>s"; command = "steam"; name = "Open Steam"; };
|
||||||
|
"discord" = { binding = "<Super><Control>d"; command = "discord"; name = "Open Discord"; };
|
||||||
|
"nautilus" = { binding = "<Super><Control>f"; command = "nautilus"; name = "Open File Manager"; };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -1,19 +1,33 @@
|
|||||||
{ config, lib, pkgs, user, inputs, ... }:
|
{ config, lib, pkgs, user, inputs, ... }:
|
||||||
{
|
let
|
||||||
services.keyd = {
|
cfg = config.modules.desktop.gnome;
|
||||||
enable = true;
|
in {
|
||||||
keyboards.true = {
|
# Only launch for Gnome
|
||||||
ids = [ "*" ];
|
# TODO: if using with other WMs/DEs revise this.
|
||||||
settings = {
|
config = lib.mkIf cfg.enable {
|
||||||
main = {
|
services.keyd = {
|
||||||
capslock = "overload(meta, esc)";
|
enable = true;
|
||||||
leftalt = "layer(alt)";
|
keyboards.true = {
|
||||||
};
|
ids = [ "*" ];
|
||||||
alt = {
|
settings = {
|
||||||
h = "left";
|
main = {
|
||||||
j = "down";
|
capslock = "overload(meta, esc)";
|
||||||
k = "up";
|
leftalt = "layer(alt)";
|
||||||
l = "right";
|
f1 = "oneshot(open)";
|
||||||
|
};
|
||||||
|
open = {
|
||||||
|
enter = "C-M-enter"; # terminal
|
||||||
|
b = "C-M-b"; # browser
|
||||||
|
s = "C-M-s"; # steam
|
||||||
|
d = "C-M-d"; # discord
|
||||||
|
f = "C-M-f"; # nautilus
|
||||||
|
};
|
||||||
|
alt = {
|
||||||
|
h = "left";
|
||||||
|
j = "down";
|
||||||
|
k = "up";
|
||||||
|
l = "right";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user