Browse Source

lots of waybar changes

master
Josh Fabean 2 years ago
parent
commit
ad002e64c8
2 changed files with 97 additions and 34 deletions
  1. +46
    -28
      .config/waybar/config
  2. +51
    -6
      .config/waybar/style.css

+ 46
- 28
.config/waybar/config View File

@ -1,49 +1,44 @@
{
[{
"output": "DP-1",
"layer": "top", // Waybar at top layer "layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar position (top|bottom|left|right) // "position": "bottom", // Waybar position (top|bottom|left|right)
"height": 30, // Waybar height (to be removed for auto height) "height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width // "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": [ "modules-left": [
"sway/workspaces",
"idle_inhibitor",
"cpu",
"memory",
"disk",
"custom/temperature",
"sway/mode", "sway/mode",
"sway/window",
"custom/media" "custom/media"
], ],
"modules-center": [ "modules-center": [
"sway/window"
"sway/workspaces"
], ],
"modules-right": [ "modules-right": [
"tray",
"custom/watson", "custom/watson",
"custom/calc", "custom/calc",
"idle_inhibitor",
"pulseaudio", "pulseaudio",
// "network", // "network",
"cpu",
"memory",
"custom/temperature",
"backlight",
// "battery",
// "battery#bat2",
"clock", "clock",
"tray",
"custom/power" "custom/power"
], ],
// Modules configuration // Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}",
"format-icons": {
"urgent": "",
}
},
"disk": {
"interval": 30,
"format": "{percentage_used}% <span></span>",
},
"sway/mode": { "sway/mode": {
"format": "<span style=\"italic\">{}</span>" "format": "<span style=\"italic\">{}</span>"
}, },
@ -218,4 +213,27 @@
"escape": true, "escape": true,
"tooltip": false "tooltip": false
} }
}
},
{
"output": "HDMI-A-1",
"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
"modules-left": [
"sway/window",
],
"modules-center": [
"sway/workspaces"
],
"modules-right": [
],
"sway/workspaces": {
"disable-scroll": true,
"all-outputs": false,
"format": "{name}",
"format-icons": {
"urgent": "",
}
}
}]

+ 51
- 6
.config/waybar/style.css View File

@ -1,14 +1,19 @@
@define-color bg_primary #1d2021;
@define-color font_primary #fbf1c7;
@define-color bg_active #17917a;
* { * {
border: none; border: none;
border-radius: 0; border-radius: 0;
/* `otf-font-awesome` is required to be installed for icons */ /* `otf-font-awesome` is required to be installed for icons */
font-family: Vulf Mono Code, mono, sans-serif;
font-family: Vulf Mono Code, mono, "Font Awesome", sans-serif;
font-size: 12px; font-size: 12px;
min-height: 0; min-height: 0;
} }
window#waybar { window#waybar {
background-color: #1d2021;
/*background-color: #1d2021;*/
background-color: transparent;
/*border-bottom: 3px solid rgba(100, 114, 125, 0.2);*/ /*border-bottom: 3px solid rgba(100, 114, 125, 0.2);*/
color: #fbf1c7; color: #fbf1c7;
transition-property: background-color; transition-property: background-color;
@ -37,6 +42,44 @@ window#waybar.chromium {
border: none; border: none;
} }
.modules-center {
border-radius: 5px;
padding: 0px 10px;
background-color: @bg_primary;
}
.modules-left > * {
background-color: @bg_primary;
padding: 0px 10px;
}
.modules-left > widget:last-child {
background-color: @bg_active;
color: @bg_primary;
margin-left: 20px;
border-radius: 0px 5px 5px 0px;
padding: 0 5px;
margin: 0 5px;
}
.modules-left > widget:nth-last-child(2) {
/*border-radius: 0px 5px 5px 0px;*/
}
.modules-right > * {
background-color: @bg_primary;
padding: 0px 10px;
}
.modules-right > widget:first-child {
background-color: transparent;
}
.modules-right > widget:nth-child(2) {
border-radius: 5px 0px 0px 5px;
}
#workspaces { #workspaces {
/* background-color: #434c5e; /* background-color: #434c5e;
padding: 1 5 1 5; padding: 1 5 1 5;
@ -46,7 +89,7 @@ window#waybar.chromium {
} }
#workspaces button { #workspaces button {
padding: 0 2px;
padding: 0 5px;
/* background-color: #fbf1c7; */ /* background-color: #fbf1c7; */
color: #fbf1c7; color: #fbf1c7;
} }
@ -74,6 +117,7 @@ window#waybar.chromium {
#clock, #clock,
#battery, #battery,
#cpu, #cpu,
#disk,
#memory, #memory,
#temperature, #temperature,
#backlight, #backlight,
@ -86,9 +130,11 @@ window#waybar.chromium {
#custom-temperature, #custom-temperature,
#custom-watson, #custom-watson,
#custom-calc, #custom-calc,
#custom-power,
#window,
#mpd { #mpd {
padding: 0 4px;
margin: 0 4px;
padding: 0 5px;
margin: 0 5px;
color: #fbf1c7; color: #fbf1c7;
} }
@ -154,7 +200,6 @@ label:focus {
#custom-power { #custom-power {
padding-right: 15px; padding-right: 15px;
padding-left: 10px; padding-left: 10px;
padding-top: 3px;
} }
#temperature { #temperature {


Loading…
Cancel
Save