Back to DEs
This commit is contained in:
101
modules/home/cosmic.nix
Normal file
101
modules/home/cosmic.nix
Normal file
@@ -0,0 +1,101 @@
|
||||
{ config, lib, cosmicLib, ... }:
|
||||
|
||||
{
|
||||
wayland.desktopManager.cosmic = {
|
||||
enable = true;
|
||||
|
||||
# --- Appearance / Theme ---
|
||||
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";
|
||||
};
|
||||
};
|
||||
|
||||
# --- Wallpaper ---
|
||||
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 ---
|
||||
compositor = {
|
||||
autotile = false;
|
||||
active_hint = true;
|
||||
|
||||
# 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# --- Keyboard Shortcuts ---
|
||||
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";
|
||||
}
|
||||
];
|
||||
|
||||
# --- Panel: show weekday + 24h clock in top panel ---
|
||||
applets.time.settings = {
|
||||
show_weekday = true;
|
||||
show_date_in_top_panel = true;
|
||||
military_time = false;
|
||||
};
|
||||
};
|
||||
|
||||
# --- COSMIC Files ---
|
||||
programs.cosmic-files = {
|
||||
enable = true;
|
||||
settings = {
|
||||
app_theme = cosmicLib.cosmic.mkRON "enum" "System";
|
||||
tab = {
|
||||
folders_first = true;
|
||||
show_hidden = false;
|
||||
view = cosmicLib.cosmic.mkRON "enum" "List";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user