Update waybar config

This commit is contained in:
floppydiskette 2023-09-02 21:27:24 +01:00
parent f63fa74e6a
commit 1e0f3fbf9c
No known key found for this signature in database
3 changed files with 151 additions and 195 deletions

1
.github/README.md vendored
View file

@ -27,3 +27,4 @@ If you have any questions or issues, open an issue under this repository. If you
## Credits ## Credits
- **[NotAShelf](https://github.com/NotAShelf)** - Introduced me to NixOS, pretty much the reason this repo exists - **[NotAShelf](https://github.com/NotAShelf)** - Introduced me to NixOS, pretty much the reason this repo exists
- **[toger5](https://github.com/toger5)** - My waybar stylesheet is a ~~stolen~~ modified version of [theirs](https://gist.github.com/toger5/3a509d9a9d7ebba1e02205b00449ccff#file-style-css)

View file

@ -1,177 +1,153 @@
'' ''
* { * {
border: none; border: none;
font-family: "JetbrainsMono Nerd Font" ; border-radius: 0;
font-size: 14px; font-family: Roboto,'Font Awesome 5', 'SFNS Display', Helvetica, Arial, sans-serif;
color: #eeeeee; font-size: 13px;
border-radius: 12px; /* Controls Rounding */ min-height: 0;
} }
#window { window#waybar {
/*font-weight: bold;*/ background: rgba(43, 48, 59, 0.5);
margin-top: 2px; border-bottom: 3px solid rgba(100, 114, 125, 0.5);
padding-left: 10px; color: #1e2030;
padding-right: 10px; }
padding-bottom: 2px;
border-radius: 8px;
transition: none;
} window#waybar.hidden {
opacity: 0.0;
window#waybar { }
background: #060606; /* https://github.com/Alexays/Waybar/wiki/FAQ#the-workspace-buttons-have-a-strange-hover-effect */
padding: 2px 2px 2px 0px; #workspaces button {
/* background: transparent; */
}
window#waybar.empty {
animation: fadeIn 5s;
}
window#waybar.hidden {
opacity: 0.2;
}
/*-----module groups----*/
.modules-right {
/* margin: 0 -12px 0 0; */
padding-right:7px;
margin: 4px;
}
.mnodules-center {
/* background: transparent; */
margin: 0 0 0 0;
}
.modules-left {
/* margin: 0 -12px 0 0; */
padding-left:7px;
}
tooltip {
background: #060606;
color: #ffffff;
border-radius: 10;
}
#workspaces {
padding-right: 0px;
}
/*-----modules indv----*/
#workspaces button {
font-weight: bold;
padding-right: 0px;
/* padding-right: 7px */
}
#workspaces button:hover {
font-weight: bold;
padding-right: 0px;
/* padding-right: 7px */
}
#workspaces button.focused {
font-weight: bold;
padding-right: 0px;
/* padding-right: 7px */
}
#workspaces button.active {
font-weight: bold;
/* background-color: #ffffff; */
/* padding-right: 7px */
}
#custom-sep_l {
color: #ffffff;
margin: 0px 10px 0px 10px;
}
#custom-sep_r {
color: #ffffff;
padding-left: 4px;
padding-right: 4px;
}
#custom-sep {
color: #ffffff;
}
#custom-empty {
color: #ffffff;
}
#clock {
font-weight: bold;
padding: 0px 4px
}
#battery,
#cpu,
#memory,
#temperature,
#network,
#pulseaudio,
#custom-media,
#custom-updates {
padding: 0px 10px
}
#tray {
padding-left: 0px;
padding-right: 0px;
}
#keyboard-state {
padding-left: 0px;
padding-right: 0px;
}
#mode,
#custom-power,
#custom-launcher {
font-weight: bold;
/* padding-right: 7px */
}
#custom-menu {
font-weight: bold;
/* padding-right: 7px; */
}
#idle_inhibitor {
padding: 0 5px; padding: 0 5px;
} background: transparent;
color: #cad3f5;
border-bottom: 3px solid transparent;
}
#mode { #workspaces button.focused {
color: #cc3436; background: #64727D;
font-weight: bold; border-bottom: 3px solid #cad3f5;
} }
/*-----Indicators----*/ #workspaces button.urgent {
#network.disconnected { background-color: #eb4d4b;
color: #ff5454; }
}
#network.disabled { #mode {
color: #e3c78a; background: #64727D;
} border-bottom: 3px solid #cad3f5;
#idle_inhibitor.activated { }
color: #2dcc36;
} #custom-notification, #workspaces, #disk, #clock, #battery, #cpu, #memory, #temperature, #backlight, #network, #pulseaudio, #custom-media, #tray, #mode, #idle_inhibitor {
#pulseaudio.muted { padding: 0 10px;
color: #aaaaaa; margin: 0 2px;
} }
#battery.charging {
color: #8cc85f; #workspaces {
} background-color: #494d64;
#battery.warning:not(.charging) { }
color: #e3c78a;
} #clock {
#battery.critical:not(.charging) { background-color: #64727D;
color: #ff5454; }
}
#temperature.critical { #battery {
color: #ff5454; background-color: #cad3f5;
}
#battery.charging {
color: #cad3f5;
background-color: #26A65B;
}
@keyframes blink {
to {
background-color: #cad3f5;
} }
}
#battery.critical:not(.charging) {
background: #f53c3c;
color: #cad3f5;
animation-name: blink;
animation-duration: 0.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
animation-direction: alternate;
}
#cpu {
background: #a6da95;
}
#memory {
background: #c6a0f6;
}
#backlight {
background: #90b1b1;
}
#network {
background: #f5a97f;
}
#disk {
background: #2980b9;
color: #cad3f5;
}
#network.disconnected {
background: #f53c3c;
}
#pulseaudio {
background: #eed49f;
color: #000000;
}
#pulseaudio.muted {
background: #90b1b1;
color: #2a5c45;
}
#custom-media {
background: #66cc99;
color: #2a5c45;
}
.custom-spotify {
background: #66cc99;
}
.custom-vlc {
background: #ffa000;
}
#temperature {
background: #f0932b;
}
#temperature.critical {
background: #eb4d4b;
}
#tray {
background-color: #2980b9;
}
#idle_inhibitor {
background-color: #2d3436;
}
#idle_inhibitor.activated {
background-color: #ecf0f1;
color: #2d3436;
}
#custom-notification {
color: #1e2030;
background-color: #8bd5ca;
}
'' ''

View file

@ -3,33 +3,22 @@
layer = "top"; layer = "top";
position = "top"; position = "top";
height = 27; height = 27;
margin = "7";
fixed-center = true; fixed-center = true;
modules-left = [ modules-left = [
"wlr/workspaces" "custom/notification"
"custom/sep" "custom/sep"
"tray" "tray"
"custom/updates"
]; ];
modules-center = [ modules-center = [
"clock" "wlr/workspaces"
"sep"
"custom/notification"
]; ];
modules-right = [ modules-right = [
"battery" "battery"
"custom/sep_r"
"cpu" "cpu"
"custom/sep_r"
"memory" "memory"
"custom/sep_r"
"disk"
"custom/sep_r"
"pulseaudio" "pulseaudio"
"custom/sep_r"
"network" "network"
"custom/sep_r" "clock"
"custom/launcher"
]; ];
"custon/sep_r" = { "custon/sep_r" = {
@ -66,7 +55,7 @@
disable-scroll = false; disable-scroll = false;
all-outputs = true; all-outputs = true;
format = "{icon}"; format = "{icon}";
active-only = true; active-only = false;
format-icons = { format-icons = {
"1" = "I"; "1" = "I";
"2" = "II"; "2" = "II";
@ -166,19 +155,8 @@
"pulseaudio" = { "pulseaudio" = {
on-click = "pavucontrol"; on-click = "pavucontrol";
format = "{icon}{volume}% {format_source}"; format = "{icon}{volume}%";
format-bluetooth = "{icon}{volume}% {format_source}";
format-bluetooth-muted = "{icon} {format_source}";
format-muted = " {format_source}";
format-source = " {volume}%";
format-source-muted = " ";
format-icons = { format-icons = {
"headphone" = "";
"hands-free" = "";
"headset" = "";
"phone" = "";
"portable" = "";
"car" = "";
"default" = [" " " " " "]; "default" = [" " " " " "];
}; };
}; };
@ -196,3 +174,4 @@
}; };
}; };
} }