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 = { programs.plasma = {
enable = true; enable = true;
overrideConfig = true;
# #
# Some high-level settings: # Some high-level settings:
@ -16,7 +17,7 @@
hotkeys.commands."launch-konsole" = { hotkeys.commands."launch-konsole" = {
name = "Launch Konsole"; name = "Launch Konsole";
key = "Meta+Alt+K"; key = "Meta+Enter";
command = "konsole"; command = "konsole";
}; };
@ -26,6 +27,7 @@
location = "bottom"; location = "bottom";
widgets = [ widgets = [
"org.kde.plasma.kickoff" "org.kde.plasma.kickoff"
"org.kde.plasma.pager"
# We can also configure the widgets. For example if you want to pin # We can also configure the widgets. For example if you want to pin
# konsole and dolphin to the task-launcher the following widget will # konsole and dolphin to the task-launcher the following widget will
# have that. # have that.
@ -42,15 +44,7 @@
"org.kde.plasma.systemtray" "org.kde.plasma.systemtray"
"org.kde.plasma.digitalclock" "org.kde.plasma.digitalclock"
]; ];
hiding = "autohide"; hiding = null;
}
# Global menu at the top
{
location = "top";
height = 26;
widgets = [
"org.kde.plasma.appmenu"
];
} }
]; ];
@ -69,7 +63,32 @@
"Switch Window Left" = "Meta+H"; "Switch Window Left" = "Meta+H";
"Switch Window Right" = "Meta+L"; "Switch Window Right" = "Meta+L";
"Switch Window Up" = "Meta+K"; "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 @@
}; };
}; };
}; };
} }