Skip to content

Instantly share code, notes, and snippets.

@atsuya
Created May 3, 2019 14:02
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atsuya/e58ef632b31063b82c1c7510ed46d7bb to your computer and use it in GitHub Desktop.
Save atsuya/e58ef632b31063b82c1c7510ed46d7bb to your computer and use it in GitHub Desktop.
My Waybar config
{
"layer": "top", // Waybar at top layer
"modules-left": ["sway/workspaces"],
"modules-right": ["tray", "cpu", "memory", "backlight", "network", "pulseaudio", "battery", "clock"],
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"tooltip-format": "{:%Y-%m-%d | %H:%M}",
"format-alt": "{:%Y-%m-%d}",
"format": "{:%a %Y-%m-%d %l:%M %p}"
},
"cpu": {
"format": " {usage}%"
},
"memory": {
"format": " {}%"
},
"backlight": {
//"device": "intel_backlight",
"format": " {percent}%",
"format-icons": ["", ""]
},
"battery": {
//"states": {
// // "good": 95,
// "warning": 30,
// "critical": 15
//},
"format": " {capacity}%"
// "format-good": "", // An empty format will hide the module
// "format-full": "",
//"format-icons": ["", "", "", "", ""]
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format-wifi": " {signalStrength}%",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ethernet",
"format-disconnected": "⚠"
},
"pulseaudio": {
//"scroll-step": 1,
"format": " {volume}%",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pavucontrol"
}
}
* {
border: none;
border-radius: 0;
/*font-family: "Hack", "Noto Color Emoji", sans-serif;*/
font-size: 18px;
/*font-weight: bold;*/
min-height: 0;
}
window#waybar {
background: #000000;
/*border-bottom: 3px solid rgba(100, 114, 125, 0.5);*/
color: #e5e9f0;
}
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
#workspaces button {
padding: 0 5px;
background: transparent;
color: #ffffff;
border-bottom: 3px solid transparent;
}
#workspaces button.focused {
background: #4c566a;
border-bottom: 3px solid #e5e9f0;
}
#workspaces button.urgent {
background-color: #bf616a;
}
#mode {
background: #64727D;
border-bottom: 3px solid #ffffff;
}
#clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor {
padding: 0 10px;
margin: 0 5px;
}
#clock {
/*background-color: #64727D;*/
color: #e5e9f0;
font-weight: bold;
}
#battery {
/*background-color: #000000;*/
color: #e5e9f0;
}
#battery.charging {
/*background-color: #000000;*/
color: #e5e9f0;
}
@keyframes blink {
to {
/*background-color: #ffffff;*/
color: #000000;
}
}
#battery.critical:not(.charging) {
background: #f53c3c;
color: #ffffff;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#cpu {
/*background: #2ecc71;*/
color: #e5e9f0;
}
#memory {
/*background: #9b59b6;*/
color: #e5e9f0;
}
#backlight {
/*background: #90b1b1;*/
color: #e5e9f0;
}
#network {
/*background: #2980b9;*/
color: #e5e9f0;
}
#network.disconnected {
/*background: #f53c3c;*/
color: #e5e9f0;
}
#pulseaudio {
/*background: #000000;*/
color: #e5e9f0;
}
#pulseaudio.muted {
/*background: #000000;*/
color: #e5e9f0;
}
#custom-media {
background: #66cc99;
color: #2a5c45;
}
.custom-spotify {
background: #66cc99;
}
.custom-vlc {
background: #ffa000;
}
#temperature {
background: #f0932b;
}
#temperature.critical {
background: #eb4d4b;
}
#tray {
/*background-color: #2980b9;*/
color: #e5e9f0;
}
#idle_inhibitor {
background-color: #2d3436;
}
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment