new swaync config liked arc

This commit is contained in:
Simon Rieger 2023-06-12 17:40:58 +02:00
parent 597ce3d25b
commit 0c23017d70
2 changed files with 433 additions and 361 deletions

View file

@ -6,9 +6,9 @@
"control-center-layer": "top", "control-center-layer": "top",
"layer-shell": true, "layer-shell": true,
"cssPriority": "application", "cssPriority": "application",
"control-center-margin-top": 0, "control-center-margin-top": 10,
"control-center-margin-bottom": 0, "control-center-margin-bottom": 10,
"control-center-margin-right": 0, "control-center-margin-right": 10,
"control-center-margin-left": 0, "control-center-margin-left": 0,
"notification-2fa-action": true, "notification-2fa-action": true,
"notification-inline-replies": false, "notification-inline-replies": false,
@ -47,7 +47,11 @@
} }
}, },
"widgets": [ "widgets": [
"inhibitors", "menubar#label",
"buttons-grid",
"backlight",
"volume",
"mpris",
"title", "title",
"dnd", "dnd",
"notifications" "notifications"
@ -73,6 +77,97 @@
"mpris": { "mpris": {
"image-size": 96, "image-size": 96,
"image-radius": 12 "image-radius": 12
},
"backlight": {
"label": "󰖙",
"device": "intel_backlight",
"min": 10
},
"volume": {
"label": "󰕾"
},
"menubar#label": {
"menu#power-buttons": {
"label": "",
"position": "right",
"actions": [
{
"label": " Reboot",
"command": "systemctl reboot"
},
{
"label": " Lock",
"command": "swaylock"
},
{
"label": " Logout",
"command": "swaymsg exit"
},
{
"label": " Shut down",
"command": "systemctl poweroff"
}
]
},
"menu#powermode-buttons": {
"label": "",
"position": "left",
"actions": [
{
"label": "Performance",
"command": "powerprofilesctl set performance"
},
{
"label": "Balanced",
"command": "powerprofilesctl set balanced"
},
{
"label": "Power-saver",
"command": "powerprofilesctl set power-saver"
}
]
},
"buttons#topbar-buttons": {
"position": "left",
"actions": [
{
"label": "",
"command": "grim"
}
]
}
},
"buttons-grid": {
"actions": [
{
"label": "",
"command": "wezterm"
},
{
"label": "",
"command": "chromium"
},
{
"label": "󰺻",
"command": "thunderbird"
},
{
"label": "",
"command": "wezterm start khal interactive"
},
{
"label": "󰛳",
"command": "nm-connection-editor"
},
{
"label": "󱋆",
"command": "wdisplays"
},
{
"label": "󱑢",
"command": "xdg-open Downloads"
}
]
} }
} }
} }

View file

@ -2,360 +2,337 @@
* vim: ft=less * vim: ft=less
*/ */
@define-color cc-bg rgba(0, 0, 0, 0.7); @define-color noti-border-color rgba(255, 255, 255, 0.15);
@define-color noti-bg #2E3440;
@define-color noti-bg-alt #383E4A;
@define-color noti-fg #E5E9F0;
@define-color noti-bg-hover #81A1C1;
@define-color noti-bg-focus #A3BE8C;
@define-color noti-close-bg rgba(255, 255, 255, 0.1);
@define-color noti-close-bg-hover rgba(255, 255, 255, 0.15);
@define-color noti-urgent #BF616A;
@define-color noti-border-color rgba(255, 255, 255, 0.15); @define-color bg-selected rgb(0, 128, 255);
@define-color noti-bg rgb(48, 48, 48);
@define-color noti-bg-darker rgb(38, 38, 38);
@define-color noti-bg-hover rgb(56, 56, 56);
@define-color noti-bg-focus rgba(68, 68, 68, 0.6);
@define-color noti-close-bg rgba(255, 255, 255, 0.1);
@define-color noti-close-bg-hover rgba(255, 255, 255, 0.15);
@define-color text-color rgb(255, 255, 255); *{
@define-color text-color-disabled rgb(150, 150, 150); color: @noti-fg;
}
@define-color bg-selected rgb(0, 128, 255); .notification-row {
outline: none;
}
.notification-row { .notification-row:focus,
outline: none; .notification-row:hover {
} background: @noti-bg-focus;
}
.notification-row:focus, .notification {
.notification-row:hover { border-radius: 12px;
background: @noti-bg-focus; margin: 6px 12px;
} box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7),
0 2px 6px 2px rgba(0, 0, 0, 0.3);
padding: 0;
}
.notification { /* Uncomment to enable specific urgency colors */
border-radius: 12px; /* .low {
margin: 6px 12px; background: yellow;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 1px 3px 1px rgba(0, 0, 0, 0.7), padding: 6px;
0 2px 6px 2px rgba(0, 0, 0, 0.3); border-radius: 12px;
padding: 0; }
}
/* Uncomment to enable specific urgency colors .normal {
.low { background: green;
background: yellow; padding: 6px;
padding: 6px; border-radius: 12px;
border-radius: 12px; } */
}
.normal { .critical {
background: green; background: @noti-urgent;
padding: 6px; padding: 2px;
border-radius: 12px; border-radius: 12px;
} }
.critical {
background: red;
padding: 6px;
border-radius: 12px;
}
*/
.notification-content { .notification-content {
background: transparent; background: transparent;
padding: 6px; padding: 6px;
border-radius: 12px; border-radius: 12px;
} }
.close-button { .close-button {
background: @noti-close-bg; background: @noti-close-bg;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
padding: 0; padding: 0;
border-radius: 100%; border-radius: 100%;
margin-top: 10px; margin-top: 10px;
margin-right: 16px; margin-right: 16px;
box-shadow: none; box-shadow: none;
border: none; border: none;
min-width: 24px; min-width: 24px;
min-height: 24px; min-height: 24px;
} }
.close-button:hover { .close-button:hover {
box-shadow: none; box-shadow: none;
background: @noti-close-bg-hover; background: @noti-close-bg-hover;
transition: all 0.15s ease-in-out; transition: all 0.15s ease-in-out;
border: none; border: none;
} }
.notification-default-action, .notification-default-action,
.notification-action { .notification-action {
padding: 4px; padding: 4px;
margin: 0; margin: 0;
box-shadow: none; box-shadow: none;
background: @noti-bg; background: @noti-bg;
border: 1px solid @noti-border-color; border: 1px solid @noti-border-color;
color: @text-color; color: white;
transition: all 0.15s ease-in-out; }
}
.notification-default-action:hover, .notification-default-action:hover,
.notification-action:hover { .notification-action:hover {
-gtk-icon-effect: none; -gtk-icon-effect: none;
background: @noti-bg-hover; background: @noti-bg-hover;
} }
.notification-default-action { .notification-default-action {
border-radius: 12px; border-radius: 12px;
} }
/* When alternative actions are visible */ /* When alternative actions are visible */
.notification-default-action:not(:only-child) { .notification-default-action:not(:only-child) {
border-bottom-left-radius: 0px; border-bottom-left-radius: 0px;
border-bottom-right-radius: 0px; border-bottom-right-radius: 0px;
} }
.notification-action { .notification-action {
border-radius: 0px; border-radius: 0px;
border-top: none; border-top: none;
border-right: none; border-right: none;
} }
/* add bottom border radius to eliminate clipping */ /* add bottom border radius to eliminate clipping */
.notification-action:first-child { .notification-action:first-child {
border-bottom-left-radius: 10px; border-bottom-left-radius: 10px;
} }
.notification-action:last-child { .notification-action:last-child {
border-bottom-right-radius: 10px; border-bottom-right-radius: 10px;
border-right: 1px solid @noti-border-color; border-right: 1px solid @noti-border-color;
} }
.inline-reply { .image {}
margin-top: 8px;
}
.inline-reply-entry {
background: @noti-bg-darker;
color: @text-color;
caret-color: @text-color;
border: 1px solid @noti-border-color;
border-radius: 12px;
}
.inline-reply-button {
margin-left: 4px;
background: @noti-bg;
border: 1px solid @noti-border-color;
border-radius: 12px;
color: @text-color;
}
.inline-reply-button:disabled {
background: initial;
color: @text-color-disabled;
border: 1px solid transparent;
}
.inline-reply-button:hover {
background: @noti-bg-hover;
}
.image { .body-image {
} margin-top: 6px;
background-color: white;
border-radius: 12px;
}
.body-image { .summary {
margin-top: 6px; font-size: 16px;
background-color: white; font-weight: bold;
border-radius: 12px; background: transparent;
} color: white;
text-shadow: none;
}
.summary { .time {
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
background: transparent; background: transparent;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
} margin-right: 18px;
}
.time { .body {
font-size: 16px; font-size: 15px;
font-weight: bold; font-weight: normal;
background: transparent; background: transparent;
color: @text-color; color: white;
text-shadow: none; text-shadow: none;
margin-right: 18px; }
}
.body { /* The "Notifications" and "Do Not Disturb" text widget */
font-size: 15px; .top-action-title {
font-weight: normal; color: white;
background: transparent; text-shadow: none;
color: @text-color; }
text-shadow: none;
}
.control-center { .control-center {
background: @cc-bg; background-color: @noti-bg-alt;
} }
.control-center-list { .control-center-list {
background: transparent; background: transparent;
} }
.control-center-list-placeholder { .floating-notifications {
opacity: 0.5; background: transparent;
} }
.floating-notifications { /* Window behind control center and on all other monitors */
background: transparent; .blank-window {
} background: transparent;
}
/* Window behind control center and on all other monitors */ /*** Widgets ***/
.blank-window {
background: alpha(black, 0.25);
}
/*** Widgets ***/ /* Title widget */
.widget-title {
margin: 8px;
font-size: 1.5rem;
}
/* Title widget */ .widget-title>button {
.widget-title { font-size: initial;
margin: 8px; color: white;
font-size: 1.5rem; text-shadow: none;
} background: @noti-bg;
.widget-title > button { border: 1px solid @noti-border-color;
font-size: initial; box-shadow: none;
color: @text-color; border-radius: 12px;
text-shadow: none; }
background: @noti-bg;
border: 1px solid @noti-border-color;
box-shadow: none;
border-radius: 12px;
}
.widget-title > button:hover {
background: @noti-bg-hover;
}
/* DND widget */ .widget-title>button:hover {
.widget-dnd { background: @noti-bg-hover;
margin: 8px; }
font-size: 1.1rem;
}
.widget-dnd > switch {
font-size: initial;
border-radius: 12px;
background: @noti-bg;
border: 1px solid @noti-border-color;
box-shadow: none;
}
.widget-dnd > switch:checked {
background: @bg-selected;
}
.widget-dnd > switch slider {
background: @noti-bg-hover;
border-radius: 12px;
}
/* Label widget */ /* DND widget */
.widget-label { .widget-dnd {
margin: 8px; margin: 8px;
} font-size: 1.1rem;
.widget-label > label { }
font-size: 1.1rem;
}
/* Mpris widget */ .widget-dnd>switch {
.widget-mpris { font-size: initial;
/* The parent to all players */ border-radius: 12px;
} background: @noti-bg;
.widget-mpris-player { border: 1px solid @noti-border-color;
padding: 8px; box-shadow: none;
margin: 8px; }
}
.widget-mpris-title {
font-weight: bold;
font-size: 1.25rem;
}
.widget-mpris-subtitle {
font-size: 1.1rem;
}
/* Buttons widget */ .widget-dnd>switch:checked {
.widget-buttons-grid { background: @bg-selected;
padding: 8px; }
margin: 8px;
border-radius: 12px;
background-color: @noti-bg;
}
.widget-buttons-grid>flowbox>flowboxchild>button{ .widget-dnd>switch slider {
background: @noti-bg; background: @noti-bg-hover;
border-radius: 12px; border-radius: 12px;
} }
.widget-buttons-grid>flowbox>flowboxchild>button:hover { /* Label widget */
background: @noti-bg-hover; .widget-label {
} margin: 8px;
}
/* Menubar widget */ .widget-label>label {
.widget-menubar>box>.menu-button-bar>button { font-size: 1.1rem;
border: none; }
background: transparent;
}
/* .AnyName { Name defined in config after # /* Mpris widget */
background-color: @noti-bg; .widget-mpris {
padding: 8px; /* The parent to all players */
margin: 8px; }
border-radius: 12px;
}
.AnyName>button { .widget-mpris-player {
background: transparent; padding: 8px;
border: none; margin: 8px;
} }
.AnyName>button:hover { .widget-mpris-title {
background-color: @noti-bg-hover; font-weight: bold;
} */ font-size: 1.25rem;
}
.topbar-buttons>button { /* Name defined in config after # */ .widget-mpris-subtitle {
border: none; font-size: 1.1rem;
background: transparent; }
}
/* Volume widget */ /* Volume and Brightness Widget*/
.widget-volume { .widget-volume {
background-color: @noti-bg; background-color: @noti-bg;
padding: 8px; padding: 4px 8px 8px 8px;
margin: 8px; margin: 0px 8px 8px 8px;
border-radius: 12px; border-bottom-left-radius: 12px;
} border-bottom-right-radius: 12px;
}
.widget-volume>box>button { .widget-backlight {
background: transparent; background-color: @noti-bg;
border: none; padding: 8px 8px 4px 8px;
} margin: 8px 8px 0px 8px;
border-top-left-radius: 12px;
border-top-right-radius: 12px;
}
.per-app-volume { .KB {
background-color: @noti-bg-alt; padding: 4px 8px 4px 8px;
padding: 4px 8px 8px 8px; margin: 0px 8px 0px 8px;
margin: 0px 8px 8px 8px; border-radius: 0;
border-radius: 12px }
}
/* Backlight widget */ .power-buttons{
.widget-backlight { background-color: @noti-bg;
background-color: @noti-bg; padding: 8px;
padding: 8px; margin: 8px;
margin: 8px; border-radius: 12px;
border-radius: 12px; }
}
.power-buttons>button {
background: transparent;
border: none;
}
.power-buttons>button:hover {
background: @noti-bg-hover;
}
.widget-menubar>box>.menu-button-bar>button{
border: none;
background: transparent;
}
.topbar-buttons>button{
border: none;
background: transparent;
}
.widget-buttons-grid{
padding: 8px;
margin: 8px;
border-radius: 12px;
background-color: @noti-bg;
}
.widget-buttons-grid>flowbox>flowboxchild>button{
background: @noti-bg;
border-radius: 12px;
}
.widget-buttons-grid>flowbox>flowboxchild>button:hover {
background: @noti-bg-hover;
}
.powermode-buttons{
background-color: @noti-bg;
padding: 8px;
margin: 8px;
border-radius: 12px;
}
.powermode-buttons>button {
background: transparent;
border: none;
}
.powermode-buttons>button:hover {
background: @noti-bg-hover;
}
/* Title widget */
.widget-inhibitors {
margin: 8px;
font-size: 1.5rem;
}
.widget-inhibitors > button {
font-size: initial;
color: @text-color;
text-shadow: none;
background: @noti-bg;
border: 1px solid @noti-border-color;
box-shadow: none;
border-radius: 12px;
}
.widget-inhibitors > button:hover {
background: @noti-bg-hover;
}