101 lines
2.5 KiB
Nix
101 lines
2.5 KiB
Nix
{ config, lib, cosmicLib, ... }:
|
|
|
|
{
|
|
wayland.desktopManager.cosmic = {
|
|
enable = true;
|
|
|
|
appearance = {
|
|
theme = {
|
|
mode = "dark";
|
|
dark = {
|
|
# Pink accent color
|
|
accent = cosmicLib.cosmic.mkRON "optional" {
|
|
red = 0.91;
|
|
green = 0.29;
|
|
blue = 0.60;
|
|
};
|
|
};
|
|
};
|
|
toolkit = {
|
|
apply_theme_global = true;
|
|
show_maximize = true;
|
|
show_minimize = true;
|
|
icon_theme = "Cosmic";
|
|
interface_density = cosmicLib.cosmic.mkRON "enum" "Standard";
|
|
};
|
|
};
|
|
|
|
wallpapers = [
|
|
{
|
|
output = "all";
|
|
source = cosmicLib.cosmic.mkRON "enum" {
|
|
value = [ "${config.home.homeDirectory}/Assets/wallpapers/sound.png" ];
|
|
variant = "Path";
|
|
};
|
|
scaling_mode = cosmicLib.cosmic.mkRON "enum" "Zoom";
|
|
filter_method = cosmicLib.cosmic.mkRON "enum" "Lanczos";
|
|
filter_by_theme = false;
|
|
sampling_method = cosmicLib.cosmic.mkRON "enum" "Alphanumeric";
|
|
rotation_frequency = 0;
|
|
}
|
|
];
|
|
|
|
compositor = {
|
|
autotile = false;
|
|
active_hint = true;
|
|
super_key_action = cosmicLib.cosmic.mkRON "enum" "Workspace";
|
|
|
|
# Flat mouse acceleration (no accel)
|
|
input_default = {
|
|
acceleration = cosmicLib.cosmic.mkRON "optional" {
|
|
profile = cosmicLib.cosmic.mkRON "optional" (cosmicLib.cosmic.mkRON "enum" "Flat");
|
|
speed = 0.0;
|
|
};
|
|
};
|
|
};
|
|
|
|
shortcuts = [
|
|
{
|
|
# Super+B -> Open browser
|
|
action = cosmicLib.cosmic.mkRON "enum" {
|
|
variant = "Spawn";
|
|
value = [ "librewolf" ];
|
|
};
|
|
key = "Super+b";
|
|
description = cosmicLib.cosmic.mkRON "optional" "Open Browser";
|
|
}
|
|
{
|
|
# Super+E -> Open file manager
|
|
action = cosmicLib.cosmic.mkRON "enum" {
|
|
variant = "Spawn";
|
|
value = [ "cosmic-files" ];
|
|
};
|
|
key = "Super+e";
|
|
description = cosmicLib.cosmic.mkRON "optional" "Open File Manager";
|
|
}
|
|
];
|
|
|
|
applets.time.settings = {
|
|
show_weekday = true;
|
|
show_date_in_top_panel = true;
|
|
military_time = false;
|
|
};
|
|
};
|
|
|
|
programs.cosmic-files = {
|
|
enable = true;
|
|
settings = {
|
|
app_theme = cosmicLib.cosmic.mkRON "enum" "System";
|
|
tab = {
|
|
folders_first = true;
|
|
icon_sizes = {
|
|
grid = 100;
|
|
list = 100;
|
|
};
|
|
show_hidden = false;
|
|
view = cosmicLib.cosmic.mkRON "enum" "List";
|
|
};
|
|
};
|
|
};
|
|
}
|