Update swaync config

This commit is contained in:
Filippo Berto 2026-02-09 09:53:27 +01:00
parent 3b86738dbd
commit 4cf56716de
No known key found for this signature in database
GPG key ID: F1D17F9BCEC62FBC

View file

@ -17,67 +17,118 @@
}; };
}; };
xdg.configFile."swaync/config.json".text = '' home.packages = [ pkgs.wlogout ];
{
"$schema": "/etc/xdg/swaync/configSchema.json", # xdg.configFile."swaync/config.json".text = ''
"positionX": "right", # {
"positionY": "top", # "$schema": "/etc/xdg/swaync/configSchema.json",
"control-center-margin-top": 16, # "positionX": "right",
"control-center-margin-bottom": 16, # "positionY": "top",
"control-center-margin-right": 16, # "control-center-margin-top": 16,
"notification-icon-size": 64, # "control-center-margin-bottom": 16,
"notification-body-image-height": 100, # "control-center-margin-right": 16,
"notification-body-image-width": 200, # "notification-icon-size": 64,
"timeout": 10, # "notification-body-image-height": 100,
"timeout-low": 5, # "notification-body-image-width": 200,
"timeout-critical": 0, # "timeout": 10,
"fit-to-screen": true, # "timeout-low": 5,
"control-center-width": 500, # "timeout-critical": 0,
"control-center-height": 1000, # "fit-to-screen": true,
"notification-window-width": 500, # "control-center-width": 500,
"keyboard-shortcuts": true, # "control-center-height": 1000,
"image-visibility": "when-available", # "notification-window-width": 500,
"transition-time": 200, # "keyboard-shortcuts": true,
"hide-on-clear": false, # "image-visibility": "when-available",
"hide-on-action": true, # "transition-time": 200,
"script-fail-notify": true, # "hide-on-clear": false,
"widgets": ["buttons-grid", "mpris", "volume", "title", "notifications"], # "hide-on-action": true,
"widget-config": { # "script-fail-notify": true,
"title": { # "widgets": ["buttons-grid", "mpris", "volume", "title", "notifications"],
"text": "Notifications", # "widget-config": {
"clear-all-button": true, # "title": {
"button-text": "󰆴 Clear" # "text": "Notifications",
}, # "clear-all-button": true,
"dnd": { # "button-text": "󰆴 Clear"
"text": "Do Not Disturb" # },
}, # "dnd": {
"label": { # "text": "Do Not Disturb"
"max-lines": 1, # },
"text": "Notification Center" # "label": {
}, # "max-lines": 1,
"mpris": { # "text": "Notification Center"
"image-size": 96, # },
"image-radius": 7 # "mpris": {
}, # "image-size": 96,
"volume": { # "image-radius": 7
"label": "󰕾" # },
}, # "volume": {
"backlight": { # "label": "󰕾"
"label": "󰃟" # },
}, # "backlight": {
"buttons-grid": { # "label": "󰃟"
"actions": [ # },
{ # "buttons-grid": {
"label": "󰐥", # "actions": [
"command": "wlogout" # {
}, # "label": "󰐥",
{ # "command": "wlogout"
"label": "", # },
"command": "loginctl lock-session" # {
} # "label": "",
] # "command": "loginctl lock-session"
} # }
} # ]
} # }
''; # }
# }
# '';
xdg.configFile."swaync/config.json".text = builtins.toJSON {
"$schema" = "/etc/xdg/swaync/configSchema.json";
"positionX" = "right";
"positionY" = "top";
"control-center-margin-top" = 16;
"control-center-margin-bottom" = 16;
"control-center-margin-right" = 16;
"notification-icon-size" = 64;
"notification-body-image-height" = 100;
"notification-body-image-width" = 200;
"timeout" = 10;
"timeout-low" = 5;
"timeout-critical" = 0;
"fit-to-screen" = true;
"control-center-width" = 500;
"control-center-height" = 1000;
"notification-window-width" = 500;
"keyboard-shortcuts" = true;
"image-visibility" = "when-available";
"transition-time" = 200;
"hide-on-clear" = false;
"hide-on-action" = true;
"script-fail-notify" = true;
"widgets" = [ "buttons-grid" "mpris" "volume" "title" "notifications" ];
"widget-config" = {
"title" = {
"text" = "Notifications";
"clear-all-button" = true;
"button-text" = "󰆴 Clear";
};
"dnd"."text" = "Do Not Disturb";
"label" = { "max-lines" = 1; "text" = "Notification Center"; };
"mpris" = { "image-size" = 96; "image-radius" = 7; };
"volume"."label" = "󰕾";
"backlight"."label" = "󰃟";
"buttons-grid" = {
"actions" = [
# { "label" = "󰐥"; "command" = "wlogout"; }
{ "label" = ""; "command" = "loginctl lock-session"; }
{ "label" = "󰍃"; "command" = "loginctl terminate-user $USER"; }
{ "label" = "󰜗"; "command" = "systemctl hibernate"; }
{ "label" = "󱋋"; "command" = "systemctl hybrid-sleep"; }
{ "label" = "󰜉"; "command" = "systemctl reboot"; }
{ "label" = "󰐥"; "command" = "systemctl poweroff"; }
];
};
};
};
} }