From ef8c6aac09619469500c752a1caacfcae1ec4b00 Mon Sep 17 00:00:00 2001 From: Hatmos Date: Fri, 20 Mar 2026 22:57:23 +0100 Subject: [PATCH] amelioration de la barre d'informations --- waybar/config | 6 +++++- waybar/style.css | 43 ++++++++++++++++++++++++++++++++++++------- 2 files changed, 41 insertions(+), 8 deletions(-) diff --git a/waybar/config b/waybar/config index 9e47814..a9cca94 100644 --- a/waybar/config +++ b/waybar/config @@ -1,9 +1,13 @@ { "layer": "top", "position": "top", - "modules-left": ["sway/workspaces"], + "modules-left": ["image", "sway/workspaces"], "modules-center" : ["cpu", "memory", "disk", "pulseaudio", "battery", "network"], "modules-right": ["clock"], + "image":{ + "path": "/home/thomas/Pictures/alpidebian.png", + "size": 20, + }, "cpu": { "format": "[CPU : {avg_frequency}%]" }, diff --git a/waybar/style.css b/waybar/style.css index b536f5d..a16413b 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -1,20 +1,49 @@ * { - margin-left: 5px; - margin-right: 5px; + margin: 0px; + margin-left: 0px; + margin-right: 0px; font-family: sans-serif; font-size: 14px; } window#waybar{ border-radius: 20px 20px 20px 20px; - background: grey; + background: CornflowerBlue; color: white; } #workspaces button{ - color: white; -} - -#workspaces button:hover{ + border-radius: 20px 20px 20px 20px; + padding-left: 8px; + padding-right: 8px; + background-color: white; + color: black; +} + +#clock { + margin-right: 10px; + border-radius: 20px 20px 20px 20px; + padding-left: 10px; + padding-right: 10px; + background-color: white; + color: black; +} + +#image { + margin-left: 0px; + margin-right: 0px; + border-style: solid; + border-width: 1px; + border-color: white; + border-radius: 20px 20px 20px 20px; + padding-left: 8px; + padding-right: 8px; +} + +.modules-center{ + border-radius: 20px 20px 20px 20px; + padding-left: 10px; + padding-right: 10px; + background-color: white; color: black; }