mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
feat: niri-waybar
This commit is contained in:
parent
ff096c02bd
commit
8db7f8a1e9
7 changed files with 670 additions and 104 deletions
|
|
@ -1,17 +1,18 @@
|
|||
@import "current.css";
|
||||
|
||||
* {
|
||||
font-family: 'Maple Mono NF SC', 'Noto Sans Mono', 'Font Awesome 6 Free', 'Font Awesome 6 Brands', monospace;
|
||||
font-size: 13px;
|
||||
/* `otf-font-awesome` is required to be installed for icons */
|
||||
font-family: Cantarell, 'Font Awesome 6 Free';
|
||||
font-size: 14px;
|
||||
font-feature-settings: "tnum";
|
||||
}
|
||||
|
||||
window#waybar {
|
||||
/* background-color: rgba(43, 48, 59, 0.5); */
|
||||
/* border-bottom: 3px solid rgba(100, 114, 125, 0.5); */
|
||||
background-color: @base;
|
||||
color: @text;
|
||||
transition-property: background-color;
|
||||
transition-duration: .5s;
|
||||
background: transparent;
|
||||
/* background-color: rgba(30, 30, 46, 0.5); */
|
||||
/* border-bottom: 2px solid rgba(147, 153, 178, 0.5); */
|
||||
/* border: 1px solid rgba(166, 173, 200, 1.0); */
|
||||
color: #ffffff;
|
||||
/* transition-property: background-color; */
|
||||
/* transition-duration: .5s; */
|
||||
}
|
||||
|
||||
window#waybar.hidden {
|
||||
|
|
@ -38,27 +39,27 @@ window#waybar.chromium {
|
|||
|
||||
button {
|
||||
/* Use box-shadow instead of border so the text isn't offset */
|
||||
box-shadow: inset 0 -3px transparent;
|
||||
box-shadow: none;
|
||||
/* Avoid rounded borders under each button name */
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
transition-property: none;
|
||||
}
|
||||
|
||||
/* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
|
||||
button:hover {
|
||||
background: inherit;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
}
|
||||
|
||||
/* you can set a style on hover for any module like this */
|
||||
#pulseaudio:hover {
|
||||
background-color: @lavender;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
text-shadow: none;
|
||||
border: none;
|
||||
-gtk-icon-effect: none;
|
||||
-gtk-icon-shadow: none;
|
||||
}
|
||||
|
||||
#workspaces button {
|
||||
padding: 0 5px;
|
||||
background-color: transparent;
|
||||
color: @text;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#workspaces button:hover {
|
||||
|
|
@ -71,12 +72,12 @@ button:hover {
|
|||
}
|
||||
|
||||
#workspaces button.urgent {
|
||||
background-color: @maroon;
|
||||
background-color: #eb4d4b;
|
||||
}
|
||||
|
||||
#mode {
|
||||
background-color: #64727D;
|
||||
box-shadow: inset 0 -3px #ffffff;
|
||||
border-bottom: 3px solid #ffffff;
|
||||
}
|
||||
|
||||
#clock,
|
||||
|
|
@ -94,10 +95,12 @@ button:hover {
|
|||
#mode,
|
||||
#idle_inhibitor,
|
||||
#scratchpad,
|
||||
#power-profiles-daemon,
|
||||
#custom-osicon,
|
||||
#mpd {
|
||||
padding: 0 10px;
|
||||
color: #ffffff;
|
||||
color: #f0f0ff;
|
||||
background-color: rgba(30, 30, 46, 0.6);
|
||||
border-radius: 99px;
|
||||
}
|
||||
|
||||
#window,
|
||||
|
|
@ -116,14 +119,19 @@ button:hover {
|
|||
}
|
||||
|
||||
#clock {
|
||||
background-color: #64727D;
|
||||
/* background-color: #64727D; */
|
||||
font-weight: bold;
|
||||
/* background-color: rgba(0, 0, 0, 0.3); */
|
||||
/* border-radius: 99px; */
|
||||
}
|
||||
|
||||
#battery {
|
||||
background-color: #ffffff;
|
||||
color: #000000;
|
||||
/* background-color: #f9e2af; */
|
||||
/* color: #000000; */
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
/*
|
||||
#battery.charging, #battery.plugged {
|
||||
color: #ffffff;
|
||||
background-color: #26A65B;
|
||||
|
|
@ -136,47 +144,34 @@ button:hover {
|
|||
}
|
||||
}
|
||||
|
||||
/* Using steps() instead of linear as a timing function to limit cpu usage */
|
||||
#battery.critical:not(.charging) {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
animation-name: blink;
|
||||
animation-duration: 0.5s;
|
||||
animation-timing-function: steps(12);
|
||||
animation-timing-function: linear;
|
||||
animation-iteration-count: infinite;
|
||||
animation-direction: alternate;
|
||||
}
|
||||
|
||||
#power-profiles-daemon {
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.performance {
|
||||
background-color: #f53c3c;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.balanced {
|
||||
background-color: #2980b9;
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
#power-profiles-daemon.power-saver {
|
||||
background-color: #2ecc71;
|
||||
color: #000000;
|
||||
}
|
||||
*/
|
||||
|
||||
label:focus {
|
||||
background-color: #000000;
|
||||
}
|
||||
|
||||
#cpu {
|
||||
background-color: @green;
|
||||
color: #000000;
|
||||
/* background-color: #f38ba8; */
|
||||
/* color: #000000; */
|
||||
border-radius: 99px 0px 0px 99px;
|
||||
padding: 0 0 0 10px;
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
#memory {
|
||||
background-color: @mauve;
|
||||
/* background-color: #fab387; */
|
||||
/* color: #000000; */
|
||||
border-radius: 0px 99px 99px 0px;
|
||||
/* padding: 0 10px 0 0; */
|
||||
}
|
||||
|
||||
#disk {
|
||||
|
|
@ -188,15 +183,51 @@ label:focus {
|
|||
}
|
||||
|
||||
#network {
|
||||
background-color: @blue;
|
||||
/* background-color: #a6e3a1; */
|
||||
/* color: #000000; */
|
||||
}
|
||||
|
||||
/*
|
||||
#network.disconnected {
|
||||
background-color: #f53c3c;
|
||||
}
|
||||
*/
|
||||
|
||||
#taskbar {
|
||||
margin-left: 4px;
|
||||
}
|
||||
|
||||
#taskbar button {
|
||||
color: #f0f0ff;
|
||||
background-color: rgba(30, 30, 46, 0.6);
|
||||
}
|
||||
|
||||
#taskbar button:first-child {
|
||||
border-radius: 99px 0 0 99px;
|
||||
}
|
||||
|
||||
#taskbar button:last-child {
|
||||
border-radius: 0 99px 99px 0;
|
||||
}
|
||||
|
||||
#taskbar button:first-child:last-child {
|
||||
border-radius: 99px;
|
||||
}
|
||||
|
||||
#taskbar button:hover {
|
||||
background-color: rgba(49, 50, 68, 0.6);
|
||||
}
|
||||
|
||||
#taskbar button.active {
|
||||
background-color: rgba(88, 91, 112, 0.6);
|
||||
}
|
||||
|
||||
#taskbar button.active:hover {
|
||||
background-color: rgba(108, 112, 134, 0.6);
|
||||
}
|
||||
|
||||
#pulseaudio {
|
||||
background-color: @yellow;
|
||||
background-color: #f1c40f;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
|
|
@ -229,7 +260,7 @@ label:focus {
|
|||
}
|
||||
|
||||
#temperature {
|
||||
background-color: @peach;
|
||||
background-color: #f0932b;
|
||||
}
|
||||
|
||||
#temperature.critical {
|
||||
|
|
@ -237,7 +268,7 @@ label:focus {
|
|||
}
|
||||
|
||||
#tray {
|
||||
background-color: @blue;
|
||||
/* background-color: #2980b9; */
|
||||
}
|
||||
|
||||
#tray > .passive {
|
||||
|
|
@ -276,8 +307,8 @@ label:focus {
|
|||
}
|
||||
|
||||
#language {
|
||||
background: @green;
|
||||
color: @mauve;
|
||||
background: #00b093;
|
||||
color: #740864;
|
||||
padding: 0 5px;
|
||||
margin: 0 5px;
|
||||
min-width: 16px;
|
||||
|
|
@ -306,24 +337,3 @@ label:focus {
|
|||
#scratchpad.empty {
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#privacy {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
#privacy-item {
|
||||
padding: 0 5px;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#privacy-item.screenshare {
|
||||
background-color: #cf5700;
|
||||
}
|
||||
|
||||
#privacy-item.audio-in {
|
||||
background-color: #1ca000;
|
||||
}
|
||||
|
||||
#privacy-item.audio-out {
|
||||
background-color: #0069d4;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue