Added swaync and some notifications
This commit is contained in:
@@ -19,30 +19,83 @@ in {
|
||||
hm.services.swaync = {
|
||||
enable = true;
|
||||
settings = {
|
||||
widgets = [
|
||||
"title"
|
||||
"dnd"
|
||||
"notifications"
|
||||
];
|
||||
widget-config = {
|
||||
dnd = {
|
||||
text = "Silence";
|
||||
};
|
||||
title = {
|
||||
text = "Notifications";
|
||||
clear-all-button = true;
|
||||
button-text = "";
|
||||
};
|
||||
};
|
||||
};
|
||||
style = ''
|
||||
* {
|
||||
font-family: Iosevka;
|
||||
color: #${config.colorScheme.palette.base05};
|
||||
}
|
||||
|
||||
.notification {
|
||||
padding: 4px 4px 0px 4px;
|
||||
border-width: 2px;
|
||||
padding: 2px 4px;
|
||||
background-color: #${config.colorScheme.palette.base00};
|
||||
color: #${config.colorScheme.palette.base05};
|
||||
}
|
||||
|
||||
.summary {
|
||||
.notification-content {
|
||||
background-color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.body {
|
||||
.critical.notification {
|
||||
background-color: #${config.colorScheme.palette.base0C};
|
||||
}
|
||||
|
||||
.image {
|
||||
margin: 5px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.control-center {
|
||||
margin: 20px;
|
||||
opacity: 0.95;
|
||||
margin: 30px;
|
||||
margin-left: 0px;
|
||||
border-radius: 10px;
|
||||
border: solid #${config.colorScheme.palette.base05} 1px;
|
||||
background-color: #${config.colorScheme.palette.base01};
|
||||
color: #${config.colorScheme.palette.base05};
|
||||
opacity: 0.95;
|
||||
}
|
||||
|
||||
.control-center-clear-all {
|
||||
background: #${config.colorScheme.palette.base02};
|
||||
}
|
||||
|
||||
.control-center-dnd:checked {
|
||||
background: #${config.colorScheme.palette.base08};
|
||||
}
|
||||
|
||||
.close-button {
|
||||
background: #${config.colorScheme.palette.base08};
|
||||
}
|
||||
|
||||
.notification-group-collapse-button {
|
||||
margin: 4px;
|
||||
box-shadow: none;
|
||||
background: #${config.colorScheme.palette.base0A};
|
||||
}
|
||||
|
||||
.notification-group-close-all-button {
|
||||
margin: 4px;
|
||||
box-shadow: none;
|
||||
background: #${config.colorScheme.palette.base08};
|
||||
}
|
||||
|
||||
'';
|
||||
};
|
||||
|
||||
@@ -53,6 +106,11 @@ in {
|
||||
"swaync"
|
||||
];
|
||||
|
||||
layerrule = [
|
||||
"animation slide top, swaync-control-center"
|
||||
"animation slide top, swaync-notification-window"
|
||||
];
|
||||
|
||||
bind = [
|
||||
# Notification center
|
||||
"${hyprCfg.mod}, n, exec, swaync-client -t -sw"
|
||||
|
||||
Reference in New Issue
Block a user