This commit is contained in:
Chris Kruining 2025-03-23 17:05:45 +01:00
parent 32f2213e88
commit ba45da3b8a
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
4 changed files with 36 additions and 42 deletions

View file

@ -57,8 +57,14 @@ in
immutableByDefault = true; immutableByDefault = true;
windows.allowWindowsToRememberPositions = true; windows.allowWindowsToRememberPositions = true;
session = {
general.askForConfirmationOnLogout = false;
sessionRestore.restoreOpenApplicationsOnLogin = "onLastLogout";
};
workspace = { workspace = {
colorScheme = "CatppuccinMocha"; clickItemTo = "select";
colorScheme = "EverforestDark";
wallpaper = config.stylix.image; wallpaper = config.stylix.image;
}; };
@ -89,8 +95,8 @@ in
location = "bottom"; location = "bottom";
floating = true; floating = true;
lengthMode = "fill"; lengthMode = "fill";
height = 32; height = 42;
hiding = "dodgewindows"; hiding = "none";
screen = "all"; screen = "all";
widgets = [ widgets = [
{ {
@ -154,7 +160,7 @@ in
}; };
}; };
launchers = [ launchers = [
"applications:org.kde.dolphin.desktop" "preferred://filemanager"
"preferred://browser" "preferred://browser"
"preferred://terminal" "preferred://terminal"
"preferred://editor" "preferred://editor"

View file

@ -25,8 +25,8 @@ in {
enable = true; enable = true;
settings = { settings = {
background-blur-radius = 20; background-blur-radius = 20;
# theme = "dark:stylix,light:stylix"; theme = "dark:stylix,light:stylix";
# window-theme = config.stylix.polarity; window-theme = (config.modules.${user}.themes.polarity or "dark");
background-opacity = 0.8; background-opacity = 0.8;
minimum-contrast = 1.1; minimum-contrast = 1.1;
}; };

View file

@ -11,24 +11,15 @@ in
config = mkIf config.modules.${user}.shell.toolset.starship.enable { config = mkIf config.modules.${user}.shell.toolset.starship.enable {
home-manager.users.${user}.programs.starship = { home-manager.users.${user}.programs.starship = {
enable = true; enable = true;
settings = let settings = {
# inherit (config.lib.stylix.colors) cyan red magenta yellow green blue;
cyan = "#00ffff";
red = "#ff0000";
magenta = "#ff00ff";
yellow = "#ffff00";
green = "#00ff00";
blue = "#0000ff";
in {
scan_timeout = 10; scan_timeout = 10;
add_newline = true; add_newline = true;
line_break.disabled = true; line_break.disabled = true;
format = "$username$hostname$nix_shell$git_branch$git_commit$git_state$git_status$directory$jobs$cmd_duration$character"; format = "$username$hostname$nix_shell$git_branch$git_commit$git_state$git_status$directory$jobs$cmd_duration$character";
username = { username = {
style_user = "${cyan} bold"; style_user = "cyan bold";
style_root = "${red} bold"; style_root = "red bold";
format = "[$user]($style) "; format = "[$user]($style) ";
disabled = false; disabled = false;
show_always = true; show_always = true;
@ -37,7 +28,7 @@ in
hostname = { hostname = {
ssh_only = false; ssh_only = false;
ssh_symbol = "🌐 "; ssh_symbol = "🌐 ";
format = "on [$hostname](bold ${red}) "; format = "on [$hostname](bold red) ";
trim_at = ".local"; trim_at = ".local";
disabled = false; disabled = false;
}; };
@ -45,28 +36,28 @@ in
nix_shell = { nix_shell = {
symbol = " "; symbol = " ";
format = "[$symbol$name]($style) "; format = "[$symbol$name]($style) ";
style = "${magenta} bold"; style = "magenta bold";
}; };
git_branch = { git_branch = {
only_attached = true; only_attached = true;
format = "[$symbol$branch]($style) "; format = "[$symbol$branch]($style) ";
symbol = ""; symbol = "";
style = "${yellow} bold"; style = "yellow bold";
}; };
git_commit = { git_commit = {
only_detached = true; only_detached = true;
format = "[$hash]($style) "; format = "[$hash]($style) ";
style = "${yellow} bold"; style = "yellow bold";
}; };
git_state = { git_state = {
style = "${magenta} bold"; style = "magenta bold";
}; };
git_status = { git_status = {
style = "${green} bold"; style = "green bold";
}; };
directory = { directory = {
@ -76,16 +67,16 @@ in
cmd_duration = { cmd_duration = {
format = "[$duration]($style) "; format = "[$duration]($style) ";
style = "${blue}"; style = "blue";
}; };
jobs = { jobs = {
style = "${green} bold"; style = "green bold";
}; };
character = { character = {
success_symbol = "[\\$](${green}} bold)"; success_symbol = "[\\$](green bold)";
error_symbol = "[\\$](${red} bold)"; error_symbol = "[\\$](red bold)";
}; };
}; };
}; };

View file

@ -27,21 +27,18 @@ in {
config = mkIf (cfg.enable) { config = mkIf (cfg.enable) {
modules.theming.enable = true; modules.theming.enable = true;
environment.sessionVariables = { QT_QPA_PLATFORMTHEME = "kde"; }; environment.sessionVariables = { QT_QPA_PLATFORMTHEME = "kde6"; };
home-manager.users.${user} = { home-manager.users.${user} = {
xdg.configFile."menus/applications.menu".source = "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu"; xdg.configFile."menus/applications.menu".source = "${pkgs.kdePackages.plasma-workspace}/etc/xdg/menus/plasma-applications.menu";
qt = { qt = {
enable = true; enable = true;
platformTheme.package = with pkgs.kdePackages; [ platformTheme = "kde6";
plasma-integration # style = {
systemsettings # package = pkgs.kdePackages.breeze;
]; # name = mkDefault "Breeze";
style = { # };
package = pkgs.kdePackages.breeze;
name = mkDefault "Breeze";
};
}; };
}; };
@ -65,8 +62,8 @@ in {
}; };
monospace = { monospace = {
package = pkgs.dejavu_fonts; package = pkgs.nerd-fonts.jetbrains-mono;
name = "DejaVu Sans Mono"; name = "JetBrainsMono Nerd Font Mono";
}; };
emoji = { emoji = {