SWAY: Réduction de l'espace utilisé par les modules
This commit is contained in:
parent
ad45e8d767
commit
d4233d6440
@ -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": {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user