feat(niri): use noctalia shell

This commit is contained in:
2025-10-17 22:39:14 +08:00
parent 465eb3c608
commit c71710867f
7 changed files with 209 additions and 4 deletions

View File

@@ -2,6 +2,7 @@
config,
lib,
pkgs,
assets,
...
}:
{
@@ -102,16 +103,16 @@
XDG_SESSION_DESKTOP = "niri";
NIXOS_OZONE_WL = "1";
NOCTALIA_SETTINGS_FALLBACK = "${config.my.hm.xdg.configHome}/noctalia/gui-settings.json";
};
spawn-at-startup = map (c: { command = c; }) [
[ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
[
"${lib.getExe pkgs.swaybg}"
"-m"
"fill"
"-i"
(toString ./wallpaper.png)
(toString assets.wallpaper)
]
[
"wl-paste"
@@ -129,6 +130,8 @@
"cliphist"
"store"
]
# [ "${lib.getExe' pkgs.swaynotificationcenter "swaync"}" ]
[ "noctalia-shell" ]
];
binds =

View File

@@ -2,6 +2,7 @@ args@{
lib,
config,
pkgs,
assets,
...
}:
let
@@ -63,6 +64,8 @@ in
swaynotificationcenter
nautilus
noctalia-shell
];
programs.wofi.enable = true;
xdg.configFile."wofi" = {
@@ -75,12 +78,144 @@ in
};
programs.waybar = {
enable = true;
systemd.enable = true;
systemd.enable = false;
};
xdg.configFile."waybar/config.jsonc".text = builtins.toJSON (import ./waybar/config.nix args);
xdg.configFile."waybar/style.css" = {
source = ./waybar/style.css;
};
programs.noctalia-shell = {
enable = true;
settings = {
audio.mprisBlacklist = [
"firefox"
"chromium"
"zen"
];
bar = {
density = "comfortable";
floating = true;
marginHorizontal = 0.5;
marginVertical = 0.5;
showCapsule = false;
widgets = {
left = [
{
customIconPath = "";
icon = "";
id = "ControlCenter";
useDistroLogo = true;
}
{
customFont = "";
formatHorizontal = "HH:mm MMdd ddd";
formatVertical = "HH mm - dd MM";
id = "Clock";
useCustomFont = false;
usePrimaryColor = true;
}
{
id = "SystemMonitor";
showCpuTemp = false;
showCpuUsage = true;
showDiskUsage = false;
showMemoryAsPercent = false;
showMemoryUsage = true;
showNetworkStats = true;
}
{
hideUnoccupied = false;
id = "Workspace";
labelMode = "none";
}
];
center = [
{
hideMode = "hidden";
id = "MediaMini";
scrollingMode = "hover";
showAlbumArt = true;
showVisualizer = true;
visualizerType = "wave";
}
];
right = [
{
hideWhenZero = true;
id = "NotificationHistory";
showUnreadBadge = true;
}
{
blacklist = [ ];
colorizeIcons = false;
id = "Tray";
}
{
displayMode = "onhover";
id = "Volume";
}
{
displayMode = "onhover";
id = "Microphone";
}
];
};
};
# FIXME: Customize
colorSchemes.predefinedScheme = "Tokyo-Night";
controlCenter = {
cards = [
{
enabled = true;
id = "profile-card";
}
{
enabled = true;
id = "shortcuts-card";
}
{
enabled = true;
id = "audio-card";
}
{
enabled = false;
id = "weather-card";
}
{
enabled = true;
id = "media-sysmon-card";
}
];
shortcuts = {
left = [ { id = "Bluetooth"; } ];
right = [ { id = "Notifications"; } ];
};
};
general = {
avatarImage = "${assets.avatar}";
scaleRatio = 1.05;
radiusRatio = 0.8;
};
location.weatherEnabled = false;
network.wifiEnabled = false;
notifications = {
alwaysOnTop = true;
location = "top_center";
};
osd = {
alwaysOnTop = true;
location = "top_center";
};
setupCompleted = true;
ui = {
# I love Jetbrains Mono
fontDefault = "Monospace";
fontFixed = "Monospace";
};
wallpaper.enabled = false;
};
};
};
};
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB