update waybar

This commit is contained in:
2026-09-14 21:52:07 +06:00
parent 8b7027608b
commit 8f4b5ec8e7
2 changed files with 22 additions and 6 deletions
+15 -5
View File
@@ -5,7 +5,7 @@
"spacing": 0, "spacing": 0,
"modules-left": ["wlr/taskbar"], "modules-left": ["wlr/taskbar"],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": ["network","bluetooth","custom/spotify","custom/language","pulseaudio","cpu","battery","power-profiles-daemon","wlr/tray","clock#date"], "modules-right": ["network","bluetooth","custom/proxy","custom/spotify","custom/language","pulseaudio","cpu","battery","power-profiles-daemon","wlr/tray","clock#date"],
"wlr/taskbar": { "wlr/taskbar": {
"format": "{icon}", "format": "{icon}",
@@ -15,22 +15,33 @@
}, },
"custom/language": { "custom/language": {
"exec": "xkb-switch -p | tr '[:lower:]' '[:upper:]' || echo '??'", "exec": "xkb-switch -p | tr '[:lower:]' '[:upper:]' || echo '??'",
"tooltip": false,
"interval": 1, "interval": 1,
"format": "[ {}]" "format": "[ {}]"
}, },
"custom/spotify": { "custom/spotify": {
"format": "[played: [{}] ]", "format": "[played: [{}] ]",
"exec": "playerctl metadata --format '{{artist}} - {{title}}' spotify 2>/dev/null || echo ''", "exec": "playerctl metadata --format '{{artist}} - {{title}}' spotify 2>/dev/null || echo ''",
"tooltip": false,
"restart-interval": 1, "restart-interval": 1,
"on-click": "spotify-launcher", "on-click": "spotify-launcher",
"max-length": 50 "max-length": 50
}, },
"custom/proxy": {
"format": "[proxy]",
"tooltip": false,
"on-click": "alacritty -e sudo yast2 proxy"
},
"clock": { "clock": {
"format": "[{:%H:%M}]", "format": "[{:%H:%M}]",
"tooltip": false,
"on-click": "gnome-calendar" "on-click": "gnome-calendar"
}, },
"clock#date": { "clock#date": {
"format": "[{:%d-%m-%Y}]", "format": "[{:%d-%m-%Y}]",
"tooltip": false,
"on-click": "gnome-calendar" "on-click": "gnome-calendar"
}, },
"cpu": { "cpu": {
@@ -47,7 +58,7 @@
"on-click": "nm-connection-editor" "on-click": "nm-connection-editor"
}, },
"bluetooth": { "bluetooth": {
"format": "[  ]", "format": "[ blu-th]",
"format-disabled": "[🛪 disabled]", "format-disabled": "[🛪 disabled]",
"format-off": "[🛦 off]", "format-off": "[🛦 off]",
"format-connected": "[ {num_connections}]", "format-connected": "[ {num_connections}]",
@@ -57,7 +68,7 @@
"on-click": "blueman-manager" "on-click": "blueman-manager"
}, },
"battery": { "battery": {
"format": "[{icon} {capacity}%] ", "format": "[{icon} {capacity}%]",
"format-charging": "[ {capacity}% {icon}]", "format-charging": "[ {capacity}% {icon}]",
"format-plugged": "[ {capacity}%]", "format-plugged": "[ {capacity}%]",
"interval": 1, "interval": 1,
@@ -77,8 +88,7 @@
}, },
"power-profiles-daemon": { "power-profiles-daemon": {
"format": "[{icon}]", "format": "[{icon}]",
"tooltip-format": "Профиль: {profile}", "tooltip": false,
"tooltip": true,
"format-icons": { "format-icons": {
"default": "default", "default": "default",
"performance": "performance", "performance": "performance",
+7 -1
View File
@@ -11,6 +11,7 @@ window#waybar {
min-height: 28px; min-height: 28px;
} }
/* Добавляем ВСЕ модули с вашей панели, включая proxy, battery и профили питания */
#clock, #clock,
#cpu, #cpu,
#memory, #memory,
@@ -19,8 +20,13 @@ window#waybar {
#taskbar, #taskbar,
#custom-spotify, #custom-spotify,
#custom-language, #custom-language,
#custom-proxy,
#battery,
#power-profiles-daemon,
#custom-power,
#bluetooth,
#tray { #tray {
padding: 0 10px; padding: 0 6px; /* Немного уменьшили с 10px до 6px, чтобы скобки не разлетались слишком далеко */
color: #0b0b0b; color: #0b0b0b;
} }