Browse Source

updated waybar

master
Josh Fabean 4 years ago
parent
commit
5c4ca2acb0
2 changed files with 80 additions and 53 deletions
  1. +56
    -7
      .config/waybar/config
  2. +24
    -46
      .config/waybar/style.css

+ 56
- 7
.config/waybar/config View File

@ -4,9 +4,29 @@
"height": 30, // Waybar height (to be removed for auto height)
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode", "custom/media"],
"modules-center": ["sway/window"],
"modules-right": ["idle_inhibitor", "pulseaudio", "network", "cpu", "memory", "temperature", "backlight", "battery", "battery#bat2", "clock", "tray"],
"modules-left": [
"sway/workspaces",
"sway/mode",
"custom/media"
],
"modules-center": [
"sway/window"
],
"modules-right": [
"custom/watson",
"custom/calc",
"idle_inhibitor",
"pulseaudio",
"network",
"cpu",
"memory",
"temperature",
"backlight",
"battery",
"battery#bat2",
"clock",
"tray"
],
// Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
@ -81,12 +101,19 @@
"critical-threshold": 80,
// "format-critical": "{temperatureC}°C {icon}",
"format": "{temperatureC}°C {icon}",
"format-icons": ["", "", ""]
"format-icons": [
"",
"",
""
]
},
"backlight": {
// "device": "acpi_video1",
"format": "{percent}% {icon}",
"format-icons": ["", ""]
"format-icons": [
"",
""
]
},
"battery": {
"states": {
@ -100,7 +127,13 @@
"format-alt": "{time} {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
"format-icons": [
"",
"",
"",
"",
""
]
},
"battery#bat2": {
"bat": "BAT2"
@ -128,7 +161,11 @@
"phone": "",
"portable": "",
"car": "",
"default": ["", "", ""]
"default": [
"",
"",
""
]
},
"on-click": "pavucontrol"
},
@ -143,5 +180,17 @@
"escape": true,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
// "exec": "$HOME/.config/waybar/mediaplayer.py --player spotify 2> /dev/null" // Filter player based on name
},
"custom/watson": {
"format": "{} ",
//"max-length": 15,
"interval": 10,
"exec": "watson-status",
"on-click": "watson stop"
},
"custom/calc": {
"format": "",
"interval": 1000,
"on-click": "qalculate-gtk"
}
}

+ 24
- 46
.config/waybar/style.css View File

@ -2,15 +2,15 @@
border: none;
border-radius: 0;
/* `otf-font-awesome` is required to be installed for icons */
font-family: Roboto, Helvetica, Arial, sans-serif;
font-size: 13px;
font-family: JetBrains Mono, mono, sans-serif;
font-size: 12px;
min-height: 0;
}
window#waybar {
background-color: transparent;
border-bottom: 3px solid rgba(100, 114, 125, 0.2);
color: #ffffff;
background-color: #1d2021;
/*border-bottom: 3px solid rgba(100, 114, 125, 0.2);*/
color: #fbf1c7;
transition-property: background-color;
transition-duration: .5s;
}
@ -38,22 +38,21 @@ window#waybar.chromium {
}
#workspaces button {
padding: 0 5px;
background-color: transparent;
color: #ffffff;
border-bottom: 3px solid transparent;
padding: 0 2px;
background-color: #fbf1c7;
color: #1d2021;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button:hover {
background: rgba(0, 0, 0, 0.2);
background: #17917a;
box-shadow: inherit;
border-bottom: 3px solid rgba(255, 255, 255, 0.4);
color: #fbf1c7;
}
#workspaces button.focused {
background-color: rgba(212, 25, 25, 0.7);
border-bottom: 3px solid rgba(255, 255, 255, 0.2);
background-color: #17917a;
color: #fbf1c7;
}
#workspaces button.urgent {
@ -62,7 +61,6 @@ window#waybar.chromium {
#mode {
background-color: #64727D;
border-bottom: 3px solid #ffffff;
}
#clock,
@ -78,24 +76,15 @@ window#waybar.chromium {
#mode,
#idle_inhibitor,
#mpd {
padding: 0 10px;
padding: 0 4px;
margin: 0 4px;
color: #ffffff;
color: #fbf1c7;
}
#clock {
background-color: #64727D;
}
#battery {
background-color: #ffffff;
color: #000000;
}
#battery.charging {
color: #ffffff;
background-color: #26A65B;
}
@keyframes blink {
to {
@ -119,53 +108,38 @@ label:focus {
}
#cpu {
background-color: #2ecc71;
color: #000000;
}
#memory {
background-color: #9b59b6;
}
#backlight {
background-color: #90b1b1;
}
#network {
/*background-color: #2980b9;*/
background-color: rgba(41, 128, 185, 0.7);
}
#network.disconnected {
background-color: #f53c3c;
}
#pulseaudio {
background-color: #f1c40f;
color: #000000;
}
#pulseaudio.muted {
background-color: #90b1b1;
color: #2a5c45;
}
#custom-media {
background-color: #66cc99;
color: #2a5c45;
min-width: 100px;
}
#custom-media.custom-spotify {
background-color: #66cc99;
}
#custom-media.custom-vlc {
background-color: #ffa000;
}
#temperature {
background-color: #f0932b;
}
#temperature.critical {
@ -177,7 +151,6 @@ label:focus {
}
#idle_inhibitor {
background-color: #2d3436;
}
#idle_inhibitor.activated {
@ -186,18 +159,23 @@ label:focus {
}
#mpd {
background-color: #66cc99;
color: #2a5c45;
}
#mpd.disconnected {
background-color: #f53c3c;
}
#mpd.stopped {
background-color: #90b1b1;
}
#mpd.paused {
background-color: #51a37a;
}
#custom-watson {
padding: 0 10px;
margin: 0 4px;
}
#custom-calc {
padding: 0 10px;
margin: 0 4px;
}

Loading…
Cancel
Save