2020-02-17 17:00:59 +04:00
|
|
|
{ pkgs, lib, config, ... }:
|
2021-06-10 19:58:51 +04:00
|
|
|
with pkgs.my-lib; {
|
2020-02-17 17:00:59 +04:00
|
|
|
xdg.portal.enable = true;
|
2021-01-21 22:13:53 +04:00
|
|
|
services.dbus.packages =
|
|
|
|
[ pkgs.firefox pkgs.systemd pkgs.papirus-icon-theme ];
|
|
|
|
services.udev.packages = [ pkgs.libmtp pkgs.media-player-info ];
|
2020-06-21 20:23:14 +04:00
|
|
|
|
2020-02-17 17:00:59 +04:00
|
|
|
environment.sessionVariables = {
|
|
|
|
DESKTOP_SESSION = "kde";
|
|
|
|
QT_XFT = "true";
|
|
|
|
QT_SELECT = "5";
|
|
|
|
KDE_SESSION_VERSION = "5";
|
|
|
|
QT_SCALE_FACTOR = "1";
|
|
|
|
QT_AUTO_SCREEN_SCALE_FACTOR = "0";
|
2020-04-28 21:48:57 +04:00
|
|
|
QT_QPA_PLATFORMTHEME = "kde";
|
2021-01-21 22:13:53 +04:00
|
|
|
KDEDIRS =
|
|
|
|
"/run/current-system/sw:/run/current-system/sw/share/kservices5:/run/current-system/sw/share/kservicetypes5:/run/current-system/sw/share/kxmlgui5";
|
2020-02-17 17:00:59 +04:00
|
|
|
};
|
2021-06-10 19:58:51 +04:00
|
|
|
home-manager.users.balsoft = let fonts = config.themes.fonts;
|
|
|
|
in {
|
2021-01-21 22:13:53 +04:00
|
|
|
services.kdeconnect.enable = true;
|
|
|
|
|
2021-06-10 19:58:51 +04:00
|
|
|
xdg.configFile."kdeglobals".text = with thmDec; genIni {
|
2021-01-21 22:13:53 +04:00
|
|
|
"Colors:Button" = {
|
2021-06-10 19:58:51 +04:00
|
|
|
BackgroundAlternate = base01;
|
|
|
|
BackgroundNormal = base00;
|
|
|
|
DecorationFocus = base02;
|
|
|
|
DecorationHover = base02;
|
|
|
|
ForegroundActive = base02;
|
|
|
|
ForegroundInactive = base01;
|
|
|
|
ForegroundLink = base0D;
|
|
|
|
ForegroundNegative = base08;
|
|
|
|
ForegroundNeutral = base09;
|
|
|
|
ForegroundNormal = base05;
|
|
|
|
ForegroundPositive = base0B;
|
|
|
|
ForegroundVisited = base03;
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
|
|
|
"Colors:Complementary" = {
|
2021-06-10 19:58:51 +04:00
|
|
|
BackgroundAlternate = base01;
|
|
|
|
BackgroundNormal = base00;
|
|
|
|
DecorationFocus = base02;
|
|
|
|
DecorationHover = base02;
|
|
|
|
ForegroundActive = base09;
|
|
|
|
ForegroundInactive = base01;
|
|
|
|
ForegroundLink = base0D;
|
|
|
|
ForegroundNegative = base08;
|
|
|
|
ForegroundNeutral = base0A;
|
|
|
|
ForegroundNormal = base05;
|
|
|
|
ForegroundPositive = base0B;
|
|
|
|
ForegroundVisited = base02;
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
|
|
|
"Colors:Selection" = {
|
2021-06-10 19:58:51 +04:00
|
|
|
BackgroundAlternate = base0D;
|
|
|
|
BackgroundNormal = base0D;
|
|
|
|
DecorationFocus = base0D;
|
|
|
|
DecorationHover = base0D;
|
|
|
|
ForegroundActive = base05;
|
|
|
|
ForegroundInactive = base05;
|
|
|
|
ForegroundLink = base0D;
|
|
|
|
ForegroundNegative = base08;
|
|
|
|
ForegroundNeutral = base09;
|
|
|
|
ForegroundNormal = base05;
|
|
|
|
ForegroundPositive = base0B;
|
|
|
|
ForegroundVisited = base02;
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
|
|
|
"Colors:Tooltip" = {
|
2021-06-10 19:58:51 +04:00
|
|
|
BackgroundAlternate = base01;
|
|
|
|
BackgroundNormal = base00;
|
|
|
|
DecorationFocus = base02;
|
|
|
|
DecorationHover = base02;
|
|
|
|
ForegroundActive = base02;
|
|
|
|
ForegroundInactive = base01;
|
|
|
|
ForegroundLink = base0D;
|
|
|
|
ForegroundNegative = base08;
|
|
|
|
ForegroundNeutral = base09;
|
|
|
|
ForegroundNormal = base05;
|
|
|
|
ForegroundPositive = base0B;
|
|
|
|
ForegroundVisited = base03;
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
|
|
|
"Colors:View" = {
|
2021-06-10 19:58:51 +04:00
|
|
|
BackgroundAlternate = base01;
|
|
|
|
BackgroundNormal = base00;
|
|
|
|
DecorationFocus = base02;
|
|
|
|
DecorationHover = base02;
|
|
|
|
ForegroundActive = base02;
|
|
|
|
ForegroundInactive = base01;
|
|
|
|
ForegroundLink = base0D;
|
|
|
|
ForegroundNegative = base08;
|
|
|
|
ForegroundNeutral = base09;
|
|
|
|
ForegroundNormal = base05;
|
|
|
|
ForegroundPositive = base0B;
|
|
|
|
ForegroundVisited = base03;
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
|
|
|
"Colors:Window" = {
|
2021-06-10 19:58:51 +04:00
|
|
|
BackgroundAlternate = base01;
|
|
|
|
BackgroundNormal = base00;
|
|
|
|
DecorationFocus = base02;
|
|
|
|
DecorationHover = base02;
|
|
|
|
ForegroundActive = base02;
|
|
|
|
ForegroundInactive = base01;
|
|
|
|
ForegroundLink = base0D;
|
|
|
|
ForegroundNegative = base08;
|
|
|
|
ForegroundNeutral = base09;
|
|
|
|
ForegroundNormal = base05;
|
|
|
|
ForegroundPositive = base0B;
|
|
|
|
ForegroundVisited = base03;
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
|
|
|
General = {
|
|
|
|
ColorScheme = "Generated";
|
|
|
|
Name = "Generated";
|
2021-06-10 19:58:51 +04:00
|
|
|
fixed = "${fonts.mono.family},${toString fonts.mono.size},-1,5,50,0,0,0,0,0";
|
|
|
|
font = "${fonts.main.family},${toString fonts.main.size},-1,5,50,0,0,0,0,0";
|
|
|
|
menuFont = "${fonts.main.family},${toString fonts.main.size},-1,5,50,0,0,0,0,0";
|
2021-01-21 22:13:53 +04:00
|
|
|
shadeSortColumn = true;
|
2021-06-10 19:58:51 +04:00
|
|
|
smallestReadableFont =
|
|
|
|
"${fonts.main.family},${toString fonts.main.size},-1,5,57,0,0,0,0,0,Medium";
|
|
|
|
toolBarFont = "${fonts.main.family},${toString fonts.main.size},-1,5,50,0,0,0,0,0";
|
2021-01-21 22:13:53 +04:00
|
|
|
};
|
|
|
|
KDE = {
|
|
|
|
DoubleClickInterval = 400;
|
|
|
|
ShowDeleteCommand = true;
|
|
|
|
SingleClick = false;
|
|
|
|
StartDragDist = 4;
|
|
|
|
StartDragTime = 500;
|
|
|
|
WheelScrollLines = 3;
|
|
|
|
contrast = 4;
|
|
|
|
widgetStyle = "Breeze";
|
|
|
|
};
|
|
|
|
Icons = { Theme = "Papirus-Dark"; };
|
2020-02-17 17:00:59 +04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|