From e26c068d846cf4af31b0fc6a2623fee5586ba77d Mon Sep 17 00:00:00 2001 From: Hatmos Date: Fri, 20 Mar 2026 01:21:47 +0100 Subject: [PATCH] ajout d'interstices et bords arrondis a la barre --- sway/config | 3 +++ waybar/config | 19 +++++++++++++++++-- waybar/style.css | 7 +++++-- 3 files changed, 25 insertions(+), 4 deletions(-) diff --git a/sway/config b/sway/config index 8e67325..47be135 100644 --- a/sway/config +++ b/sway/config @@ -30,6 +30,7 @@ output * bg /home/thomas/Pictures/tux-mogging-win11.jpg stretch # # Example configuration: # +output eDP-1 scale 2 output eDP-1 resolution 2256x1504 position 0,0 # # You can get the names of your outputs by running: swaymsg -t get_outputs @@ -226,3 +227,5 @@ bindsym $mod+r mode "resize" include /etc/sway/config.d/* +gaps inner 5 +gaps outer 10 diff --git a/waybar/config b/waybar/config index 8d295da..9e47814 100644 --- a/waybar/config +++ b/waybar/config @@ -2,9 +2,24 @@ "layer": "top", "position": "top", "modules-left": ["sway/workspaces"], - "modules-center": ["clock"], - "modules-right" : ["pulseaudio", "battery"], + "modules-center" : ["cpu", "memory", "disk", "pulseaudio", "battery", "network"], + "modules-right": ["clock"], + "cpu": { + "format": "[CPU : {avg_frequency}%]" + }, + "memory": { + "format": "[RAM : {percentage}%]" + }, + "disk": { + "format": "[Disk : {percentage_used}%]" + }, + "pulseaudio":{ + "format": "[Vol : {volume}%]" + }, "battery": { "format": "[BAT : {capacity}%]" + }, + "network": { + "format": "[Net : {bandwidthTotalBytes}]" } } diff --git a/waybar/style.css b/waybar/style.css index c4e7047..b536f5d 100644 --- a/waybar/style.css +++ b/waybar/style.css @@ -1,9 +1,12 @@ * { + margin-left: 5px; + margin-right: 5px; font-family: sans-serif; font-size: 14px; } window#waybar{ + border-radius: 20px 20px 20px 20px; background: grey; color: white; } @@ -12,6 +15,6 @@ window#waybar{ color: white; } -#workspaces button{ - color: block; +#workspaces button:hover{ + color: black; }