configs/hyprland: drop swaync

parent 8654a0c6
......@@ -317,7 +317,7 @@ done
mkdir -p %buildroot%_sysconfdir/ximperdistro/
cp -r configs/hyprland %buildroot%_sysconfdir/ximperdistro/
for i in swaync wofi wlogout swappy; do
for i in wofi wlogout swappy; do
ln -s %_sysconfdir/ximperdistro/hyprland/$i %buildroot%_sysconfdir/skel/.config/$i
done
......@@ -412,7 +412,6 @@ fi
%files hyprland-settings
%_sysconfdir/skel/.config/hypr
%_sysconfdir/skel/.config/kitty
%_sysconfdir/skel/.config/swaync
%_sysconfdir/skel/.config/waybar
%_sysconfdir/skel/.config/wofi
%_sysconfdir/skel/.config/wlogout
......
{
"$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right",
"positionY": "top",
"layer": "overlay",
"layer-shell": true,
"cssPriority": "user",
"control-center-width": 350,
"control-center-height": 740,
"control-center-margin-top": 8,
"control-center-margin-bottom": 8,
"control-center-margin-right": 8,
"control-center-margin-left": 0,
"notification-2fa-action": true,
"notification-inline-replies": false,
"notification-window-width": 400,
"notification-icon-size": 45,
"notification-body-image-height": 160,
"notification-body-image-width": 200,
"timeout": 4,
"timeout-low": 2,
"timeout-critical": 6,
"fit-to-screen": false,
"keyboard-shortcuts": true,
"image-visibility": "when-available",
"transition-time": 200,
"hide-on-clear": false,
"hide-on-action": false,
"script-fail-notify": true,
"text-empty": "Нет уведомлений",
"widgets": [
"menubar#label",
"volume",
"mpris",
"title",
"dnd",
"notifications"
],
"widget-config": {
"notifications": {},
"volume": {
"label": "",
"show-per-app": true,
"empty-list-label": "Нет активного источника"
},
"title": {
"text": "Уведомления",
"clear-all-button": true,
"button-text": "  Очистить "
},
"dnd": {
"text": "Не беспокоить"
},
"mpris": {
"show-album-art": "always",
"autohide": true
},
"menubar#label": {
"menu#powermode-buttons": {
"label": " ",
"position": "left",
"actions": [
{
"label": " Производительность",
"type": "toggle",
"active": true,
"command": "swaync-client -t && powerprofilesctl set performance && swaync-client -t",
"update-command": "sh -c '[[ $(powerprofilesctl get) == \"performance\" ]] && echo true || echo false'"
},
{
"label": " Баланс",
"type": "toggle",
"active": false,
"command": "swaync-client -t && powerprofilesctl set balanced && swaync-client -t",
"update-command": "sh -c '[[ $(powerprofilesctl get) == \"balanced\" ]] && echo true || echo false'"
},
{
"label": " Энергосбережение",
"type": "toggle",
"active": false,
"command": "swaync-client -t && powerprofilesctl set power-saver && swaync-client -t",
"update-command": "sh -c '[[ $(powerprofilesctl get) == \"power-saver\" ]] && echo true || echo false'"
}
]
},
"buttons#topbar-buttons": {
"position": "right",
"actions": [
{
"label": "",
"command": "wlogout -b 5 -T 300 -B 300"
}
]
}
}
}
}
@define-color bg #0B0E1D;
@define-color selected_bg #1D202F;
@define-color hover_bg #191b27;
@define-color text #D8E2EA;
@define-color selected_text #a6a7ac;
@define-color border #5e647d;
@define-color error #bd2828;
@define-color success #e89b0b;
@define-color accent #7E01FF;
@define-color unfocused #f85656;
@define-color priority_low #74e3b4;
@define-color priority_normal #86e8ff;
@define-color priority_critical #f26476;
* {
color: @text;
font-size: 15px;
transition: 200ms;
}
:root {
--mpris-album-art-icon-size: 64px;
}
/* ---------- ЦЕНТР УПРАВЛЕНИЯ ---- CONTROL CENTER */
.control-center {
background: @bg;
border-radius: 15px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
}
.notification-row {
background: none;
}
.notification-row:focus,
.notification-group:focus,
.notification-group {
background: @bg;
}
.blank-window,
.floating-notifications {
background: none;
}
/* ---------- ГРУППА УВЕДОМЛЕНИЙ ---- NOTIFICATION GROUP */
.notification-group .notification-group-close-button .close-button {
background: alpha(@bg, 0.6);
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.4);
margin: 15px 20px;
}
.notification-group .notification-group-close-button .close-button:hover {
background: alpha(@bg, 0.4);
}
.notification-group .notification-group-buttons,
.notification-group .notification-group-headers {
background: transparent;
margin: 0 15px;
color: @text;
}
.notification-group .notification-group-headers .notification-group-icon {
color: @text;
}
.notification-group .notification-group-headers .notification-group-header {
font-size: 18px;
color: @text;
}
.notification-group .notification-group-buttons {
padding: 5px;
}
/* ---------- УВЕДОМЛЕНИЕЯ ---- NOTIFICATIONS */
.notification-row .notification-background .notification {
background: @selected_bg;
transition: background 0.15s ease-in-out;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.8);
border-radius: 8px;
border: none;
border-left: 1.5px;
padding: 5px;
}
/* ----- НИЗКИЙ ПРИОРИТЕТ --- LOW */
.notification-row .notification-background .notification.low {
border-left: 3px solid @priority_low;
}
/* ----- ОБЫЧНЫЙ ПРИОРИТЕТ --- NORMAL */
.notification-row .notification-background .notification.normal {
border-left: 3px solid @priority_normal;
}
/* ----- ВЫСОКИЙ ПРИОРИТЕТ --- CRITICAL */
.notification-row .notification-background .notification.critical {
border-left: 3px solid @priority_critical;
}
/* ----- ДЕЙСТВИЕ ПО УМОЛЧАНИЮ --- DEFAULT ACTION */
.notification-default-action {
background: transparent;
padding: 10px;
margin: 0;
border: none;
}
.notification-default-action:hover {
}
/* ----- СОДЕРЖИМОЕ --- CONTENT */
.notification-content {
background: transparent;
border: none;
padding: 0;
}
.notification-content .image {
border-radius: 15px;
margin: 0px 15px 0px 0px;
}
.notification-content .app-icon {
margin: 6px;
}
.notification-content progressbar,
.notification-content .body-image {
margin-top: 4px;
background: transparent;
}
/* ----- ТЕКСТ --- TEXT */
.notification-content .text-box .summary,
.notification-content .text-box .time,
.notification-content .text-box .body {
background: transparent;
font-weight: normal;
font-size: 14px;
color: @text;
}
.notification-content .text-box .summary,
.notification-content .text-box .time {
font-weight: bold;
}
.notification-content .text-box .time {
margin-right: 30px;
font-size: 12px;
}
.notification-content .text-box .summary {
font-size: 16px;
}
/* ----- КНОПКА ЗАКРЫТИЯ --- CLOSE BUTTON */
.close-button {
background: alpha(@bg, 0.8);
color: @text;
}
.close-button:hover {
background: alpha(@bg, 0.4);
}
/* ----- КНОПКА --- BUTTON */
.notification-alt-actions {
background: transparent;
}
.notification-action {
background: transparent;
}
.notification-action>button {
background: alpha(@bg, 0.8);
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.4);
border-radius: 12px;
font-size: 12px;
padding: 8px;
}
.notification-action>button:hover {
background: alpha(@bg, 0.4);
}
/* ---------- ВИДЖЕТЫ ---- WIDGETS */
/* ----- ЗАГОЛОВОК --- TITLE */
.widget-title {
background: transparent;
padding: 0px;
margin: 10px;
}
.widget-title>label {
font-size: 20px;
}
.widget-title > button {
background: @selected_bg;
border-radius: 15px;
padding: 3px 5px 3px 2px;
}
.widget-title > button:hover {
background: alpha(@selected_bg, 0.5);
border: 1px solid @border;
}
.widget-title > button:active {
background-color: @selected_bg;
border: 0.5px solid @border;
}
/* ----- НЕ БЕСПОКОИТЬ --- DND */
.widget-dnd {
padding: 0px;
margin: 10px;
margin-top: 0px;
}
.widget-dnd label {
font-size: 16px;
color: alpha(@text, 0.8);
}
.widget-notifications {
margin: 0px;
}
/* ----- ГРОМКОСТЬ --- VOLUME */
.widget-volume {
background: @selected_bg;
border-radius: 15px;
padding: 5px;
margin: 10px;
border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}
.widget-volume .image-button {
background: transparent;
}
.widget-volume .horizontal label {
padding: 0px 2px 0px 13px;
margin: 0px;
font-size: 32px;
}
/* ----- ПРЕЕР --- MPRIS */
.widget-mpris {
margin: 5px;
border-radius: 15px;
}
.widget-mpris carouselindicatordots {
margin: 0px;
padding: 0px;
}
.widget-mpris .flat.image-button {
margin: 0px;
padding: 0px;
}
.widget-mpris .mpris-background {
background: transparent;
}
.widget-mpris .widget-mpris-player {
margin: 5px;
border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}
.widget-mpris .widget-mpris-player .mpris-overlay {
background: @selected_bg;
padding: 5px;
}
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-album-art {
border: 1.3px solid @border;
border-radius: 15px;
margin: 3px;
box-shadow: none;
}
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-title {
font-weight: bold;
font-size: 16px;
}
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-subtitle {
font-size: 12px;
}
.widget-mpris .widget-mpris-player .mpris-overlay .image-button {
padding: 0px 5px 0px 5px;
}
.widget-mpris .widget-mpris-player .mpris-overlay .image-button:hover {
background: alpha(@bg, 0.3);
}
/* ----- МЕНЮ --- MENU */
.widget-menubar {
margin: 0px;
padding: 5px;
}
.widget-menubar .text-button {
font-family: FiraCode Nerd Font;
background: transparent;
margin: 0px;
}
.powermode-buttons {
all: unset;
background: @selected_bg;
border-radius: 12px;
padding: 10px;
margin: 5px;
border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}
.powermode-buttons .text-button {
all: unset;
background: transparent;
border: none;
margin: 2px;
border-radius: 15px;
}
.powermode-buttons .text-button:hover {
background: alpha(@bg, 0.3);
}
.powermode-buttons .text-button.toggle:checked {
background: alpha(@bg, 0.4);
}
.powermode-buttons .text-button label {
padding-bottom: 5px;
}
.powermode-buttons .text-button label:hover {
color: alpha(@text, 0.6);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment