nix-config/modules/wm/swaync/default.nix

84 lines
1.9 KiB
Nix

{
services.swaync = {
enable = true;
settings = {
positionX = "right";
positionY = "top";
layer = "overlay";
control-center-layer = "top";
layer-shell = true;
cssPriority = "application";
control-center-margin-top = 0;
control-center-margin-bottom = 0;
control-center-margin-right = 0;
control-center-margin-left = 0;
notification-2fa-action = true;
notification-inline-replies = false;
notification-icon-size = 32;
notification-body-image-height = 100;
notification-body-image-width = 200;
widgets = [
"title"
"dnd"
"buttons-grid"
"volume"
"notifications"
"mpris"
];
widget-config = {
title = {
text = "Control Center";
clear-all-button = true;
button-text = " 󰆴 ";
};
buttons-grid = {
buttons-per-row = 3;
actions = [
{
label = " 󰖩 ";
command = "iwgtk";
}
{
label = " 󰂯 ";
command = "wezterm start -- bluetui";
}
{
label = " 󰍃 ";
command = "niri msg action quit";
}
{
label = " 󰌾 ";
command = "swaylock";
}
{
label = " 󰜉 ";
command = "systemctl reboot";
}
{
label = " 󰐥 ";
command = "systemctl poweroff";
}
];
};
dnd = {
text = "Do Not Disturb";
clear-all-button = true;
};
mpris = {
autohide = true;
show-album-art = "always";
loop-carousel = false;
};
};
};
style = ''
.notification-row {
outline: none;
}
.notification {
padding: 12px;
}
'';
};
}