Commit ad9a8d5d authored by Kirill Unitsaev's avatar Kirill Unitsaev

hyprland: update configs

parent 87fafd21
...@@ -4,7 +4,6 @@ exec-once = hyprpaper ...@@ -4,7 +4,6 @@ exec-once = hyprpaper
exec-once = hypridle exec-once = hypridle
exec-once = waybar exec-once = waybar
exec-once = swaync exec-once = swaync
exec-once = hyprpm reload
# Буфер обмена / clipboard # Буфер обмена / clipboard
exec-once = wl-paste --type text --watch cliphist store exec-once = wl-paste --type text --watch cliphist store
......
binds { binds {
workspace_back_and_forth = false workspace_back_and_forth = false
workspace_center_on = 1 workspace_center_on = 1
hide_special_on_workspace_change = true
} }
#---------- ЗАПУСК ПРИЛОЖЕНИЙ ---- LAUNCHING APPLICATIONS #---------- ЗАПУСК ПРИЛОЖЕНИЙ ---- LAUNCHING APPLICATIONS
......
decoration { decoration {
rounding = 15 rounding = 15
rounding_power = 4.0
dim_special = 0.3
blur { blur {
noise = 0.0 noise = 0.0
size = 10 size = 10
passes = 2
} }
shadow { shadow {
enabled = false enabled = true
range = 7
render_power = 4
ignore_window = true
} }
} }
ecosystem { ecosystem {
no_update_news = true no_update_news = true
no_donation_nag = true
} }
general { general {
gaps_in = 4 gaps_in = 8
gaps_out = 12 gaps_out = 8
border_size = 1 border_size = 1
no_border_on_floating = true no_border_on_floating = true
col.active_border = rgb(7E01FF) col.active_border = rgb(7E01FF)
col.inactive_border = rgb(808181) col.inactive_border = rgb(808181)
resize_on_border = true resize_on_border = true
extend_border_grab_area = 15
layout = dwindle layout = dwindle
snap { snap {
enabled = true enabled = false
window_gap = 10
monitor_gap = 25
border_overlap = false
} }
} }
gestures { gestures {
workspace_swipe = true
workspace_swipe_distance = 700 workspace_swipe_distance = 700
workspace_swipe_fingers = 2
workspace_swipe_cancel_ratio = 0.2 workspace_swipe_cancel_ratio = 0.2
workspace_swipe_min_speed_to_force = 5 workspace_swipe_min_speed_to_force = 5
workspace_swipe_direction_lock = true workspace_swipe_direction_lock = true
workspace_swipe_direction_lock_threshold = 10 workspace_swipe_direction_lock_threshold = 10
workspace_swipe_create_new = true workspace_swipe_create_new = true
} }
gesture = 2, horizontal, workspace
...@@ -11,9 +11,11 @@ group { ...@@ -11,9 +11,11 @@ group {
enabled = true enabled = true
font_family = "FiraCode Nerd Font" font_family = "FiraCode Nerd Font"
font_size = 8 font_size = 10
stacked = false gaps_out = 0
rounding = 10
indicator_height = 2
col.active = rgb(7E01FF) col.active = rgb(7E01FF)
col.inactive = rgb(808181) col.inactive = rgb(808181)
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# Этот файл необходим для управления утилитой hypridle. # Этот файл необходим для управления утилитой hypridle.
general { general {
before_sleep_cmd = hyprctl dispatch dpms off
after_sleep_cmd = hyprctl dispatch dpms on after_sleep_cmd = hyprctl dispatch dpms on
} }
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
# Display on all monitors: # Display on all monitors:
# wallpaper = , "file path" # wallpaper = , "file path"
splash = true splash = false
splash_color = rgb(D8E2EA) splash_color = rgb(D8E2EA)
preload = /usr/share/wallpapers/ximper/44.png preload = /usr/share/wallpapers/ximper/44.png
......
input { input {
kb_layout = $kb_layout kb_layout = $kb_layout
kb_options = $kb_options kb_options = $kb_options
follow_mouse = 1 follow_mouse = 1
touchpad { touchpad {
natural_scroll = false natural_scroll = true
} scroll_factor = 0.3
clickfinger_behavior = true
drag_lock = true
}
numlock_by_default = true numlock_by_default = true
sensitivity = 0.0 sensitivity = 0.0
} }
...@@ -6,12 +6,6 @@ misc { ...@@ -6,12 +6,6 @@ misc {
key_press_enables_dpms = true key_press_enables_dpms = true
animate_mouse_windowdragging = true animate_mouse_windowdragging = true
allow_session_lock_restore = true allow_session_lock_restore = true
}
render {
explicit_sync = 2
explicit_sync_kms = 2
} }
cursor { cursor {
......
windowrulev2 = tag +images, class:(org.gnome.NautilusPreviewer) windowrule = tag +images, class:org.gnome.NautilusPreviewer
windowrulev2 = tag +images, title:(Просмотр медиа) windowrule = tag +images, title:(Просмотр медиа)
windowrulev2 = tag +images, title:(Media viewer) windowrule = tag +images, title:Media viewer
windowrulev2 = tag +images, class:(imv) windowrule = tag +images, class:imv
windowrulev2 = tag +video, class:(mpv) windowrule = tag +video, class:mpv
windowrulev2 = tag +video, class:(org.gnome.Showtime) windowrule = tag +video, class:(com.github.rafostar.Clapper)
windowrulev2 = tag +media, tag:images windowrule = tag +media, tag:images
windowrulev2 = tag +media, tag:video windowrule = tag +media, tag:video
windowrulev2 = opacity 1.0, tag:media windowrule = opacity 1.0, tag:media
windowrulev2 = float, tag:images windowrule = float, tag:images
windowrulev2 = float,class:^(org.gnome.FileRoller)$ windowrule = float, class:clipse
windowrulev2 = float,class:^(blueman-manager)$ windowrule = center, class:clipse
windowrulev2 = float,class:^(nm-connection-editor)$ windowrule = size 640 570, class:clipse
windowrulev2 = float,class:^(com.saivert.pwvucontrol)$
windowrulev2 = float,class:^(xdg-desktop-portal-gtk)$ windowrule = float,class:org.gnome.FileRoller
windowrulev2 = float, class:^(nmtui)$ windowrule = float,class:blueman-manager
windowrule = float,class:io.github.kaii_lb.Overskride
windowrulev2 = fullscreen, title:(Просмотр медиа) windowrule = float,class:overskride
windowrulev2 = fullscreen, title:(Media viewer) windowrule = float,class:nm-connection-editor
windowrule = float,class:com.saivert.pwvucontrol
#---------- Запуск из панели ---- Launching from the panel windowrule = float,class:xdg-desktop-portal-gtk
windowrulev2 = size 910 460, class:^(nmtui)$
windowrulev2 = move 52% 5%, class:^(nmtui)$ windowrule = fullscreen, title:(Просмотр медиа)
windowrule = fullscreen, title:(Media viewer)
windowrulev2 = size 530 350, class:^(blueman-manager)$
windowrulev2 = move 71.9% 5%, class:^(blueman-manager)$
windowrulev2 = size 530 350, class:^(com.saivert.pwvucontrol)$
windowrulev2 = move 71.9% 5%, class:^(com.saivert.pwvucontrol)$
layerrule = blur, logout_dialog layerrule = blur, logout_dialog
...@@ -4,9 +4,7 @@ env = HYPRCURSOR_SIZE, 24 ...@@ -4,9 +4,7 @@ env = HYPRCURSOR_SIZE, 24
#---------- XCursor #---------- XCursor
env = XCURSOR_THEME, Adwaita env = XCURSOR_THEME, Adwaita
env = XCURSOR_SIZE, 21 env = XCURSOR_SIZE, 24
#---------- gsettings #---------- QT
env = QT_STYLE_OVERRIDE, kvantum
exec-once = gsettings set org.gnome.desktop.interface cursor-theme Adwaita
exec-once = gsettings set org.gnome.desktop.interface cursor-size 21
{ {
"$schema": "/etc/xdg/swaync/configSchema.json", "$schema": "/etc/xdg/swaync/configSchema.json",
"positionX": "right", "positionX": "right",
"positionY": "top", "positionY": "top",
"layer": "overlay", "layer": "overlay",
"layer-shell": true, "layer-shell": true,
"cssPriority": "user", "cssPriority": "user",
"control-center-width": 380, "control-center-width": 350,
"control-center-height": 760, "control-center-height": 740,
"control-center-margin-top": 8, "control-center-margin-top": 8,
"control-center-margin-bottom": 8, "control-center-margin-bottom": 8,
"control-center-margin-right": 8, "control-center-margin-right": 8,
...@@ -36,7 +38,6 @@ ...@@ -36,7 +38,6 @@
"widgets": [ "widgets": [
"menubar#label", "menubar#label",
"buttons-grid",
"volume", "volume",
"mpris", "mpris",
"title", "title",
...@@ -44,17 +45,23 @@ ...@@ -44,17 +45,23 @@
"notifications" "notifications"
], ],
"widget-config": { "widget-config": {
"notifications": {},
"volume": {
"label": "",
"show-per-app": true,
"empty-list-label": "Нет активного источника"
},
"title": { "title": {
"text": "Уведомления", "text": "Уведомления",
"clear-all-button": true, "clear-all-button": true,
"button-text": " 󰎟 " "button-text": "  Очистить "
}, },
"dnd": { "dnd": {
"text": "Не беспокоить" "text": "Не беспокоить"
}, },
"mpris": { "mpris": {
"image-size": 96, "show-album-art": "always",
"image-radius": 12 "autohide": true
}, },
"menubar#label": { "menubar#label": {
"menu#powermode-buttons": { "menu#powermode-buttons": {
...@@ -63,15 +70,24 @@ ...@@ -63,15 +70,24 @@
"actions": [ "actions": [
{ {
"label": " Производительность", "label": " Производительность",
"command": "powerprofilesctl set performance" "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": " Баланс", "label": " Баланс",
"command": "powerprofilesctl set balanced" "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": " Энергосбережение", "label": " Энергосбережение",
"command": "powerprofilesctl set power-saver" "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'"
} }
] ]
}, },
...@@ -84,30 +100,6 @@ ...@@ -84,30 +100,6 @@
} }
] ]
} }
},
"buttons-grid": {
"actions": [
{
"label": "",
"command": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle"
},
{
"label": "",
"command": "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle"
},
{
"label": "",
"command": "kitty --class nmtui nmtui"
},
{
"label": "󰂯",
"command": "blueman-manager"
},
{
"label": "",
"command": "gtklock"
}
]
} }
} }
} }
...@@ -19,12 +19,15 @@ ...@@ -19,12 +19,15 @@
transition: 200ms; transition: 200ms;
} }
:root {
--mpris-album-art-icon-size: 64px;
}
/* ---------- ЦЕНТР УПРАВЛЕНИЯ ---- CONTROL CENTER */ /* ---------- ЦЕНТР УПРАВЛЕНИЯ ---- CONTROL CENTER */
.control-center { .control-center {
background: @bg; background: @bg;
border-radius: 15px; border-radius: 15px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.9); box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
padding: 10px;
} }
.notification-row { .notification-row {
...@@ -178,21 +181,21 @@ ...@@ -178,21 +181,21 @@
/* ----- ЗАГОЛОВОК --- TITLE */ /* ----- ЗАГОЛОВОК --- TITLE */
.widget-title { .widget-title {
background: transparent; background: transparent;
padding: 0px;
margin: 10px;
} }
.widget-title>label { .widget-title>label {
margin: 0px 10px;
font-size: 20px; font-size: 20px;
} }
.widget-title > button { .widget-title > button {
border: unset; background: @selected_bg;
background-color: unset; border-radius: 15px;
border-radius: 1.159rem; padding: 3px 5px 3px 2px;
padding: 0.141rem 0.141rem;
margin-right: 0.841rem;
} }
.widget-title > button:hover { .widget-title > button:hover {
background-color: @selected_bg; background: alpha(@selected_bg, 0.5);
border: 0.5px solid @border; border: 1px solid @border;
} }
.widget-title > button:active { .widget-title > button:active {
...@@ -201,51 +204,72 @@ ...@@ -201,51 +204,72 @@
} }
/* ----- НЕ БЕСПОКОИТЬ --- DND */ /* ----- НЕ БЕСПОКОИТЬ --- DND */
.widget-dnd {
padding: 0px;
margin: 10px;
margin-top: 0px;
}
.widget-dnd label { .widget-dnd label {
margin: 0px 15px;
font-size: 16px; font-size: 16px;
color: alpha(@text, 0.8);
} }
/* ----- РЯД КНОПОК --- BUTTONS GRID */ .widget-notifications {
.widget-buttons-grid { margin: 0px;
padding: 0px 2px; }
margin: 5px;
border-radius: 12px; /* ----- ГРОМКОСТЬ --- VOLUME */
.widget-volume {
background: @selected_bg; background: @selected_bg;
font-family: FiraCode Nerd Font; border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75); padding: 5px;
margin: 10px;
border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
} }
.widget-buttons-grid > flowbox > flowboxchild > button { .widget-volume .image-button {
border: none;
margin: 4px 10px;
padding: 6px 12px;
background: transparent; background: transparent;
border-radius: 8px;
} }
.widget-buttons-grid > flowbox > flowboxchild > button:hover { .widget-volume .horizontal label {
background: alpha(@bg, 0.50); padding: 0px 2px 0px 13px;
margin: 0px;
font-size: 32px;
} }
/* ----- ПРЕЕР --- MPRIS */ /* ----- ПРЕЕР --- MPRIS */
.widget-mpris { .widget-mpris {
margin: 5px; 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 { .widget-mpris .widget-mpris-player {
margin: 5px; margin: 5px;
border-radius: 12px; border-radius: 15px;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.75); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}
.widget-mpris .widget-mpris-player .mpris-background {
filter: blur(10px);
} }
.widget-mpris .widget-mpris-player .mpris-overlay { .widget-mpris .widget-mpris-player .mpris-overlay {
padding: 15px; background: @selected_bg;
padding: 5px;
} }
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-album-art { .widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-album-art {
border: 1.3px solid @border; border: 1.3px solid @border;
border-radius: 12px; border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75); margin: 3px;
box-shadow: none;
} }
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-title { .widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-title {
font-weight: bold; font-weight: bold;
...@@ -254,14 +278,19 @@ ...@@ -254,14 +278,19 @@
.widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-subtitle { .widget-mpris .widget-mpris-player .mpris-overlay .widget-mpris-subtitle {
font-size: 12px; font-size: 12px;
} }
.widget-mpris .widget-mpris-player .mpris-overlay>box>button { .widget-mpris .widget-mpris-player .mpris-overlay .image-button {
margin: 10px 0px 0px; padding: 0px 5px 0px 5px;
} }
.widget-mpris .widget-mpris-player .mpris-overlay>box>button:hover { .widget-mpris .widget-mpris-player .mpris-overlay .image-button:hover {
background: alpha(@bg, 0.50); background: alpha(@bg, 0.3);
} }
/* ----- МЕНЮ --- MENU */ /* ----- МЕНЮ --- MENU */
.widget-menubar {
margin: 0px;
padding: 5px;
}
.widget-menubar .text-button { .widget-menubar .text-button {
font-family: FiraCode Nerd Font; font-family: FiraCode Nerd Font;
background: transparent; background: transparent;
...@@ -273,18 +302,29 @@ ...@@ -273,18 +302,29 @@
background: @selected_bg; background: @selected_bg;
border-radius: 12px; border-radius: 12px;
padding: 10px; padding: 10px;
margin: 8px; margin: 5px;
border-radius: 15px; border-radius: 15px;
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.75); box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
} }
.powermode-buttons>button { .powermode-buttons .text-button {
all: unset; all: unset;
background: transparent; background: transparent;
border: none; border: none;
padding: 5px; 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>button:hover { .powermode-buttons .text-button label {
color: @selected_text; 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