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

@ -25,11 +25,11 @@
pseudotile = true; pseudotile = true;
preserve_split = true; preserve_split = true;
}; };
cursor = { cursor = {
inactive_timeout = "3"; inactive_timeout = "3";
}; };
env = [ env = [
"HYPRCURSOR_THEME = Bibata-Modern-Ice" "HYPRCURSOR_THEME = Bibata-Modern-Ice"
"HYPRCURSOR_SIZE = 24" "HYPRCURSOR_SIZE = 24"

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 = {
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 = "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 = "blueman-manager";
}
];
};
};
}; };
dnd = { style = ''
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 = "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 = "blueman-manager";
}
];
};
};
}; @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; .control-center .notification-row:focus,
@define-color text-color-disabled #bdae93; .control-center .notification-row:hover {
@define-color bg-selected #fabd2f; opacity: 1;
background: @noti-bg-darker
* { }
font-family: JetBrainsMono NFP;
font-weight: bold; .notification-row {
font-size: 14px outline: none;
} margin: 20px;
padding: 0;
.control-center .notification-row:focus, }
.control-center .notification-row:hover {
opacity: 1; .notification {
background: @noti-bg-darker background: transparent;
} margin: 0px;
}
.notification-row {
outline: none; .notification-content {
margin: 20px; background: @cc-bg;
padding: 0; padding: 7px;
} border-radius: 0px;
border: 2px solid #85796f;
.notification { margin: 0;
background: transparent; }
margin: 0px;
} .close-button {
background: #d79921;
.notification-content { color: @cc-bg;
background: @cc-bg; text-shadow: none;
padding: 7px; padding: 0;
border-radius: 0px; border-radius: 0px;
border: 2px solid #85796f; margin-top: 5px;
margin: 0; 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; .notification-action {
} color: #ebdbb2;
border: 2px solid #85796f;
.close-button:hover { border-top: none;
box-shadow: none; border-radius: 0px;
background: #fabd2f; background: #32302F;
transition: all .15s ease-in-out; }
border: none
} .notification-default-action:hover,
.notification-action:hover {
.notification-action { color: #ebdbb2;
color: #ebdbb2; background: #32302F;
border: 2px solid #85796f; }
border-top: none;
border-radius: 0px; .summary {
background: #32302F; padding-top: 7px;
} font-size: 13px;
color: #ebdbb2;
.notification-default-action:hover, }
.notification-action:hover {
color: #ebdbb2; .time {
background: #32302F; font-size: 11px;
} color: #d79921;
margin-right: 24px
.summary { }
padding-top: 7px;
font-size: 13px; .body {
color: #ebdbb2; font-size: 12px;
} color: #ebdbb2;
}
.time {
font-size: 11px; .control-center {
color: #d79921; background: @cc-bg;
margin-right: 24px border: 2px solid #4E8A8D;
} border-radiu
}
.body {
font-size: 12px; .control-center-list {
color: #ebdbb2; background: transparent
} }
.control-center { .control-center-list-placeholder {
background: @cc-bg; opacity: .5
border: 2px solid #4E8A8D; }
border-radiu
} .floating-notifications {
background: transparent
.control-center-list { }
background: transparent
} .blank-window {
background: alpha(black, 0.1)
.control-center-list-placeholder { }
opacity: .5
} .widget-title {
color: #f9f5d7;
.floating-notifications { background: @noti-bg-darker;
background: transparent padding: 5px 10px;
} margin: 10px 10px 5px 10px;
font-size: 1.5rem;
.blank-window { border-radius: 5px;
background: alpha(black, 0.1) }
}
.widget-title>button {
.widget-title { font-size: 1rem;
color: #f9f5d7; color: @text-color;
background: @noti-bg-darker; text-shadow: none;
padding: 5px 10px; background: @noti-bg;
margin: 10px 10px 5px 10px; box-shadow: none;
font-size: 1.5rem; border-radius: 5px;
border-radius: 5px; }
}
.widget-title>button:hover {
.widget-title>button { background: #d79921;
font-size: 1rem; color: @cc-bg;
color: @text-color; }
text-shadow: none;
background: @noti-bg; .widget-dnd {
box-shadow: none; background: @noti-bg-darker;
border-radius: 5px; padding: 5px 10px;
} margin: 5px 10px 10px 10px;
border-radius: 5px;
.widget-title>button:hover { font-size: large;
background: #d79921; color: #f2e5bc;
color: @cc-bg; }
}
.widget-dnd>switch {
.widget-dnd { border-radius: 4px;
background: @noti-bg-darker; background: #665c54;
padding: 5px 10px; }
margin: 5px 10px 10px 10px;
border-radius: 5px; .widget-dnd>switch:checked {
font-size: large; background: #d79921;
color: #f2e5bc; border: 1px solid #d79921;
} }
.widget-dnd>switch { .widget-dnd>switch slider {
border-radius: 4px; background: @cc-bg;
background: #665c54; border-radius: 5px
} }
.widget-dnd>switch:checked { .widget-dnd>switch:checked slider {
background: #d79921; background: @cc-bg;
border: 1px solid #d79921; border-radius: 5px
} }
.widget-dnd>switch slider { .widget-label {
background: @cc-bg; margin: 10px 10px 5px 10px;
border-radius: 5px }
}
.widget-label>label {
.widget-dnd>switch:checked slider { font-size: 1rem;
background: @cc-bg; color: @text-color;
border-radius: 5px }
}
.widget-mpris {
.widget-label { color: @text-color;
margin: 10px 10px 5px 10px; background: @noti-bg-darker;
} padding: 5px 10px 0px 0px;
margin: 5px 10px 5px 10px;
.widget-label>label { border-radius: 0px;
font-size: 1rem; }
color: @text-color;
} .widget-mpris > box > button {
border-radius: 5px;
.widget-mpris { }
color: @text-color;
background: @noti-bg-darker; .widget-mpris-player {
padding: 5px 10px 0px 0px; padding: 5px 10px;
margin: 5px 10px 5px 10px; margin: 10px
border-radius: 0px; }
}
.widget-mpris-title {
.widget-mpris > box > button { font-weight: 700;
border-radius: 5px; font-size: 1.25rem
} }
.widget-mpris-player { .widget-mpris-subtitle {
padding: 5px 10px; font-size: 1.1rem
margin: 10px }
}
.widget-buttons-grid {
.widget-mpris-title { font-size: x-large;
font-weight: 700; padding: 5px;
font-size: 1.25rem margin: 5px 10px 10px 10px;
} border-radius: 5px;
background: @noti-bg-darker;
.widget-mpris-subtitle { }
font-size: 1.1rem
} .widget-buttons-grid>flowbox>flowboxchild>button {
margin: 3px;
.widget-buttons-grid { background: @cc-bg;
font-size: x-large; border-radius: 5px;
padding: 5px; color: @text-color
margin: 5px 10px 10px 10px; }
border-radius: 5px;
background: @noti-bg-darker; .widget-buttons-grid>flowbox>flowboxchild>button:hover {
} background: #d79921;
color: @cc-bg;
.widget-buttons-grid>flowbox>flowboxchild>button { }
margin: 3px;
background: @cc-bg; .widget-menubar>box>.menu-button-bar>button {
border-radius: 5px; border: none;
color: @text-color background: transparent
} }
.widget-buttons-grid>flowbox>flowboxchild>button:hover { .topbar-buttons>button {
background: #d79921; border: none;
color: @cc-bg; background: transparent
} }
'';
.widget-menubar>box>.menu-button-bar>button { };
border: none;
background: transparent
}
.topbar-buttons>button {
border: none;
background: transparent
}
''
;
};
home.packages = with pkgs; [ home.packages = with pkgs; [
libnotify libnotify
]; ];
} }