formating

This commit is contained in:
joygnu 2024-08-23 19:41:17 +02:00
parent c47c0b02c2
commit 3938452a69
3 changed files with 323 additions and 327 deletions

View file

@ -1,8 +1,7 @@
{inputs,...}: { {inputs, ...}: {
imports = [inputs.ags.homeManagerModules.default]; imports = [inputs.ags.homeManagerModules.default];
programs.ags = { programs.ags = {
enable = true; enable = true;
configDir = ./bar; configDir = ./bar;
}; };
} }

View file

@ -1,336 +1,333 @@
{pkgs,...}:{ {pkgs, ...}: {
services.swaync = { services.swaync = {
enable = true; enable = true;
settings = { settings = {
positionX = "right"; positionX = "right";
positionY = "top"; positionY = "top";
layer = "overlay"; layer = "overlay";
control-center-layer = "top"; control-center-layer = "top";
layer-shell = true; layer-shell = true;
cssPriority = "application"; cssPriority = "application";
control-center-margin-top = 20; control-center-margin-top = 20;
control-center-margin-bottom = 20; control-center-margin-bottom = 20;
control-center-margin-right = 20; control-center-margin-right = 20;
control-center-margin-left = 20; control-center-margin-left = 20;
notification-2fa-action = true; notification-2fa-action = true;
notification-inline-replies = false; notification-inline-replies = false;
notification-icon-size = 64; notification-icon-size = 64;
notification-body-image-height = 100; notification-body-image-height = 100;
notification-body-image-width = 200; notification-body-image-width = 200;
timeout = 3; timeout = 3;
timeout-low = 2; timeout-low = 2;
timeout-critical = 0; timeout-critical = 0;
fit-to-screen = false; fit-to-screen = false;
control-center-width = 500; control-center-width = 500;
control-center-height = 1300; control-center-height = 1300;
notification-window-width = 440; notification-window-width = 440;
keyboard-shortcuts = true; keyboard-shortcuts = true;
image-visibility = "when-available"; image-visibility = "when-available";
transition-time = 200; transition-time = 200;
hide-on-clear = true; hide-on-clear = true;
hide-on-action = true; hide-on-action = true;
script-fail-notify = true; script-fail-notify = true;
widgets = [ widgets = [
"title" "title"
"dnd" "dnd"
"notifications" "notifications"
"mpris" "mpris"
"volume" "volume"
"buttons-grid" "buttons-grid"
]; ];
widget-config = { widget-config = {
title = { title = {
text = "Notification Center"; text = "Notification Center";
clear-all-button = true; clear-all-button = true;
button-text = "󰆴 Clear All"; button-text = "󰆴 Clear All";
}; };
dnd = { dnd = {
text = "Do Not Disturb"; text = "Do Not Disturb";
}; };
label = { label = {
max-lines = 1; max-lines = 1;
text = "Notification Center"; text = "Notification Center";
}; };
mpris = { mpris = {
image-size = 96; image-size = 96;
image-radius = 7; image-radius = 7;
}; };
volume = { volume = {
label = "󰕾"; label = "󰕾";
show-per-app = true; show-per-app = true;
}; };
buttons-grid = { buttons-grid = {
actions = [ actions = [
{ {
label = "󰐥"; label = "󰐥";
command = "systemctl poweroff"; command = "systemctl poweroff";
} }
{ {
label = "󰜉"; label = "󰜉";
command = "systemctl reboot"; command = "systemctl reboot";
} }
{ {
label = "󰍃"; label = "󰍃";
command = "hyprctl dispatch exit"; command = "hyprctl dispatch exit";
} }
{ {
label = "󰤄"; label = "󰤄";
command = "systemctl suspend"; command = "systemctl suspend";
} }
{ {
label = "󰕾"; label = "󰕾";
command = "swayosd-client --output-volume mute-toggle"; command = "swayosd-client --output-volume mute-toggle";
} }
{ {
label = "󰍬"; label = "󰍬";
command = "swayosd-client --input-volume mute-toggle"; command = "swayosd-client --input-volume mute-toggle";
} }
{ {
label = "󰂯"; label = "󰂯";
command = "blueman-manager"; command = "blueman-manager";
} }
]; ];
};
};
}; };
}; style = ''
}; @define-color cc-bg #282828;
style = @define-color noti-border-color #32302f;
'' @define-color noti-bg #3c3836;
@define-color noti-bg-darker #3c3836;
@define-color noti-bg-hover rgb(27, 27, 43);
@define-color noti-bg-focus rgba(27, 27, 27, 0.6);
@define-color text-color #f9f5d7;
@define-color text-color-disabled #bdae93;
@define-color bg-selected #fabd2f;
@define-color cc-bg #282828; * {
@define-color noti-border-color #32302f; font-family: JetBrainsMono NFP;
@define-color noti-bg #3c3836; font-weight: bold;
@define-color noti-bg-darker #3c3836; font-size: 14px
@define-color noti-bg-hover rgb(27, 27, 43); }
@define-color noti-bg-focus rgba(27, 27, 27, 0.6);
@define-color text-color #f9f5d7;
@define-color text-color-disabled #bdae93;
@define-color bg-selected #fabd2f;
* { .control-center .notification-row:focus,
font-family: JetBrainsMono NFP; .control-center .notification-row:hover {
font-weight: bold; opacity: 1;
font-size: 14px background: @noti-bg-darker
} }
.control-center .notification-row:focus, .notification-row {
.control-center .notification-row:hover { outline: none;
opacity: 1; margin: 20px;
background: @noti-bg-darker padding: 0;
} }
.notification-row { .notification {
outline: none; background: transparent;
margin: 20px; margin: 0px;
padding: 0; }
}
.notification { .notification-content {
background: transparent; background: @cc-bg;
margin: 0px; padding: 7px;
} border-radius: 0px;
border: 2px solid #85796f;
margin: 0;
}
.notification-content { .close-button {
background: @cc-bg; background: #d79921;
padding: 7px; color: @cc-bg;
border-radius: 0px; text-shadow: none;
border: 2px solid #85796f; padding: 0;
margin: 0; border-radius: 0px;
} margin-top: 5px;
margin-right: 5px;
}
.close-button { .close-button:hover {
background: #d79921; box-shadow: none;
color: @cc-bg; background: #fabd2f;
text-shadow: none; transition: all .15s ease-in-out;
padding: 0; border: none
border-radius: 0px; }
margin-top: 5px;
margin-right: 5px;
}
.close-button:hover { .notification-action {
box-shadow: none; color: #ebdbb2;
background: #fabd2f; border: 2px solid #85796f;
transition: all .15s ease-in-out; border-top: none;
border: none border-radius: 0px;
} background: #32302F;
}
.notification-action { .notification-default-action:hover,
color: #ebdbb2; .notification-action:hover {
border: 2px solid #85796f; color: #ebdbb2;
border-top: none; background: #32302F;
border-radius: 0px; }
background: #32302F;
}
.notification-default-action:hover, .summary {
.notification-action:hover { padding-top: 7px;
color: #ebdbb2; font-size: 13px;
background: #32302F; color: #ebdbb2;
} }
.summary { .time {
padding-top: 7px; font-size: 11px;
font-size: 13px; color: #d79921;
color: #ebdbb2; margin-right: 24px
} }
.time { .body {
font-size: 11px; font-size: 12px;
color: #d79921; color: #ebdbb2;
margin-right: 24px }
}
.body { .control-center {
font-size: 12px; background: @cc-bg;
color: #ebdbb2; border: 2px solid #4E8A8D;
} border-radiu
}
.control-center { .control-center-list {
background: @cc-bg; background: transparent
border: 2px solid #4E8A8D; }
border-radiu
}
.control-center-list { .control-center-list-placeholder {
background: transparent opacity: .5
} }
.control-center-list-placeholder { .floating-notifications {
opacity: .5 background: transparent
} }
.floating-notifications { .blank-window {
background: transparent background: alpha(black, 0.1)
} }
.blank-window { .widget-title {
background: alpha(black, 0.1) color: #f9f5d7;
} background: @noti-bg-darker;
padding: 5px 10px;
margin: 10px 10px 5px 10px;
font-size: 1.5rem;
border-radius: 5px;
}
.widget-title { .widget-title>button {
color: #f9f5d7; font-size: 1rem;
background: @noti-bg-darker; color: @text-color;
padding: 5px 10px; text-shadow: none;
margin: 10px 10px 5px 10px; background: @noti-bg;
font-size: 1.5rem; box-shadow: none;
border-radius: 5px; border-radius: 5px;
} }
.widget-title>button { .widget-title>button:hover {
font-size: 1rem; background: #d79921;
color: @text-color; color: @cc-bg;
text-shadow: none; }
background: @noti-bg;
box-shadow: none;
border-radius: 5px;
}
.widget-title>button:hover { .widget-dnd {
background: #d79921; background: @noti-bg-darker;
color: @cc-bg; padding: 5px 10px;
} margin: 5px 10px 10px 10px;
border-radius: 5px;
font-size: large;
color: #f2e5bc;
}
.widget-dnd { .widget-dnd>switch {
background: @noti-bg-darker; border-radius: 4px;
padding: 5px 10px; background: #665c54;
margin: 5px 10px 10px 10px; }
border-radius: 5px;
font-size: large;
color: #f2e5bc;
}
.widget-dnd>switch { .widget-dnd>switch:checked {
border-radius: 4px; background: #d79921;
background: #665c54; border: 1px solid #d79921;
} }
.widget-dnd>switch:checked { .widget-dnd>switch slider {
background: #d79921; background: @cc-bg;
border: 1px solid #d79921; border-radius: 5px
} }
.widget-dnd>switch slider { .widget-dnd>switch:checked slider {
background: @cc-bg; background: @cc-bg;
border-radius: 5px border-radius: 5px
} }
.widget-dnd>switch:checked slider { .widget-label {
background: @cc-bg; margin: 10px 10px 5px 10px;
border-radius: 5px }
}
.widget-label { .widget-label>label {
margin: 10px 10px 5px 10px; font-size: 1rem;
} color: @text-color;
}
.widget-label>label { .widget-mpris {
font-size: 1rem; color: @text-color;
color: @text-color; background: @noti-bg-darker;
} padding: 5px 10px 0px 0px;
margin: 5px 10px 5px 10px;
border-radius: 0px;
}
.widget-mpris { .widget-mpris > box > button {
color: @text-color; border-radius: 5px;
background: @noti-bg-darker; }
padding: 5px 10px 0px 0px;
margin: 5px 10px 5px 10px;
border-radius: 0px;
}
.widget-mpris > box > button { .widget-mpris-player {
border-radius: 5px; padding: 5px 10px;
} margin: 10px
}
.widget-mpris-player { .widget-mpris-title {
padding: 5px 10px; font-weight: 700;
margin: 10px font-size: 1.25rem
} }
.widget-mpris-title { .widget-mpris-subtitle {
font-weight: 700; font-size: 1.1rem
font-size: 1.25rem }
}
.widget-mpris-subtitle { .widget-buttons-grid {
font-size: 1.1rem font-size: x-large;
} padding: 5px;
margin: 5px 10px 10px 10px;
border-radius: 5px;
background: @noti-bg-darker;
}
.widget-buttons-grid { .widget-buttons-grid>flowbox>flowboxchild>button {
font-size: x-large; margin: 3px;
padding: 5px; background: @cc-bg;
margin: 5px 10px 10px 10px; border-radius: 5px;
border-radius: 5px; color: @text-color
background: @noti-bg-darker; }
}
.widget-buttons-grid>flowbox>flowboxchild>button { .widget-buttons-grid>flowbox>flowboxchild>button:hover {
margin: 3px; background: #d79921;
background: @cc-bg; color: @cc-bg;
border-radius: 5px; }
color: @text-color
}
.widget-buttons-grid>flowbox>flowboxchild>button:hover { .widget-menubar>box>.menu-button-bar>button {
background: #d79921; border: none;
color: @cc-bg; background: transparent
} }
.widget-menubar>box>.menu-button-bar>button { .topbar-buttons>button {
border: none; border: none;
background: transparent background: transparent
} }
'';
.topbar-buttons>button { };
border: none;
background: transparent
}
''
;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
libnotify libnotify
]; ];
} }