Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37878292
en ru br
Репозитории ALT
S:0.9.22.5.g0a28b50a-alt1
www.altlinux.org/Changes

Группа :: Графические оболочки/Прочее
Пакет: waybar

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: waybar-config.patch
Скачать


diff --git a/resources/config b/resources/config
index ad76e93..19b7e59 100644
--- a/resources/config
+++ b/resources/config
@@ -1,11 +1,11 @@
 {
-    // "layer": "top", // Waybar at top layer
+    "layer": "top", // Waybar at top layer
     // "position": "bottom", // Waybar position (top|bottom|left|right)
     "height": 30, // Waybar height (to be removed for auto height)
     // "width": 1280, // Waybar width
     "spacing": 4, // Gaps between modules (4px)
     // Choose the order of the modules
-    "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad", "custom/media"],
+    "modules-left": ["sway/workspaces", "sway/mode", "sway/scratchpad"],
     "modules-center": ["sway/window"],
     "modules-right": ["mpd", "idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "keyboard-state", "sway/language", "battery", "battery#bat2", "clock", "tray"],
     // Modules configuration
@@ -43,6 +43,9 @@
         "tooltip": true,
         "tooltip-format": "{app}: {title}"
     },
+    "sway/window": {
+        "max-length": 40
+    },
     "mpd": {
         "format": "{stateIcon} {consumeIcon}{randomIcon}{repeatIcon}{singleIcon}{artist} - {album} - {title} ({elapsedTime:%M:%S}/{totalTime:%M:%S}) Б╦╗{songPosition}|{queueLength}Б╦╘ {volume}% О─│",
         "format-disconnected": "Disconnected О─│",
@@ -77,7 +80,7 @@
         }
     },
     "tray": {
-        // "icon-size": 21,
+        "icon-size": 24,
         "spacing": 10
     },
     "clock": {
@@ -150,6 +153,16 @@
         },
         "on-click": "pavucontrol"
     },
+    "bluetooth": {
+        "format": " {icon} ",
+        "format-alt": " bluetooth: {status} ",
+        "interval": 30,
+        "format-icons": {
+                "enabled": "О┼■",
+                "disabled": ""
+        },
+        "tooltip-format": "{status}"
+    },
     "custom/media": {
         "format": "{icon} {}",
         "return-type": "json",
diff --git a/resources/style.css b/resources/style.css
index 40d870a..5e2d13c 100644
--- a/resources/style.css
+++ b/resources/style.css
@@ -82,6 +82,8 @@ button:hover {
 #network,
 #pulseaudio,
 #custom-media,
+#custom-clock,
+#bluetooth,
 #tray,
 #mode,
 #idle_inhibitor,
@@ -106,6 +108,7 @@ button:hover {
     margin-right: 0;
 }
 
+#custom-clock,
 #clock {
     background-color: #64727D;
 }
@@ -176,6 +179,14 @@ label:focus {
     color: #2a5c45;
 }
 
+#bluetooth {
+    background-color: #022edd;
+}
+
+#custom-xkb-layout {
+    background-color: #ba5137;
+}
+
 #custom-media {
     background-color: #66cc99;
     color: #2a5c45;
@@ -237,9 +248,11 @@ label:focus {
     background-color: #51a37a;
 }
 
+#custom-xkb-layout,
 #language {
-    background: #00b093;
-    color: #740864;
+    /* background: #00b093; */
+    background-color: #ba5137;
+    color: #fff;
     padding: 0 5px;
     margin: 0 5px;
     min-width: 16px;
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin