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