Commit 9afc2cba authored by Franciszek Madej's avatar Franciszek Madej 🤞

add waybar

parent fac1d9bd
{
"layer": "top", // Waybar at top layer
// "position": "bottom", // Waybar at the bottom of your screen
"height": 20, // Waybar height
// "width": 1280, // Waybar width
// Choose the order of the modules
"modules-left": ["sway/workspaces", "sway/mode"],
// "modules-center": ["sway/window"],
"modules-right": ["pulseaudio", "network", "cpu", "memory", "battery", "clock", "tray"],
// Modules configuration
// "sway/workspaces": {
// "disable-scroll": true,
// "all-outputs": true,
// "format": "{name}: {icon}",
// "format-icons": {
// "1": "",
// "2": "",
// "3": "",
// "4": "",
// "5": "",
// "urgent": "",
// "focused": "",
// "default": ""
// }
// },
"sway/mode": {
"format": "<span style=\"italic\">{}</span>"
},
"tray": {
// "icon-size": 21,
"spacing": 10
},
"clock": {
"format-alt": "{:%Y-%m-%d}"
},
"cpu": {
"format": "{usage}% "
},
"memory": {
"format": "{}% "
},
"battery": {
"states": {
// "good": 95,
"warning": 30,
"critical": 15
},
"format": "{capacity}% {icon}",
// "format-good": "", // An empty format will hide the module
// "format-full": "",
"format-icons": ["", "", "", "", ""]
},
"battery#bat2": {
"bat": "BAT2"
},
"network": {
// "interface": "wlp2s0", // (Optional) To force the use of this interface
"format-wifi": "{essid} ({signalStrength}%) ",
"format-ethernet": "{ifname}: {ipaddr}/{cidr} ",
"format-disconnected": "Disconnected ⚠"
},
"pulseaudio": {
//"scroll-step": 1,
"format": "{volume}% {icon}",
"format-bluetooth": "{volume}% {icon}",
"format-muted": "",
"format-icons": {
"headphones": "",
"handsfree": "",
"headset": "",
"phone": "",
"portable": "",
"car": "",
"default": ["", ""]
},
"on-click": "pavucontrol"
},
"custom/spotify": {
"format": " {}",
"max-length": 40,
"exec": "$HOME/.config/waybar/mediaplayer.py 2> /dev/null" // Script in resources folder
}
}
* {
border: none;
border-radius: 0;
font-family: Aileron, Roboto, Helvetica, Arial, sans-serif;
font-size: 10px;
min-height: 0;
}
window#waybar {
background: transparent;
color: #C0C5CE;
}
window > box {
padding: 16px;
margin-bottom: 16px;
}
#workspaces button {
padding: 0 2px;
background: transparent;
color: white;
}
#workspaces button.focused {
background: #EBCB8B;
color: #2B303B;
}
#mode {
background: #64727D;
}
#clock, #battery, #cpu, #memory, #network, #pulseaudio, #custom-spotify, #tray, #mode {
padding: 0 5px;
margin: 0 5px;
color: #2B303B;
}
#clock {
background-color: #65737E;
color: #C0C5CE;
margin-right: 0;
}
#battery {
background-color: #C0C5CE;
}
#battery.charging {
background-color: #96B5B4;
}
@keyframes blink {
to {
background-color: #ffffff;
color: black;
}
}
#battery.critical:not(.charging) {
background: #f53c3c;
color: white;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#cpu {
background: #2ecc71;
}
#memory {
background: #EBCB8B;
}
#network {
background: #8FA1B3;
}
#network.disconnected {
background: #BF616A;
}
#pulseaudio {
background: #A3BE8C;
}
#pulseaudio.muted {
background: #90b1b1;
color: #2a5c45;
}
#custom-spotify {
background: #66cc99;
color: #2a5c45;
}
#tray {
background-color: #2980b9;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment