nixos-config/home-manager/plasma.nix

104 lines
2.2 KiB
Nix
Raw Normal View History

2024-06-25 12:11:51 +02:00
{ pkgs, extra, ... }:
{
programs.plasma = {
enable = true;
overrideConfig = true;
workspace = {
lookAndFeel = "org.kde.breezedark.desktop";
wallpaperPictureOfTheDay.provider = "simonstalenhag";
};
kscreenlocker = {
wallpaperPictureOfTheDay.provider = "simonstalenhag";
};
hotkeys.commands."launch-alacritty" = {
name = "Launch alacritty";
key = "Meta+Return";
command = "alacritty";
};
hotkeys.commands."cpypsk" = {
name = "Launch cpypsk";
key = "Meta+p";
command = "${extra.cpypsk}";
};
fonts = {
general = {
family = "SAX2 Nerd Font";
pointSize = 10;
};
};
panels = [
{
location = "bottom";
floating = true;
height = 44;
widgets = [
{
name = "org.kde.plasma.kickoff";
config = {
General.icon = "nix-snowflake-white";
};
}
{
name = "org.kde.plasma.icontasks";
config = {
General.launchers = [
"applications:thunderbird.desktop"
"applications:Alacritty.desktop"
"applications:firefox.desktop"
"applications:discord.desktop"
];
};
}
{
systemTray.items = {
shown = [
"org.kde.plasma.battery"
"org.kde.plasma.bluetooth"
"org.kde.plasma.networkmanagement"
"org.kde.plasma.volume"
];
};
}
{
digitalClock = {
calendar.firstDayOfWeek = "monday";
time.format = "24h";
};
}
];
}
];
window-rules = [
{
description = "alacritty";
match = {
window-class = {
value = "Alacritty";
type = "substring";
};
window-types = [ "normal" ];
};
apply = {
noborder = {
value = true;
apply = "force";
};
maximizehoriz = true;
maximizevert = true;
};
}
];
};
home.packages = [
extra.rc2nix
];
}