waybar
This commit is contained in:
parent
c24afa4453
commit
75143c507d
4 changed files with 192 additions and 12 deletions
69
waybar/config
Normal file
69
waybar/config
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"position": "bottom",
|
||||
"height": 24,
|
||||
|
||||
"modules-left": [
|
||||
"sway/workspaces",
|
||||
"sway/mode",
|
||||
"sway/window",
|
||||
],
|
||||
"modules-center": [],
|
||||
"modules-right": [
|
||||
"idle_inhibitor",
|
||||
"network",
|
||||
"pulseaudio",
|
||||
"battery",
|
||||
"clock",
|
||||
],
|
||||
|
||||
"idle_inhibitor": {
|
||||
"format": "{icon}",
|
||||
"format-icons": {
|
||||
"activated": "",
|
||||
"deactivated": ""
|
||||
},
|
||||
"tooltip": false,
|
||||
},
|
||||
"clock": {
|
||||
"interval": 1,
|
||||
"format": "{:%Y-%m-%d %H:%M:%S}",
|
||||
"tooltip-format": "<big>{:%B %Y (W%U)}</big>\n<tt>{calendar}</tt>",
|
||||
},
|
||||
"battery": {
|
||||
"states": {
|
||||
"warning": 30,
|
||||
"critical": 15
|
||||
},
|
||||
"format": "{capacity}% {icon}",
|
||||
"format-charging": "{capacity}% ",
|
||||
"format-plugged": "{capacity}% ",
|
||||
"format-alt": "{time} {icon}",
|
||||
"format-icons": ["", "", "", "", ""]
|
||||
},
|
||||
"network": {
|
||||
"format-wifi": "{essid} ",
|
||||
"format-ethernet": "{ifname} ",
|
||||
"format-linked": "{ifname} ",
|
||||
"format-disconnected": "Disconnected ⚠",
|
||||
"format-alt": "{ifname}",
|
||||
"tooltip-format": "{ipaddr}/{cidr}"
|
||||
},
|
||||
"pulseaudio": {
|
||||
"scroll-step": 0,
|
||||
"format": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth": "{volume}% {icon} {format_source}",
|
||||
"format-bluetooth-muted": " {icon} {format_source}",
|
||||
"format-muted": "{volume}- {format_source}",
|
||||
"format-source": "{volume}% ",
|
||||
"format-source-muted": "{volume}- ",
|
||||
"format-icons": {
|
||||
"headphone": "",
|
||||
"hands-free": "",
|
||||
"headset": "",
|
||||
"phone": "",
|
||||
"portable": "",
|
||||
"car": "",
|
||||
"default": ["", "", ""]
|
||||
},
|
||||
},
|
||||
}
|
||||
121
waybar/style.css
Normal file
121
waybar/style.css
Normal file
|
|
@ -0,0 +1,121 @@
|
|||
* {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: Roboto, Helvetica, Arial, sans-serif;
|
||||
font-size: 12px;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
background-color: #222222;
|
||||
color: #dfdfdf;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 1px;
|
||||
color: #ffffff;
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -1px transparent;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
box-shadow: inherit;
|
||||
text-shadow: inherit;
|
||||
}
|
||||
|
||||
#workspaces button.focused {
|
||||
background-color: #444444;
|
||||
color: #ffffff;
|
||||
box-shadow: inset 0 -1px #ffb52a;
|
||||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: #bd2c40;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #444444;
|
||||
color: #ffb52a;
|
||||
}
|
||||
|
||||
#clock,
|
||||
#battery,
|
||||
#network,
|
||||
#pulseaudio,
|
||||
#mode,
|
||||
#idle_inhibitor,
|
||||
#mpd {
|
||||
padding: 0;
|
||||
margin: 0 4px;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#window,
|
||||
#workspaces {
|
||||
margin: 0 4px;
|
||||
}
|
||||
|
||||
/* If workspaces is the leftmost module, omit left margin */
|
||||
.modules-left > widget:first-child > #workspaces {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/* If workspaces is the rightmost module, omit right margin */
|
||||
.modules-right > widget:last-child > #workspaces {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
#clock {
|
||||
box-shadow: inset 0 -1px #0a6cf5;
|
||||
}
|
||||
|
||||
#battery {
|
||||
box-shadow: inset 0 -1px #ffb52a;
|
||||
}
|
||||
|
||||
#battery.charging, #battery.plugged {
|
||||
box-shadow: inset 0 -1px #2affb5;
|
||||
}
|
||||
|
||||
#battery.warning {
|
||||
box-shadow: inset 0 -1px #f56c0a;
|
||||
}
|
||||
|
||||
#battery.critical {
|
||||
box-shadow: inset 0 -1px #f50a0a;
|
||||
}
|
||||
|
||||
@keyframes blink {
|
||||
to {
|
||||
background-color: #f50a0a;
|
||||
}
|
||||
}
|
||||
|
||||
#battery.critical:not(.plugged) {
|
||||
animation-name: blink;
|
||||
animation-duration: 1s;
|
||||
animation-timing-function: ease-in-out;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#network {
|
||||
box-shadow: inset 0 -1px #9f78e1;
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
box-shadow: inset 0 -1px #e83c3a;
|
||||
}
|
||||
|
||||
#pulseaudio.muted {
|
||||
box-shadow: inset 0 -1px transparent;
|
||||
}
|
||||
|
||||
#idle_inhibitor.activated {
|
||||
box-shadow: inset 0 -1px #ffffff;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue