add plasma shortcuts

This commit is contained in:
Jonas Röger 2024-04-14 01:42:37 +02:00
parent c29b01fb30
commit 35eac3f4e1

View File

@ -1,7 +1,8 @@
{ pkgs, ... }:
{ pkgs, lib, ... }:
{
programs.plasma = {
enable = true;
overrideConfig = true;
#
# Some high-level settings:
@ -16,7 +17,7 @@
hotkeys.commands."launch-konsole" = {
name = "Launch Konsole";
key = "Meta+Alt+K";
key = "Meta+Enter";
command = "konsole";
};
@ -26,6 +27,7 @@
location = "bottom";
widgets = [
"org.kde.plasma.kickoff"
"org.kde.plasma.pager"
# We can also configure the widgets. For example if you want to pin
# konsole and dolphin to the task-launcher the following widget will
# have that.
@ -42,15 +44,7 @@
"org.kde.plasma.systemtray"
"org.kde.plasma.digitalclock"
];
hiding = "autohide";
}
# Global menu at the top
{
location = "top";
height = 26;
widgets = [
"org.kde.plasma.appmenu"
];
hiding = null;
}
];
@ -69,7 +63,32 @@
"Switch Window Left" = "Meta+H";
"Switch Window Right" = "Meta+L";
"Switch Window Up" = "Meta+K";
};
"Window Quick Tile Bottom" = "Meta+Shift+J";
"Window Quick Tile Left" = "Meta+Shift+H";
"Window Quick Tile Right" = "Meta+Shift+L";
"Window Quick Tile Top" = "Meta+Shift+K";
"Kill Window" = "Meta+Alt+Q";
"Window Close" = "Meta+Shift+Q";
} // (
with lib;
let
desktops = map toString (lists.range 1 8);
in
listToAttrs
(map
(i: {
name = "Switch to Desktop ${i}";
value = "Meta+${i}";
})
desktops)
//
listToAttrs (map
(i: {
name = "Window to Desktop ${i}";
value = "Meta+Shift+${i}";
})
desktops)
);
};
@ -86,4 +105,4 @@
};
};
};
}
}