save last state

This commit is contained in:
2024-12-30 13:14:54 +01:00
parent 54f891fc65
commit 4ad01591aa
24 changed files with 1120 additions and 155 deletions

View File

@@ -0,0 +1,48 @@
{
config,
lib,
pkgs,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.home.services.dunst;
in {
options = {
home.services.dunst.enable = mkEnableOption "Enables dunst";
};
config = mkIf cfg.enable {
services.dunst = {
enable = true;
iconTheme = {
package = pkgs.papirus-icon-theme;
name = "Papirus";
};
settings = {
global = {
browser = "${config.home.sessionVariables.BROWSER}";
padding = 16;
horizontal_padding = 16;
font = "Input Sans Compressed Light 12";
frame_color = "#4c7a5d";
separator_color = "#504945";
};
urgency_low = {
msg_urgency = "low";
background = "#665c54";
foreground = "#d5c4a1";
};
urgency_normal = {
msg_urgency = "normal";
background = "#3c3836";
foreground = "#d5c4a1";
# foreground = "#fbf1c7";
};
urgency_critical = {
msg_urgency = "critical";
background = "#282828";
foreground = "#c14a4a";
};
};
};
};
}

View File

@@ -0,0 +1,117 @@
{
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.home.services.swaync;
in {
options = {
home.services.swaync.enable = mkEnableOption "Enables swaync";
};
config = mkIf cfg.enable {
services.swaync = {
enable = true;
settings = {
schema = "/etc/xdg/swaync/configSchema.json";
positionX = "right";
positionY = "top";
layer = "overlay";
control-center-margin-top = 10;
control-center-margin-bottom = 10;
control-center-margin-right = 10;
control-center-margin-left = 10;
notification-icon-size = 64;
notification-body-image-height = 100;
notification-body-image-width = 200;
timeout = 3;
timeout-low = 2;
timeout-critical = 0;
fit-to-screen = false;
control-center-width = 500;
control-center-height = 1025;
notification-window-width = 440;
keyboard-shortcuts = true;
image-visibility = "when-available";
transition-time = 200;
hide-on-clear = true;
hide-on-action = true;
script-fail-notify = true;
widgets = [
"title"
"dnd"
"notifications"
"mpris"
"volume"
"buttons-grid"
];
widget-config = {
title = {
text = "Notification Center";
clear-all-button = true;
button-text = "󰆴 Clear All";
};
dnd = {
text = "Do Not Disturb";
};
label = {
max-lines = 1;
text = "Notification Center";
};
mpris = {
image-size = 96;
image-radius = 7;
};
volume = {
label = "󰕾";
show-per-app = true;
};
buttons-grid = {
actions = [
{
label = "󰐥";
command = "systemctl poweroff";
}
{
label = "󰜉";
command = "systemctl reboot";
}
{
label = "󰌾";
command = "$HOME/.config/hypr/scripts/lock-session.sh";
}
{
label = "󰍃";
command = "hyprctl dispatch exit";
}
{
label = "󰤄";
command = "systemctl suspend";
}
{
label = "󰕾";
command = "swayosd-client --output-volume mute-toggle";
}
{
label = "󰍬";
command = "swayosd-client --input-volume mute-toggle";
}
{
label = "󰖩";
command = "$HOME/.local/bin/shved/rofi-menus/wifi-menu.sh";
}
{
label = "󰂯";
command = "blueman-manager";
}
{
label = "";
command = "obs";
}
];
};
};
};
};
};
}