Hyprland config: refactoring

parent 76b1e4a2
# This file is required to manage the hypridle utility. # This file is required to manage the hypridle utility.
# Этот файл необходим для управления утилитой hypridle.
general { general {
after_sleep_cmd = hyprctl dispatch dpms on after_sleep_cmd = hyprctl dispatch dpms on
} }
listener { listener {
timeout = 240 # 4 минуты timeout = 150
on-timeout = brightnessctl -s set 10
on-resume = brightnessctl -r
}
listener {
timeout = 150
on-timeout = brightnessctl -sd rgb:kbd_backlight set 0
on-resume = brightnessctl -rd rgb:kbd_backlight
}
listener {
timeout = 300
on-timeout = gtklock
}
listener {
timeout = 330
on-timeout = hyprctl dispatch dpms off on-timeout = hyprctl dispatch dpms off
on-resume = hyprctl dispatch dpms on on-resume = hyprctl dispatch dpms on
} }
listener { listener {
timeout = 340 # 9 минут timeout = 1800
on-timeout = systemctl suspend on-timeout = systemctl suspend
} }
# This file is required to configure the wallpaper display. # Этот файл необходим для настройки отображения обоев.
# Загрузка обоев:
# Syntax: # preload = "путь к файлу"
# preload = "the path to the file" # Отображение на мониторе:
# # wallpaper = "монитор","путь к файлу"
# wallpaper = "monitor","the path to the file" # Отображение на всех мониторах:
# wallpaper = ,"путь к файлу"
# For display on all monitors, the field can be left empty. # This file is required to configure the wallpaper display.
# preload = "the path to the file" # Wallpaper preload:
# # preload = "file path"
# wallpaper = ,"the path to the file" # Display on the monitor:
# wallpaper = "monitor","file path"
# Display on all monitors:
# wallpaper = , "file path"
preload = /usr/share/wallpapers/ximper/44.png preload = /usr/share/wallpapers/ximper/44.png
wallpaper = ,/usr/share/wallpapers/ximper/44.png wallpaper = ,/usr/share/wallpapers/ximper/44.png
...@@ -5,7 +5,6 @@ bold_italic_font auto ...@@ -5,7 +5,6 @@ bold_italic_font auto
font_size 11.5 font_size 11.5
window_padding_width 5 window_padding_width 5
confirm_os_window_close 0 confirm_os_window_close 0
...@@ -53,8 +52,6 @@ cursor_text_color #a5b6cf ...@@ -53,8 +52,6 @@ cursor_text_color #a5b6cf
selection_foreground #a5b6cf selection_foreground #a5b6cf
selection_background #1c1e27 selection_background #1c1e27
url color #5de4c7
# Window borders # Window borders
active_border_color #3d59a1 active_border_color #3d59a1
inactive_border_color #101014 inactive_border_color #101014
......
...@@ -8,10 +8,12 @@ window { ...@@ -8,10 +8,12 @@ window {
padding: 5px padding: 5px
} }
/*
#active { #active {
border-bottom: solid 1px; border-bottom: solid 1px;
border-color: rgb(112, 112, 112) border-color: rgb(112, 112, 112)
} }
*/
button, button,
image { image {
...@@ -36,4 +38,4 @@ button:hover { ...@@ -36,4 +38,4 @@ button:hover {
button:focus { button:focus {
box-shadow: none box-shadow: none
} }
\ No newline at end of file
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
"notification-2fa-action": true, "notification-2fa-action": true,
"notification-inline-replies": false, "notification-inline-replies": false,
"notification-window-width": 400, "notification-window-width": 400,
"notification-icon-size": 48, "notification-icon-size": 45,
"notification-body-image-height": 160, "notification-body-image-height": 160,
"notification-body-image-width": 200, "notification-body-image-width": 200,
"timeout": 4, "timeout": 4,
......
...@@ -181,28 +181,28 @@ ...@@ -181,28 +181,28 @@
background-color: @selected_bg; background-color: @selected_bg;
padding: 8px; padding: 8px;
margin: 8px; margin: 8px;
border-radius: 1.159rem; border-radius: 15px;
} }
.widget-mpris-player { .widget-mpris-player {
padding: 8px; padding: 0px;
margin: 8px; margin: 0px;
} }
.widget-mpris-title { .widget-mpris-title {
font-weight: bold; font-weight: bold;
font-size: 1.25rem; font-size: 18px;
} }
.widget-mpris-subtitle { .widget-mpris-subtitle {
font-size: 1.1rem; font-size: 15px;
} }
.powermode-buttons { .powermode-buttons {
background-color: @bg; background-color: @bg;
padding: 8px; padding: 8px;
margin: 8px; margin: 8px;
border-radius: 12px; border-radius: 15px;
} }
.powermode-buttons>button { .powermode-buttons>button {
...@@ -212,4 +212,4 @@ ...@@ -212,4 +212,4 @@
.powermode-buttons>button:hover { .powermode-buttons>button:hover {
color: @selected_text; color: @selected_text;
} }
\ No newline at end of file
{ {
"layer": "top", "layer": "top",
"position": "top", "position": "top",
"margin-left": 15, "margin-left": 5,
"margin-top": 5, "margin-top": 5,
"margin-right": 15, "margin-right": 5,
"height": 32, "height": 32,
"spacing": 4, "spacing": 4,
"exclusive": true, "exclusive": true,
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
], ],
"modules-center": [ "modules-center": [
"hyprland/workspaces", "hyprland/workspaces",
"custom/sep",
"tray" "tray"
], ],
"modules-right": [ "modules-right": [
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"image#menu": { "image#menu": {
"path": "/usr/share/pixmaps/ximperlinux.svg", "path": "/usr/share/pixmaps/ximperlinux.svg",
"size": 25, "size": 25,
"on-click": "wofi --show drun" "on-click": "pkill wofi || wofi --show drun"
}, },
"idle_inhibitor": { "idle_inhibitor": {
"format": " {icon}", "format": " {icon}",
...@@ -46,7 +46,8 @@ ...@@ -46,7 +46,8 @@
}, },
"custom/clipboard": { "custom/clipboard": {
"tooltip": false, "tooltip": false,
"on-click": "cliphist list | wofi --dmenu | cliphist decode | wl-copy", "on-click": "pkill wofi || cliphist list | wofi --dmenu | cliphist decode | wl-copy",
"on-click-right": "rm -f ~/.cache/cliphist/db",
"format": " " "format": " "
}, },
"backlight": { "backlight": {
...@@ -73,8 +74,6 @@ ...@@ -73,8 +74,6 @@
"tooltip-format": "{desc}", "tooltip-format": "{desc}",
"format-icons": { "format-icons": {
"headphone": " ", "headphone": " ",
"phone": " ",
"portable": " ",
"default": [ "default": [
" ", " ",
" ", " ",
...@@ -130,7 +129,7 @@ ...@@ -130,7 +129,7 @@
"states": { "states": {
"good": 95, "good": 95,
"warning": 30, "warning": 30,
"critical": 20 "critical": 15
}, },
"format": "{icon} {capacity}%", "format": "{icon} {capacity}%",
"rotate": 0, "rotate": 0,
...@@ -156,12 +155,11 @@ ...@@ -156,12 +155,11 @@
"tooltip-format": "<tt><big>{calendar}</big></tt>", "tooltip-format": "<tt><big>{calendar}</big></tt>",
"on-click": "swaync-client -t -sw", "on-click": "swaync-client -t -sw",
"calendar": { "calendar": {
"mode": "months", "mode": "month",
"weeks-pos": "right", "weeks-pos": "right",
"on-scroll": 1,
"format": { "format": {
"months": "<span color='#ffead3'><b>{}</b></span>", "months": "<span color='#D8E9DE'><b>{}</b></span>",
"days": "<span color='#ecc6d9'><b>{}</b></span>", "days": "<span color='#D8E9DE'><b>{}</b></span>",
"weeks": "<span color='#99ffdd'><b>W{}</b></span>", "weeks": "<span color='#99ffdd'><b>W{}</b></span>",
"weekdays": "<span color='#ffcc66'><b>{}</b></span>", "weekdays": "<span color='#ffcc66'><b>{}</b></span>",
"today": "<span color='#ff6699'><b><u>{}</u></b></span>" "today": "<span color='#ff6699'><b><u>{}</u></b></span>"
...@@ -192,4 +190,4 @@ ...@@ -192,4 +190,4 @@
"format": " ", "format": " ",
"tooltip": false "tooltip": false
} }
} }
\ No newline at end of file
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
window#waybar { window#waybar {
border: 1px solid @border; border: 1px solid @border;
transition-property: background-color; transition-property: background-color;
transition-duration: 0.5s; transition-duration: 0.8s;
background-color: @bg; background-color: @bg;
border-radius: 15px; border-radius: 15px;
} }
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
window#waybar { window#waybar {
border: 2px solid @border; border: 2px solid @border;
transition-property: background-color; transition-property: background-color;
transition-duration: 0.5s; transition-duration: 0.8s;
background-color: @bg; background-color: @bg;
border-radius: 15px; border-radius: 15px;
} }
......
{ {
"label" : "lock", "label" : "lock",
"action" : "loginctl lock-session", "action" : "gtklock",
"text": "Заблокировать" "text": "Заблокировать"
} }
......
...@@ -28,28 +28,28 @@ button:focus, button:active, button:hover { ...@@ -28,28 +28,28 @@ button:focus, button:active, button:hover {
#lock { #lock {
border-radius: 15px 0px 0px 0px; border-radius: 15px 0px 0px 0px;
background-image: image(url("/usr/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png")); background-image: image(url("/usr/share/wlogout/icons/lock.png"));
} }
#logout { #logout {
background-image: image(url("/usr/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png")); background-image: image(url("/usr/share/wlogout/icons/logout.png"));
} }
#suspend { #suspend {
border-radius: 0px 15px 0px 0px; border-radius: 0px 15px 0px 0px;
background-image: image(url("/usr/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png")); background-image: image(url("/usr/share/wlogout/icons/suspend.png"));
} }
#hibernate { #hibernate {
border-radius: 0px 0px 0px 15px; border-radius: 0px 0px 0px 15px;
background-image: image(url("/usr/share/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png")); background-image: image(url("/usr/share/wlogout/icons/hibernate.png"));
} }
#shutdown { #shutdown {
background-image: image(url("/usr/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png")); background-image: image(url("/usr/share/wlogout/icons/shutdown.png"));
} }
#reboot { #reboot {
border-radius: 0px 0px 15px 0px; border-radius: 0px 0px 15px 0px;
background-image: image(url("/usr/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png")); background-image: image(url("/usr/share/wlogout/icons/reboot.png"));
} }
...@@ -11,6 +11,6 @@ orientation=vertical ...@@ -11,6 +11,6 @@ orientation=vertical
content_halign=fill content_halign=fill
insensitive=true insensitive=true
allow_images=true allow_images=true
image_size=35 image_size=32
gtk_dark=true gtk_dark=true
layer=overlay layer=overlay
window { window {
margin: 0px; margin: 0px;
border: 2px solid #5D12F3; border: 2px solid #7E01FF;
background-color: #0B0E1D; background-color: #0B0E1D;
border-radius: 18px; border-radius: 15px;
} }
#input { #input {
......
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