2024-02-23 16:07:24 +03:00
|
|
|
{ pkgs, ... }:
|
2022-06-23 00:42:18 +03:00
|
|
|
{
|
2024-04-01 00:29:18 +03:00
|
|
|
home.stateVersion = "23.11";
|
|
|
|
|
2022-06-23 00:42:18 +03:00
|
|
|
programs.plasma = {
|
|
|
|
enable = true;
|
|
|
|
|
2024-01-11 01:51:52 +03:00
|
|
|
#
|
2022-06-24 02:25:24 +03:00
|
|
|
# Some high-level settings:
|
2024-01-11 01:51:52 +03:00
|
|
|
#
|
|
|
|
workspace = {
|
2024-05-23 22:52:58 +03:00
|
|
|
clickItemTo = "open"; # If you liked the click-to-open default from plasma 5
|
2024-01-11 01:51:52 +03:00
|
|
|
lookAndFeel = "org.kde.breezedark.desktop";
|
2024-06-13 17:10:07 +03:00
|
|
|
cursor = {
|
|
|
|
theme = "Bibata-Modern-Ice";
|
|
|
|
size = 32;
|
|
|
|
};
|
2024-01-11 01:51:52 +03:00
|
|
|
iconTheme = "Papirus-Dark";
|
2024-05-23 22:52:58 +03:00
|
|
|
wallpaper = "${pkgs.kdePackages.plasma-workspace-wallpapers}/share/wallpapers/Patak/contents/images/1080x1920.png";
|
2024-01-11 01:51:52 +03:00
|
|
|
};
|
2022-06-23 00:42:18 +03:00
|
|
|
|
2024-03-27 17:07:15 +03:00
|
|
|
hotkeys.commands."launch-konsole" = {
|
|
|
|
name = "Launch Konsole";
|
2022-06-24 02:25:24 +03:00
|
|
|
key = "Meta+Alt+K";
|
|
|
|
command = "konsole";
|
|
|
|
};
|
|
|
|
|
2024-04-29 22:03:56 +03:00
|
|
|
fonts = {
|
|
|
|
general = {
|
|
|
|
family = "JetBrains Mono";
|
|
|
|
pointSize = 12;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-11 01:51:52 +03:00
|
|
|
panels = [
|
|
|
|
# Windows-like panel at the bottom
|
|
|
|
{
|
|
|
|
location = "bottom";
|
|
|
|
widgets = [
|
2024-04-30 12:12:36 +03:00
|
|
|
# We can configure the widgets by adding the name and config
|
|
|
|
# attributes. For example to add the the kickoff widget and set the
|
|
|
|
# icon to "nix-snowflake-white" use the below configuration. This will
|
|
|
|
# add the "icon" key to the "General" group for the widget in
|
|
|
|
# ~/.config/plasma-org.kde.plasma.desktop-appletsrc.
|
|
|
|
{
|
|
|
|
name = "org.kde.plasma.kickoff";
|
|
|
|
config = {
|
|
|
|
General.icon = "nix-snowflake-white";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
# Adding configuration to the widgets can also for example be used to
|
|
|
|
# pin apps to the task-manager, which this example illustrates by
|
|
|
|
# pinning dolphin and konsole to the task-manager by default.
|
2024-04-01 00:29:18 +03:00
|
|
|
{
|
|
|
|
name = "org.kde.plasma.icontasks";
|
|
|
|
config = {
|
|
|
|
General.launchers = [
|
|
|
|
"applications:org.kde.dolphin.desktop"
|
|
|
|
"applications:org.kde.konsole.desktop"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
2024-04-30 12:12:36 +03:00
|
|
|
# If no configuration is needed, specifying only the name of the
|
|
|
|
# widget will add them with the default configuration.
|
2024-04-22 19:53:33 +03:00
|
|
|
"org.kde.plasma.marginsseparator"
|
2024-05-05 00:09:22 +03:00
|
|
|
# If you need configuration for your widget, instead of specifying the
|
|
|
|
# the keys and values directly using the config attribute as shown
|
|
|
|
# above, plasma-manager also provides some higher-level interfaces for
|
|
|
|
# configuring the widgets. See modules/widgets for supported widgets
|
2024-05-19 22:10:23 +03:00
|
|
|
# and options for these widgets. The widgets below shows two examples
|
|
|
|
# of usage, one where we add a digital clock, setting 12h time and
|
|
|
|
# first day of the week to sunday and another adding a systray with
|
|
|
|
# some modifications in which entries to show.
|
2024-05-05 00:09:22 +03:00
|
|
|
{
|
|
|
|
digitalClock = {
|
|
|
|
calendar.firstDayOfWeek = "sunday";
|
|
|
|
time.format = "12h";
|
|
|
|
};
|
|
|
|
}
|
2024-05-19 22:10:23 +03:00
|
|
|
{
|
|
|
|
systemTray.items = {
|
|
|
|
# We explicitly show bluetooth and battery
|
|
|
|
shown = [
|
|
|
|
"org.kde.plasma.battery"
|
|
|
|
"org.kde.plasma.bluetooth"
|
|
|
|
];
|
|
|
|
# And explicitly hide networkmanagement and volume
|
|
|
|
hidden = [
|
|
|
|
"org.kde.plasma.networkmanagement"
|
|
|
|
"org.kde.plasma.volume"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
2024-01-11 01:51:52 +03:00
|
|
|
];
|
2024-04-01 00:29:18 +03:00
|
|
|
hiding = "autohide";
|
2024-01-11 01:51:52 +03:00
|
|
|
}
|
|
|
|
# Global menu at the top
|
|
|
|
{
|
|
|
|
location = "top";
|
|
|
|
height = 26;
|
|
|
|
widgets = [
|
|
|
|
"org.kde.plasma.appmenu"
|
|
|
|
];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2024-06-22 21:48:19 +03:00
|
|
|
window-rules = [
|
|
|
|
{
|
|
|
|
description = "Dolphin";
|
|
|
|
match = {
|
|
|
|
window-class = {
|
|
|
|
value = "dolphin";
|
|
|
|
type = "substring";
|
|
|
|
};
|
|
|
|
window-types = [ "normal" ];
|
|
|
|
};
|
|
|
|
apply = {
|
|
|
|
noborder = {
|
|
|
|
value = true;
|
|
|
|
apply = "force";
|
|
|
|
};
|
|
|
|
# `apply` defaults to "apply-initially"
|
|
|
|
maximizehoriz = true;
|
|
|
|
maximizevert = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2024-01-11 01:51:52 +03:00
|
|
|
|
|
|
|
#
|
2022-06-24 02:25:24 +03:00
|
|
|
# Some mid-level settings:
|
2024-01-11 01:51:52 +03:00
|
|
|
#
|
2022-06-23 02:53:37 +03:00
|
|
|
shortcuts = {
|
|
|
|
ksmserver = {
|
|
|
|
"Lock Session" = [ "Screensaver" "Meta+Ctrl+Alt+L" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
kwin = {
|
|
|
|
"Expose" = "Meta+,";
|
|
|
|
"Switch Window Down" = "Meta+J";
|
|
|
|
"Switch Window Left" = "Meta+H";
|
|
|
|
"Switch Window Right" = "Meta+L";
|
|
|
|
"Switch Window Up" = "Meta+K";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-01-11 01:51:52 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Some low-level settings:
|
|
|
|
#
|
2023-12-19 11:51:51 +03:00
|
|
|
configFile = {
|
2024-04-30 12:12:36 +03:00
|
|
|
baloofilerc."Basic Settings"."Indexing-Enabled" = false;
|
|
|
|
kwinrc."org.kde.kdecoration2".ButtonsOnLeft = "SF";
|
|
|
|
kwinrc.Desktops.Number = {
|
2024-03-27 15:42:15 +03:00
|
|
|
value = 8;
|
|
|
|
# Forces kde to not change this value (even through the settings app).
|
|
|
|
immutable = true;
|
|
|
|
};
|
2024-04-30 12:12:36 +03:00
|
|
|
kscreenlockerrc = {
|
|
|
|
Greeter.WallpaperPlugin = "org.kde.potd";
|
|
|
|
# To use nested groups use / as a separator. In the below example,
|
|
|
|
# Provider will be added to [Greeter][Wallpaper][org.kde.potd][General].
|
|
|
|
"Greeter/Wallpaper/org.kde.potd/General".Provider = "bing";
|
|
|
|
};
|
2023-12-19 11:51:51 +03:00
|
|
|
};
|
2022-06-23 00:42:18 +03:00
|
|
|
};
|
|
|
|
}
|
2024-05-23 22:52:58 +03:00
|
|
|
|