Inputs & Shortcuts
Keyboard & Mouse
Configure hardware input settings.
programs.plasma.input = {
keyboard = {
layouts = [
{ layout = "us"; }
{ layout = "de"; variant = "neo"; }
];
numlockOnStartup = "on";
repeatRate = 50;
};
touchpads = [
{
enable = true;
disableWhileTyping = true;
naturalScroll = true;
tapToClick = true;
}
];
mice = [
{
enable = true;
acceleration = -0.5;
}
];
};
Global Shortcuts
Map keys to existing KWin or Application actions. These modify kglobalshortcutsrc.
programs.plasma.shortcuts = {
ksmserver = {
"Lock Session" = [ "Meta+Ctrl+Alt+L" "Screensaver" ];
};
kwin = {
"Overview" = "Meta+W";
"Switch Window Down" = "Meta+J";
};
# Application specific
"services/org.kde.spectacle.desktop"."_launch" = "Print";
};
Custom Hotkeys
Create new commands that execute shell scripts when keys are pressed.
programs.plasma.hotkeys.commands."launch-terminal" = {
name = "Launch Terminal";
key = "Meta+Return";
command = "konsole";
};