178 lines
3.3 KiB
Nix
178 lines
3.3 KiB
Nix
{
|
|
enable = true;
|
|
settings = {
|
|
cssPriority = "user";
|
|
image-visibility = "when-available";
|
|
keyboard-shortcut = true;
|
|
relative-timestamps = true;
|
|
timeout = 5;
|
|
timeout-low = 5;
|
|
timeout-critical = 0;
|
|
script-fail-notify = true;
|
|
transition-time = 200;
|
|
|
|
# Layer settings
|
|
layer-shell = true;
|
|
layer = "overlay";
|
|
control-center-layer = "overlay";
|
|
|
|
# Notification settings
|
|
positionX = "right";
|
|
positionY = "top";
|
|
notification-2fa-action = true;
|
|
notification-inline-replies = false;
|
|
notification-icon-size = 48;
|
|
notification-body-image-height = 100;
|
|
notification-body-image-width = 200;
|
|
notification-window-width = 400;
|
|
|
|
# Control center settings
|
|
control-center-positionX = "right";
|
|
control-center-positionY = "top";
|
|
control-center-width = 500;
|
|
control-center-exclusive-zone = true;
|
|
fit-to-screen = true;
|
|
hide-on-action = true;
|
|
hide-on-clear = false;
|
|
|
|
# Widget settings
|
|
widgets = [
|
|
"title"
|
|
"dnd"
|
|
"notifications"
|
|
"mpris"
|
|
];
|
|
|
|
widget-config = {
|
|
title = {
|
|
text = "Notifications";
|
|
clear-all-button = true;
|
|
button-text = "Clear All";
|
|
};
|
|
dnd = {
|
|
text = "Do Not Disturb";
|
|
};
|
|
mpris = {
|
|
image-size = 96;
|
|
image-radius = 12;
|
|
blur = true;
|
|
};
|
|
};
|
|
};
|
|
# TODO: disable stylix, redo everything
|
|
style = ''
|
|
* {
|
|
all: unset;
|
|
}
|
|
|
|
progress,
|
|
progressbar,
|
|
trough {
|
|
border-radius: 16px;
|
|
}
|
|
|
|
.app-icon,
|
|
.image {
|
|
-gtk-icon-effect: none;
|
|
}
|
|
|
|
.notification-action {
|
|
border-radius: 6px;
|
|
margin: 3px;
|
|
}
|
|
|
|
.close-button {
|
|
margin: 12px;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.notification-group.collapsed
|
|
.notification-row:not(:last-child)
|
|
.notification-action,
|
|
.notification-group.collapsed
|
|
.notification-row:not(:last-child)
|
|
.notification-default-action {
|
|
opacity: 0;
|
|
}
|
|
|
|
.trough {
|
|
margin: 4px;
|
|
border-radius: 7px;
|
|
}
|
|
|
|
.notification,
|
|
.notification.low,
|
|
.notification.normal,
|
|
.notification.critical,
|
|
.control-center {
|
|
border-radius: 9px;
|
|
margin: 6px;
|
|
}
|
|
|
|
.floating-notifications,
|
|
.notification-content {
|
|
margin: 3px;
|
|
border-radius: 6px;
|
|
border: none;
|
|
}
|
|
|
|
.control-center-list {
|
|
background: transparent;
|
|
}
|
|
|
|
.widget-title {
|
|
margin: 0.5rem;
|
|
}
|
|
|
|
.widget-title > label {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.widget-title > button {
|
|
border-radius: 6px;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.widget-dnd {
|
|
margin: 0.5rem;
|
|
}
|
|
|
|
.widget-dnd > label {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.widget-dnd > switch {
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.widget-dnd > switch slider {
|
|
margin: 3px;
|
|
border-radius: 3px;
|
|
padding: 0px;
|
|
}
|
|
|
|
.widget-mpris .widget-mpris-player {
|
|
border-radius: 9px;
|
|
margin: 0.5rem;
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
.widget-mpris .widget-mpris-player .widget-mpris-album-art {
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.widget-mpris .widget-mpris-player .widget-mpris-title {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.widget-mpris .widget-mpris-player .widget-mpris-subtitle {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.widget-mpris .widget-mpris-player > box > button {
|
|
border-radius: 3px;
|
|
padding: 3px;
|
|
}
|
|
'';
|
|
}
|