nix/home-manager/common/desktops/plasma6/plasma-manager.nix

160 lines
4 KiB
Nix
Raw Normal View History

2024-06-19 15:06:09 +02:00
{ theme, ... }: {
2024-06-21 02:25:43 +02:00
programs.konsole = {
defaultProfile = "Default";
profiles.Default = {
name = "Default";
font = {
name = "Jetbrains Mono";
};
};
};
programs.plasma = {
2024-06-20 06:13:57 +02:00
enable = true;
overrideConfig = true;
2024-06-19 15:41:22 +02:00
configFile = {
2024-06-20 07:14:56 +02:00
kscreenlockerrc = {
2024-06-20 14:56:04 +02:00
# Laptop - natural scrolling
"kcminputrc"."Libinput/2362/628/PIXA3854:00 093A:0274 Touchpad"."NaturalScroll" = true;
2024-06-20 07:14:56 +02:00
# Set Lock Screen Wallpaper
"Greeter/Wallpaper/org.kde.image/General" = {
Image = "/etc/nixos/git/wallpapers/${theme}/wallpaper1.png";
PreviewImage = "/etc/nixos/git/wallpapers/${theme}/wallpaper1.png";
};
2024-06-20 14:56:04 +02:00
};
2024-06-20 07:14:56 +02:00
kwinrc = {
2024-06-20 12:53:01 +02:00
# Tiling - Laptop
2024-06-20 13:20:28 +02:00
"Tiling/d67b1509-69a3-585f-adcc-1048a4265c4f"."tiles" = "{
\"layoutDirection\":\"horizontal\",
\"tiles\":[
{
\"layoutDirection\":\"vertical\",
\"tiles\":[
{
\"height\":0.5
},
{
\"height\":0.5
}
],
2024-06-20 14:56:04 +02:00
\"width\":0.4
2024-06-20 13:20:28 +02:00
},
{
2024-06-20 14:56:04 +02:00
\"width\":0.6
2024-06-20 13:20:28 +02:00
}
]
}";
2024-06-20 13:09:02 +02:00
2024-06-20 12:53:01 +02:00
Tiling = {
padding = 10;
2024-06-20 12:54:01 +02:00
};
2024-06-20 13:09:02 +02:00
2024-06-20 12:26:40 +02:00
# Set window border size
"org.kde.kdecoration2" = {
BorderSize = "None";
BorderSizeAuto = false;
};
2024-06-20 14:56:04 +02:00
2024-06-20 07:14:56 +02:00
# Set NightLight coordinates
NightColor = {
Active = true;
Mode = "Location";
2024-06-20 14:56:04 +02:00
NightTemperature = 3500;
2024-06-20 07:14:56 +02:00
LatitudeFixed = 34.6583850931677;
LongitudeFixed = 138.0368098159509;
};
2024-06-20 14:56:04 +02:00
2024-06-20 07:14:56 +02:00
# Set Virtual Desktops
Desktops = {
2024-06-20 07:19:40 +02:00
Rows = 1;
2024-06-20 07:14:56 +02:00
Number = {
value = 4;
immutable = true;
};
};
};
2024-06-19 15:41:22 +02:00
};
2024-06-19 15:06:09 +02:00
workspace = {
2024-06-19 15:41:22 +02:00
clickItemTo = "select";
2024-06-20 14:56:04 +02:00
iconTheme = "Papirus";
2024-06-20 06:17:09 +02:00
wallpaper = "/etc/nixos/git/wallpapers/${theme}/wallpaper1.png";
2024-06-19 15:06:09 +02:00
theme = "Arc-Dark";
colorScheme = "Arc";
2024-06-20 07:19:40 +02:00
cursor.theme = "Adwaita";
2024-06-20 07:14:56 +02:00
};
2024-06-19 15:06:09 +02:00
panels = [
{
location = "bottom";
2024-06-19 15:41:22 +02:00
floating = true;
2024-06-20 06:33:01 +02:00
height = 38;
2024-06-19 15:41:22 +02:00
2024-06-19 15:06:09 +02:00
widgets = [
{
2024-06-20 06:33:01 +02:00
name = "org.kde.plasma.kicker";
2024-06-19 15:06:09 +02:00
config = {
General.icon = "nix-snowflake-white";
};
}
{
name = "org.kde.plasma.icontasks";
config = {
General.launchers = [
"applications:org.kde.dolphin.desktop"
"applications:firefox.desktop"
"applications:bitwarden.desktop"
"applications:org.kde.konsole.desktop"
"applications:steam.desktop"
];
};
}
"org.kde.plasma.marginsseparator"
2024-06-19 15:25:59 +02:00
"org.kde.plasma.pager"
2024-06-19 15:06:09 +02:00
{
2024-06-19 16:18:23 +02:00
systemTray = {
icons.spacing = "small";
2024-06-19 15:06:09 +02:00
items = {
shown = [
"org.kde.plasma.volume"
"org.kde.plasma.networkmanagement"
];
hidden = [
"org.kde.plasma.bluetooth"
"org.kde.plasma.mediaplayer"
"org.kde.plasma.manage-inputmethod"
"org.kde.plasma.keyboardindicator"
"org.kde.plasma.keyboardlayout"
"org.kde.plasma.cameraindicator"
2024-06-19 16:09:35 +02:00
"org.kde.plasma.brightness"
2024-06-19 16:11:12 +02:00
"org.kde.plasma.nightlight"
2024-06-20 06:33:01 +02:00
"org.kde.plasma.clipboard"
2024-06-19 15:06:09 +02:00
];
};
};
}
{
digitalClock = {
calendar.firstDayOfWeek = "sunday";
time = {
format = "24h";
showSeconds = "never";
};
2024-06-19 15:41:22 +02:00
date.enable = false;
2024-06-19 15:06:09 +02:00
};
}
];
}
];
fonts = {
general = {
family = "JetBrains Mono";
pointSize = 12;
};
2024-01-01 06:42:36 +01:00
};
};
2024-01-02 09:46:23 +01:00
}