Add waybar configuration
This commit is contained in:
parent
5a73c6a726
commit
78ee784e68
2 changed files with 101 additions and 0 deletions
25
waybar/config
Normal file
25
waybar/config
Normal file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"layer": "bottom",
|
||||
"position": "top",
|
||||
"height": 24,
|
||||
"modules-left": ["sway/workspaces", "sway/mode"],
|
||||
"modules-center": ["cpu", "memory", "tray"],
|
||||
"modules-right": ["clock#time", "clock#date"],
|
||||
"sway/mode": {
|
||||
"format": "<span style=\"italic\">{}</span>"
|
||||
},
|
||||
"cpu": {
|
||||
"format": " {usage}%"
|
||||
},
|
||||
"memory": {
|
||||
"format": " {used:0.1f}G/{total:0.1f}G ({percentage}%)"
|
||||
},
|
||||
"clock#time": {
|
||||
"interval": 20,
|
||||
"format": "{: %H:%M}"
|
||||
},
|
||||
"clock#date": {
|
||||
"interval": 60,
|
||||
"format": "{: %d.%m.%Y}"
|
||||
}
|
||||
}
|
76
waybar/style.css
Normal file
76
waybar/style.css
Normal file
|
@ -0,0 +1,76 @@
|
|||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
font-family: 'Dejavu Sans', sans-serif;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: black;
|
||||
color: #ffffff;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
opacity: 0.2;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #64727D;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#cpu,
|
||||
#memory,
|
||||
#temperature,
|
||||
#backlight,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#custom-media,
|
||||
#tray,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#mpd {
|
||||
padding: 0 2px;;
|
||||
margin: 0 0 0 10px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#mode {
|
||||
padding: 0 5px;
|
||||
background-color: #64727D;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
Loading…
Reference in a new issue