Mixed up files
This commit is contained in:
283
waybar/style.css
283
waybar/style.css
@@ -1,173 +1,158 @@
|
|||||||
@keyframes blink-warning {
|
|
||||||
70% {
|
|
||||||
color: @light;
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
color: @light;
|
|
||||||
background-color: @warning;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes blink-critical {
|
|
||||||
70% {
|
|
||||||
color: @light;
|
|
||||||
}
|
|
||||||
|
|
||||||
to {
|
|
||||||
color: @light;
|
|
||||||
background-color: @critical;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* -----------------------------------------------------------------------------
|
|
||||||
* Styles
|
|
||||||
* -------------------------------------------------------------------------- */
|
|
||||||
|
|
||||||
/* COLORS */
|
|
||||||
|
|
||||||
/* Nord */
|
|
||||||
@define-color bg #000000;
|
|
||||||
@define-color light #eceff4;
|
|
||||||
@define-color warning #ffb726;
|
|
||||||
@define-color critical #ff3d00;
|
|
||||||
@define-color mode #4c566a;
|
|
||||||
@define-color workspaces @bg;
|
|
||||||
@define-color workspacesfocused #5c5c5c;
|
|
||||||
@define-color tray @bg;
|
|
||||||
|
|
||||||
/* Reset all styles */
|
|
||||||
* {
|
* {
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
min-height: 0;
|
font-family: "JetbrainsMono Nerd Font";
|
||||||
margin: 0;
|
font-size: 14px;
|
||||||
padding: 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The whole bar */
|
window#waybar {
|
||||||
#waybar {
|
background: none;
|
||||||
background: @bg;
|
|
||||||
color: @light;
|
|
||||||
font-family: Noto Sans;
|
|
||||||
font-size: 11px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Each module */
|
window#waybar.hidden {
|
||||||
#battery,
|
opacity: 0.2;
|
||||||
#clock,
|
|
||||||
#cpu,
|
|
||||||
#custom-layout,
|
|
||||||
#memory,
|
|
||||||
#network,
|
|
||||||
#pulseaudio,
|
|
||||||
#temperature,
|
|
||||||
#custom-alsa,
|
|
||||||
#tray,
|
|
||||||
#backlight {
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
border-right: 1px solid @light;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Each module that should blink */
|
|
||||||
#memory,
|
|
||||||
#temperature,
|
|
||||||
#battery {
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Each critical module */
|
|
||||||
#memory.critical,
|
|
||||||
#cpu.critical,
|
|
||||||
#temperature.critical,
|
|
||||||
#battery.critical {
|
|
||||||
color: @critical;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Each critical that should blink */
|
|
||||||
#mode,
|
|
||||||
#memory.critical,
|
|
||||||
#temperature.critical,
|
|
||||||
#battery.critical.discharging {
|
|
||||||
animation-name: blink-critical;
|
|
||||||
animation-duration: 2s;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Each warning */
|
|
||||||
#network.disconnected,
|
|
||||||
#memory.warning,
|
|
||||||
#cpu.warning,
|
|
||||||
#temperature.warning,
|
|
||||||
#battery.warning {
|
|
||||||
color: @warning;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Each warning that should blink */
|
|
||||||
#battery.warning.discharging {
|
|
||||||
animation-name: blink-warning;
|
|
||||||
animation-duration: 3s;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Workspaces stuff */
|
|
||||||
|
|
||||||
#workspaces {
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#workspaces button {
|
|
||||||
font-weight: bold; /* Somewhy the bar-wide setting is ignored*/
|
|
||||||
padding-left: 5px;
|
|
||||||
padding-right: 5px;
|
|
||||||
color: @light;
|
|
||||||
background: @bg;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.focused {
|
|
||||||
background: @workspacesfocused;
|
|
||||||
}
|
|
||||||
|
|
||||||
#workspaces button.urgent {
|
|
||||||
border-color: #c9545d;
|
|
||||||
color: #c9545d;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#window {
|
#window {
|
||||||
margin-right: 40px;
|
margin-top: 6px;
|
||||||
margin-left: 40px;
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
background: #2e3440;
|
||||||
|
color: #d8dee9;
|
||||||
}
|
}
|
||||||
|
|
||||||
#network {
|
#custom-powermenu {
|
||||||
background: @bg;
|
margin-top: 6px;
|
||||||
|
margin-left: 12px;
|
||||||
|
margin-right: 12px;
|
||||||
|
padding-left: 15px;
|
||||||
|
padding-right: 20px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
background: #2e3440;
|
||||||
}
|
}
|
||||||
|
|
||||||
#memory {
|
#tags {
|
||||||
background: @bg;
|
margin-top: 6px;
|
||||||
|
margin-right: 12px;
|
||||||
|
font-size: 4px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
background: #2e3440;
|
||||||
}
|
}
|
||||||
|
|
||||||
#cpu {
|
#tags button {
|
||||||
background: @bg;
|
transition: none;
|
||||||
|
color: #4c566a;
|
||||||
|
background: transparent;
|
||||||
|
border-radius: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tags button.occupied {
|
||||||
|
transition: none;
|
||||||
|
color: #a3be8c;
|
||||||
|
background: transparent;
|
||||||
|
font-size: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tags button.focused {
|
||||||
|
color: #81a1c1;
|
||||||
|
border-bottom: 2px solid #81a1c1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tags button:hover {
|
||||||
|
transition: none;
|
||||||
|
box-shadow: inherit;
|
||||||
|
text-shadow: inherit;
|
||||||
|
color: #81a1c1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#temperature {
|
||||||
|
margin-top: 6px;
|
||||||
|
margin-right: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
padding: 0 10px;
|
||||||
|
color: #a3be8c;
|
||||||
|
background: #2e3440;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pulseaudio {
|
||||||
|
margin-top: 6px;
|
||||||
|
margin-left: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
padding: 0 10px;
|
||||||
|
color: #a3be8c;
|
||||||
|
background: #2e3440;
|
||||||
}
|
}
|
||||||
|
|
||||||
#battery {
|
#battery {
|
||||||
background: @bg;
|
margin-top: 6px;
|
||||||
|
margin-left: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
padding: 10px 10px;
|
||||||
|
color: #a3be8c;
|
||||||
|
background: #2e3440;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#battery.critical:not(.charging) {
|
||||||
#clock.date {
|
background-color: #d8dee9;
|
||||||
background: @bg;
|
color: #2e3440;
|
||||||
|
animation-name: blink;
|
||||||
|
animation-duration: 0.5s;
|
||||||
|
animation-timing-function: linear;
|
||||||
|
animation-iteration-count: infinite;
|
||||||
|
animation-direction: alternate;
|
||||||
}
|
}
|
||||||
|
|
||||||
#clock.time {
|
@keyframes blink {
|
||||||
background: @bg;
|
to {
|
||||||
|
background-color: #bf616a;
|
||||||
|
color: #d8dee9;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#backlight {
|
||||||
|
margin-top: 6px;
|
||||||
|
margin-left: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
padding: 10px 10px;
|
||||||
|
color: #88c0d0;
|
||||||
|
background: #2e3440;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-cpu {
|
||||||
|
margin-top: 6px;
|
||||||
|
margin-left: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
padding: 10px 10px;
|
||||||
|
color: #88c0d0;
|
||||||
|
background: #2e3440;
|
||||||
|
}
|
||||||
|
|
||||||
|
#custom-clock {
|
||||||
|
margin-top: 6px;
|
||||||
|
margin-left: 12px;
|
||||||
|
margin-right: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
transition: none;
|
||||||
|
padding: 10px 10px;
|
||||||
|
color: #a3be8c;
|
||||||
|
background: #2e3440;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
background: @bg;
|
margin-top: 6px;
|
||||||
}
|
margin-right: 12px;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding-left: 10px;
|
||||||
|
padding-right: 10px;
|
||||||
|
color: #d8dee9;
|
||||||
|
background: #2e3440;
|
||||||
|
}
|
||||||
@@ -1,158 +1,83 @@
|
|||||||
* {
|
{
|
||||||
border: none;
|
"layer": "top",
|
||||||
border-radius: 0;
|
"modules-left": ["custom/powermenu", "river/tags", "temperature"],
|
||||||
font-family: "JetbrainsMono Nerd Font";
|
"modules-center": ["river/window"],
|
||||||
font-size: 14px;
|
"modules-right": ["battery","backlight", "pulseaudio", "custom/mic","custom/cpu","custom/clock", "tray"],
|
||||||
}
|
"pulseaudio": {
|
||||||
|
"tooltip": false,
|
||||||
|
"scroll-step": 5,
|
||||||
|
"format": "{icon} {volume}%",
|
||||||
|
"format-muted": "婢 0%",
|
||||||
|
"on-click":"amixer -D pulse Master 1+ toggle",
|
||||||
|
"scroll-step": 5,
|
||||||
|
"format-icons": {
|
||||||
|
"default": ["", "", ""]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"custom/powermenu": {
|
||||||
|
"format": "",
|
||||||
|
"interval": "once",
|
||||||
|
/*"exec": "checkupdates | wc -l",*/
|
||||||
|
"on-click": "~/.config/waybar/modules/powermenu.sh",
|
||||||
|
"tooltip": false,
|
||||||
|
"signal": 8
|
||||||
|
},
|
||||||
|
|
||||||
window#waybar {
|
"river/tags": {
|
||||||
background: none;
|
"tag-labels":[
|
||||||
}
|
"",
|
||||||
|
"",
|
||||||
window#waybar.hidden {
|
"ﭮ",
|
||||||
opacity: 0.2;
|
"",
|
||||||
}
|
"",
|
||||||
|
"",
|
||||||
#window {
|
""
|
||||||
margin-top: 6px;
|
],
|
||||||
padding-left: 10px;
|
"disable-click": false,
|
||||||
padding-right: 10px;
|
"num-tags": 7
|
||||||
border-radius: 5px;
|
},
|
||||||
transition: none;
|
"temperature": {
|
||||||
background: #2e3440;
|
"hwmon-path": "/sys/class/hwmon/hwmon2/temp1_input",
|
||||||
color: #d8dee9;
|
"format": "{temperatureC}°C "
|
||||||
}
|
},
|
||||||
|
"river/window": {
|
||||||
#custom-powermenu {
|
"format": "{}",
|
||||||
margin-top: 6px;
|
"max-length": 90
|
||||||
margin-left: 12px;
|
},
|
||||||
margin-right: 12px;
|
"backlight": {
|
||||||
padding-left: 15px;
|
"device": "amdgpu_b10",
|
||||||
padding-right: 20px;
|
"format": "{icon} {}%",
|
||||||
border-radius: 5px;
|
"format-icons": ["", ""],
|
||||||
transition: none;
|
"interval": 1
|
||||||
background: #2e3440;
|
},
|
||||||
}
|
"battery": {
|
||||||
|
"states": {
|
||||||
#tags {
|
"good": 100,
|
||||||
margin-top: 6px;
|
"warning": 30,
|
||||||
margin-right: 12px;
|
"critical": 20
|
||||||
font-size: 4px;
|
},
|
||||||
border-radius: 5px;
|
"format": "{icon} {capacity}%",
|
||||||
transition: none;
|
"format-charging": "{icon} {capacity}%",
|
||||||
background: #2e3440;
|
"format-plugged": "{icon} {capacity}%",
|
||||||
}
|
"format-alt": "{time} {icon}",
|
||||||
|
"format-icons": ["", "", "", "", ""]
|
||||||
#tags button {
|
},
|
||||||
transition: none;
|
"tray":{
|
||||||
color: #4c566a;
|
"icon-size":18,
|
||||||
background: transparent;
|
"show-passive-items":true,
|
||||||
border-radius: 0px;
|
"spacing": 10,
|
||||||
}
|
"reverse-direction": true
|
||||||
|
},
|
||||||
#tags button.occupied {
|
"custom/clock": {
|
||||||
transition: none;
|
"interval": 1,
|
||||||
color: #a3be8c;
|
"return-type": "string",
|
||||||
background: transparent;
|
"exec": "~/.config/waybar/modules/datetime.sh",
|
||||||
font-size: 4px;
|
"tooltip": false
|
||||||
}
|
},
|
||||||
|
"custom/cpu": {
|
||||||
#tags button.focused {
|
"interval": 1,
|
||||||
color: #81a1c1;
|
"return-type": "string",
|
||||||
border-bottom: 2px solid #81a1c1;
|
"exec": "~/.config/waybar/modules/cpu.sh",
|
||||||
}
|
"tooltip": false
|
||||||
|
},
|
||||||
#tags button:hover {
|
|
||||||
transition: none;
|
|
||||||
box-shadow: inherit;
|
|
||||||
text-shadow: inherit;
|
|
||||||
color: #81a1c1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#temperature {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-right: 12px;
|
|
||||||
border-radius: 5px;
|
|
||||||
transition: none;
|
|
||||||
padding: 0 10px;
|
|
||||||
color: #a3be8c;
|
|
||||||
background: #2e3440;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pulseaudio {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 12px;
|
|
||||||
border-radius: 5px;
|
|
||||||
transition: none;
|
|
||||||
padding: 0 10px;
|
|
||||||
color: #a3be8c;
|
|
||||||
background: #2e3440;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 12px;
|
|
||||||
border-radius: 5px;
|
|
||||||
transition: none;
|
|
||||||
padding: 10px 10px;
|
|
||||||
color: #a3be8c;
|
|
||||||
background: #2e3440;
|
|
||||||
}
|
|
||||||
|
|
||||||
#battery.critical:not(.charging) {
|
|
||||||
background-color: #d8dee9;
|
|
||||||
color: #2e3440;
|
|
||||||
animation-name: blink;
|
|
||||||
animation-duration: 0.5s;
|
|
||||||
animation-timing-function: linear;
|
|
||||||
animation-iteration-count: infinite;
|
|
||||||
animation-direction: alternate;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes blink {
|
|
||||||
to {
|
|
||||||
background-color: #bf616a;
|
|
||||||
color: #d8dee9;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#backlight {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 12px;
|
|
||||||
border-radius: 5px;
|
|
||||||
transition: none;
|
|
||||||
padding: 10px 10px;
|
|
||||||
color: #88c0d0;
|
|
||||||
background: #2e3440;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-cpu {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 12px;
|
|
||||||
border-radius: 5px;
|
|
||||||
transition: none;
|
|
||||||
padding: 10px 10px;
|
|
||||||
color: #88c0d0;
|
|
||||||
background: #2e3440;
|
|
||||||
}
|
|
||||||
|
|
||||||
#custom-clock {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-left: 12px;
|
|
||||||
margin-right: 12px;
|
|
||||||
border-radius: 5px;
|
|
||||||
transition: none;
|
|
||||||
padding: 10px 10px;
|
|
||||||
color: #a3be8c;
|
|
||||||
background: #2e3440;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
|
||||||
margin-top: 6px;
|
|
||||||
margin-right: 12px;
|
|
||||||
border-radius: 5px;
|
|
||||||
padding-left: 10px;
|
|
||||||
padding-right: 10px;
|
|
||||||
color: #d8dee9;
|
|
||||||
background: #2e3440;
|
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user