From d4233d6440293637f211caab338c7a8c2d37d769 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Sat, 26 Jun 2021 00:54:39 +0200 Subject: [PATCH] =?UTF-8?q?SWAY:=20R=C3=A9duction=20de=20l'espace=20utilis?= =?UTF-8?q?=C3=A9=20par=20les=20modules?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/waybar/config | 4 ++-- .config/waybar/style.css | 23 ++++++++++++++--------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/.config/waybar/config b/.config/waybar/config index ad34628..a0164e4 100644 --- a/.config/waybar/config +++ b/.config/waybar/config @@ -1,7 +1,7 @@ { "height": 27, // Waybar height (to be removed for auto height) - "modules-left": ["sway/workspaces", "sway/mode", "custom/media", "sway/window"], - //"modules-center": ["sway/window"], + "modules-left": ["sway/workspaces", "sway/mode", "custom/media"], + "modules-center": ["sway/window"], "modules-right": ["backlight", "pulseaudio", "memory", "cpu", "network", "battery", "temperature", "clock", "tray"], // Modules configuration "sway/workspaces": { diff --git a/.config/waybar/style.css b/.config/waybar/style.css index 8f0c800..1d035db 100644 --- a/.config/waybar/style.css +++ b/.config/waybar/style.css @@ -3,13 +3,13 @@ border-radius: 0; /* `otf-font-awesome` is required to be installed for icons */ font-family: DejaVu Sans Mono, Roboto, Helvetica, Arial, sans-serif; - font-size: 16px; + font-size: 15px; min-height: 0; } window#waybar { background-color: #222; - border-bottom: 3px solid rgba(100, 114, 125, 0.5); + /* border-bottom: 3px solid rgba(100, 114, 125, 0.5);*/ color: #dfdfdf; transition-property: background-color; transition-duration: .5s; @@ -39,8 +39,8 @@ window#waybar.chromium { #workspaces button { padding: 0 5px; - background-color: transparent; - color: #ffffff; + background-color: inherit; + color: #666; /* Use box-shadow instead of border so the text isn't offset */ box-shadow: inset 0 -3px transparent; } @@ -52,9 +52,9 @@ window#waybar.chromium { } #workspaces button.focused { - background-color: #ffb52a; - color: #000; - box-shadow: inset 0 -3px #ffffff; + background-color: #444; + color: #fff; + border-bottom: 3px solid #ffb52a; } #workspaces button.urgent { @@ -80,8 +80,8 @@ window#waybar.chromium { #mode, #idle_inhibitor, #mpd { - padding: 0 10px; - margin: 0 4px; + padding: 0 5px; + margin: 0 3px; color: #ffffff; } @@ -95,6 +95,11 @@ window#waybar.chromium { margin-left: 0; } +/* Décalage du centre de 30 caractères de large sur la gauche (caractère M) */ +.modules-center { + margin-left: -30em; +} + /* If workspaces is the rightmost module, omit right margin */ .modules-right > widget:last-child > #workspaces { margin-right: 0;