Merge Arch config as main #1

Closed
baobeld wants to merge 228 commits from arch(btw) into master
2 changed files with 440 additions and 323 deletions
Showing only changes of commit 1b58092306 - Show all commits

View file

@ -1,100 +1,100 @@
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right",
"positionY": "top",
"layer": "overlay",
"control-center-layer": "right",
"layer-shell": true,
"cssPriority": "application",
"control-center-margin-top": 5,
"control-center-margin-bottom": 0,
"control-center-margin-right": 0,
"control-center-margin-left": 0,
"notification-2fa-action": true,
"notification-inline-replies": false,
"notification-icon-size": 24,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"timeout": 6,
"timeout-low": 3,
"timeout-critical": 0,
"fit-to-screen": false,
"control-center-width": 350,
"control-center-height": 720,
"notification-window-width": 400,
"keyboard-shortcuts": true,
"image-visibility": "when available",
"transition-time": 200,
"hide-on-clear": false,
"hide-on-action": true,
"script-fail-notify": true,
"widgets": [
"dnd",
"buttons-grid",
"mpris",
"volume",
"backlight",
"title",
"notifications"
],
"widget-config": {
"title": {
"text": "Notifications",
"clear-all-button": true,
"button-text": "Clear"
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right",
"positionY": "top",
"layer": "overlay",
"control-center-layer": "right",
"layer-shell": true,
"cssPriority": "application",
"control-center-margin-top": 5,
"control-center-margin-bottom": 0,
"control-center-margin-right": 0,
"control-center-margin-left": 0,
"notification-2fa-action": true,
"notification-inline-replies": false,
"notification-icon-size": 24,
"notification-body-image-height": 100,
"notification-body-image-width": 200,
"timeout": 6,
"timeout-low": 3,
"timeout-critical": 0,
"fit-to-screen": false,
"control-center-width": 350,
"control-center-height": 720,
"notification-window-width": 400,
"keyboard-shortcuts": true,
"image-visibility": "when available",
"transition-time": 200,
"hide-on-clear": false,
"hide-on-action": true,
"script-fail-notify": true,
"widgets": [
"dnd",
"buttons-grid",
"mpris",
"volume",
"backlight",
"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"
},
"mpris": {
"image-size": 48,
"image-radius": 9999
},
"volume": {
"label": "󰕾"
},
"backlight": {
"label": "󰃟"
},
"buttons-grid": {
"actions": [
{
"label": "󰐥",
"command": "systemctl poweroff"
},
"dnd": {
"text": "Do Not Disturb"
{
"label": "󰜉",
"command": "systemctl reboot"
},
"label": {
"max-lines": 1,
"text": "Notification"
{
"label": "󰌾",
"command": "hyprlock"
},
"mpris": {
"image-size": 48,
"image-radius": 9999
{
"label": "󰍃",
"command": "hyprctl dispatch exit"
},
"volume": {
"label": "󰕾"
{
"label": "󰀝",
"command": "~/.config/hypr/scripts/AirplaneMode.sh"
},
"backlight": {
"label": "󰃟"
{
"label": "󰕾",
"command": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
},
"buttons-grid": {
"actions": [
{
"label": "󰐥",
"command": "systemctl poweroff"
},
{
"label": "󰜉",
"command": "systemctl reboot"
},
{
"label": "󰌾",
"command": "hyprlock"
},
{
"label": "󰍃",
"command": "hyprctl dispatch exit"
},
{
"label": "󰀝",
"command": "~/.config/hypr/scripts/AirplaneMode.sh"
},
{
"label": "󰕾",
"command": "pactl set-sink-mute @DEFAULT_SINK@ toggle"
},
{
"label": "󰍬",
"command": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
},
{
"label": "󰂯",
"command": "blueman-manager"
}
]
{
"label": "󰍬",
"command": "pactl set-source-mute @DEFAULT_SOURCE@ toggle"
},
{
"label": "󰂯",
"command": "blueman-manager"
}
]
}
}
}

583
swaync/style.css Executable file → Normal file
View file

@ -1,334 +1,451 @@
/* ----------- 💫 https://github.com/JaKooLit 💫 -------- */
@import "../../.cache/wal/colors-waybar.css";
@define-color noti-border-color @color4;
@define-color noti-bg rgba(0, 0, 0, 0.4);
@define-color noti-bg-alt rgba(0, 0, 0, 0.6);
@define-color noti-bg-hover @color4;
@define-color text-color @color4;
@define-color text-color-alt @color7;
@define-color text-color-disabled rgba(150, 150, 150, 0.8);
* {
font-family: 'JetBrains Mono';
font-weight: 500;
all: unset;
font-size: 14px;
font-family: "Jetbrains Nerd Font";
transition: 200ms;
}
.control-center .notification-row:focus,
.control-center .notification-row:hover {
trough highlight {
background: #cdd6f4;
}
.notification-row {
outline: none;
margin: 0px;
scale trough {
margin: 0rem 1rem;
background-color: #313244;
min-height: 8px;
min-width: 70px;
}
.notification-content {
color: @text-color;
padding: 3px 10px 3px 6px;
border-radius: 10px;
border: 2px solid @noti-border-color;
margin: 0px;
slider {
background-color: #89b4fa;
}
.notification-default-action {
margin: 0;
.floating-notifications.background .notification-row .notification-background {
box-shadow:
0 0 8px 0 rgba(0, 0, 0, 0.8),
inset 0 0 0 1px #313244;
border-radius: 12.6px;
margin: 18px;
background-color: #1e1e2e;
color: #cdd6f4;
padding: 0;
border-radius: 10px;
}
.notification-default-action:hover,
.notification-action:hover {
background: rgba(0, 0, 0, 0.4);
.floating-notifications.background
.notification-row
.notification-background
.notification {
padding: 7px;
border-radius: 12.6px;
}
.notification-action {
border: 2px solid @noti-border-color;
border-top: none;
border-radius: 10px;
.floating-notifications.background
.notification-row
.notification-background
.notification.critical {
box-shadow: inset 0 0 7px 0 #f38ba8;
}
.notification-default-action {
background: transparent;
border-radius: 10px;
margin: 5px;
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content {
margin: 7px;
}
.notification-default-action:not(:only-child) {
border-bottom-left-radius: 7px;
border-bottom-right-radius: 7px;
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content
.summary {
color: #cdd6f4;
}
.notification-action:first-child {
border-bottom-left-radius: 10px;
background: transparent;
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content
.time {
color: #a6adc8;
}
.notification-action:last-child {
border-bottom-right-radius: 10px;
background: transparent;
.floating-notifications.background
.notification-row
.notification-background
.notification
.notification-content
.body {
color: #cdd6f4;
}
.close-button {
background: @text-color;
color: @noti-bg;
text-shadow: none;
padding: 0;
border-radius: 10px;
margin-top: 5px;
margin-right: 5px;
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> * {
min-height: 3.4em;
}
.close-button:hover {
box-shadow: none;
background: @text-color;
transition: all 0.15s ease-in-out;
border: none;
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action {
border-radius: 7px;
color: #cdd6f4;
background-color: #313244;
box-shadow: inset 0 0 0 1px #45475a;
margin: 7px;
}
.inline-reply {
margin-top: 8px;
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:hover {
box-shadow: inset 0 0 0 1px #45475a;
background-color: #313244;
color: #cdd6f4;
}
.inline-reply-entry {
background: @noti-bg;
color: @text-color;
caret-color: @text-color;
border: 1px solid @noti-border-color;
border-radius: 10px;
.floating-notifications.background
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:active {
box-shadow: inset 0 0 0 1px #45475a;
background-color: #74c7ec;
color: #cdd6f4;
}
.inline-reply-button {
font-size: 0.5rem;
margin-left: 4px;
background: @noti-bg;
border: 1px solid @noti-border-color;
border-radius: 10px;
color: @text-color;
.floating-notifications.background
.notification-row
.notification-background
.close-button {
margin: 7px;
padding: 2px;
border-radius: 6.3px;
color: #1e1e2e;
background-color: #f38ba8;
}
.inline-reply-button:disabled {
background: initial;
color: @text-color-disabled;
border: 1px solid transparent;
.floating-notifications.background
.notification-row
.notification-background
.close-button:hover {
background-color: #eba0ac;
color: #1e1e2e;
}
.inline-reply-button:hover {
background: @noti-bg-hover;
}
.body-image {
margin-top: 6px;
color: @text-color-alt;
border-radius: 10px;
}
.summary {
font-size: 1rem;
font-weight: 200;
background: transparent;
color: @text-color-alt;
text-shadow: none;
}
.time {
font-size: 1rem;
font-weight: 200;
background: transparent;
color: @text-color;
text-shadow: none;
margin-right: 18px;
}
.body {
font-size: 1rem;
font-weight: 200;
background: transparent;
color: @text-color;
text-shadow: none;
.floating-notifications.background
.notification-row
.notification-background
.close-button:active {
background-color: #f38ba8;
color: #1e1e2e;
}
.control-center {
background: @noti-bg;
color: @text-color;
border-radius: 10px;
box-shadow:
0 0 8px 0 rgba(0, 0, 0, 0.8),
inset 0 0 0 1px #313244;
border-radius: 12.6px;
margin: 18px;
background-color: #1e1e2e;
color: #cdd6f4;
padding: 14px;
}
.control-center .widget-title > label {
color: #cdd6f4;
font-size: 1.3em;
}
.control-center .widget-title button {
border-radius: 7px;
color: #cdd6f4;
background-color: #313244;
box-shadow: inset 0 0 0 1px #45475a;
padding: 8px;
}
.control-center-list {
background: transparent;
.control-center .widget-title button:hover {
box-shadow: inset 0 0 0 1px #45475a;
background-color: #585b70;
color: #cdd6f4;
}
.control-center-list-placeholder {
opacity: 0.5;
.control-center .widget-title button:active {
box-shadow: inset 0 0 0 1px #45475a;
background-color: #74c7ec;
color: #1e1e2e;
}
.floating-notifications {
background: transparent;
.control-center .notification-row .notification-background {
border-radius: 7px;
color: #cdd6f4;
background-color: #313244;
box-shadow: inset 0 0 0 1px #45475a;
margin-top: 14px;
}
.blank-window {
background: alpha(black, 0.1);
.control-center .notification-row .notification-background .notification {
padding: 7px;
border-radius: 7px;
}
.widget-title {
color: @noti-border-color;
/* background: @noti-bg-alt; */
padding: 3px 6px;
margin: 5px;
font-size: 1.25rem;
border-radius: 10px;
.control-center
.notification-row
.notification-background
.notification.critical {
box-shadow: inset 0 0 7px 0 #f38ba8;
}
.widget-title > button {
font-size: 1rem;
color: @text-color;
border-radius: 10px;
background: @noti-bg;
border: none;
/* border: 0.5px solid @noti-border-color; */
.control-center
.notification-row
.notification-background
.notification
.notification-content {
margin: 7px;
}
.widget-title > button:hover {
background: @text-color-alt;
color: @noti-bg-alt;
.control-center
.notification-row
.notification-background
.notification
.notification-content
.summary {
color: #cdd6f4;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content
.time {
color: #a6adc8;
}
.control-center
.notification-row
.notification-background
.notification
.notification-content
.body {
color: #cdd6f4;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> * {
min-height: 3.4em;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action {
border-radius: 7px;
color: #cdd6f4;
background-color: #11111b;
box-shadow: inset 0 0 0 1px #45475a;
margin: 7px;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:hover {
box-shadow: inset 0 0 0 1px #45475a;
background-color: #313244;
color: #cdd6f4;
}
.control-center
.notification-row
.notification-background
.notification
> *:last-child
> *
.notification-action:active {
box-shadow: inset 0 0 0 1px #45475a;
background-color: #74c7ec;
color: #cdd6f4;
}
.control-center .notification-row .notification-background .close-button {
margin: 7px;
padding: 2px;
border-radius: 6.3px;
color: #1e1e2e;
background-color: #eba0ac;
}
.close-button {
border-radius: 6.3px;
}
.control-center .notification-row .notification-background .close-button:hover {
background-color: #f38ba8;
color: #1e1e2e;
}
.control-center
.notification-row
.notification-background
.close-button:active {
background-color: #f38ba8;
color: #1e1e2e;
}
.control-center .notification-row .notification-background:hover {
box-shadow: inset 0 0 0 1px #45475a;
background-color: #7f849c;
color: #cdd6f4;
}
.control-center .notification-row .notification-background:active {
box-shadow: inset 0 0 0 1px #45475a;
background-color: #74c7ec;
color: #cdd6f4;
}
.notification.critical progress {
background-color: #f38ba8;
}
.notification.low progress,
.notification.normal progress {
background-color: #89b4fa;
}
.control-center-dnd {
margin-top: 5px;
border-radius: 8px;
background: #313244;
border: 1px solid #45475a;
box-shadow: none;
}
.control-center-dnd:checked {
background: #313244;
}
.control-center-dnd slider {
background: #45475a;
border-radius: 8px;
}
.widget-dnd {
background: @noti-bg-alt;
padding: 3px 6px;
margin: 5px;
border-radius: 10px;
font-size: 1rem;
color: @noti-border-color;
margin: 0px;
font-size: 1.1rem;
}
.widget-dnd > switch {
border-radius: 9999px;
/* border: 1px solid #7aa2f7; */
background: @text-color;
font-size: initial;
border-radius: 8px;
background: #313244;
border: 1px solid #45475a;
box-shadow: none;
}
.widget-dnd > switch:checked {
background: @text-color-alt;
/* border: 1px solid #f7768e; */
background: #313244;
}
.widget-dnd > switch slider {
background: @noti-bg;
border-radius: 9999px;
background: #45475a;
border-radius: 8px;
border: 1px solid #6c7086;
}
.widget-dnd > switch:checked slider {
background: @noti-bg;
border-radius: 9999px;
.widget-mpris .widget-mpris-player {
background: #313244;
padding: 7px;
}
.widget-label {
margin: 5px;
.widget-mpris .widget-mpris-title {
font-size: 1.2rem;
}
.widget-label > label {
font-size: 1rem;
color: @text-color;
.widget-mpris .widget-mpris-subtitle {
font-size: 0.8rem;
}
.widget-mpris {
color: white;
background: transparent;
border-radius: 10px;
.widget-menubar > box > .menu-button-bar > button > label {
font-size: 3rem;
padding: 0.5rem 2rem;
}
.widget-mpris > box > button {
border-radius: 10px;
.widget-menubar > box > .menu-button-bar > :last-child {
color: #f38ba8;
}
.widget-mpris-player {
.power-buttons button:hover,
.powermode-buttons button:hover,
.screenshot-buttons button:hover {
background: #313244;
}
.widget-mpris-title {
font-weight: 200;
font-size: 1.15rem;
}
.widget-mpris-subtitle {
font-size: 0.9rem;
.control-center .widget-label > label {
color: #cdd6f4;
font-size: 2rem;
}
.widget-buttons-grid {
font-size: large;
color: @noti-border-color;
padding: 4px;
margin: 5px;
border-radius: 10px;
background: @noti-bg-alt;
padding-top: 1rem;
}
.widget-buttons-grid > flowbox > flowboxchild > button {
margin: 1px;
background: @noti-bg;
border-radius: 10px;
color: @text-color;
}
.widget-buttons-grid > flowbox > flowboxchild > button:hover {
background: rgba(122, 162, 247, 0.1);
color: @text-color-alt;
}
.widget-menubar > box > .menu-button-bar > button {
border: none;
background: transparent;
}
.topbar-buttons > button {
border: none;
background: transparent;
.widget-buttons-grid > flowbox > flowboxchild > button label {
font-size: 2.5rem;
}
.widget-volume {
background: @noti-bg-alt;
/* padding: 4px; */
/* margin: 10px 10px 5px 10px; */
border-radius: 10px;
font-size: x-large;
color: @text-color;
padding-top: 1rem;
}
.widget-volume > box > button {
background: #7aa2f7;
border: none;
.widget-volume label {
font-size: 1.5rem;
color: #74c7ec;
}
.per-app-volume {
background-color: @noti-bg;
padding: 4px 8px 8px;
margin: 0 8px 8px;
border-radius: 10px;
color: @text-color;
.widget-volume trough highlight {
background: #74c7ec;
}
.widget-backlight {
background: @noti-bg-alt;
padding: 5px;
margin: 10px 10px 5px 10px;
border-radius: 10px;
font-size: x-large;
color: @text-color;
.widget-backlight trough highlight {
background: #f9e2af;
}
.low {
padding: 0px;
border-radius: 10px;
.widget-backlight label {
font-size: 1.5rem;
color: #f9e2af;
}
.normal {
padding: 0px;
border-radius: 10px;
.widget-backlight .KB {
padding-bottom: 1rem;
}
.critical {
padding: 0px;
border-radius: 10px;
.image {
padding-right: 0.5rem;
}