Re-arrange waybar, add style

This commit is contained in:
floppydiskette 2023-09-02 20:49:41 +01:00
parent 5d278ec26a
commit f63fa74e6a
No known key found for this signature in database
3 changed files with 181 additions and 3 deletions

View file

@ -218,6 +218,7 @@
programs.waybar = { programs.waybar = {
enable = true; enable = true;
settings = import ./waybar.nix; settings = import ./waybar.nix;
style = import ./waybar-style.nix;
}; };
# Nicely reload system units when changing configs # Nicely reload system units when changing configs

View file

@ -0,0 +1,177 @@
''
* {
border: none;
font-family: "JetbrainsMono Nerd Font" ;
font-size: 14px;
color: #eeeeee;
border-radius: 12px; /* Controls Rounding */
}
#window {
/*font-weight: bold;*/
margin-top: 2px;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 2px;
border-radius: 8px;
transition: none;
}
window#waybar {
background: #060606;
padding: 2px 2px 2px 0px;
/* 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;
}
#mode {
color: #cc3436;
font-weight: bold;
}
/*-----Indicators----*/
#network.disconnected {
color: #ff5454;
}
#network.disabled {
color: #e3c78a;
}
#idle_inhibitor.activated {
color: #2dcc36;
}
#pulseaudio.muted {
color: #aaaaaa;
}
#battery.charging {
color: #8cc85f;
}
#battery.warning:not(.charging) {
color: #e3c78a;
}
#battery.critical:not(.charging) {
color: #ff5454;
}
#temperature.critical {
color: #ff5454;
}
''

View file

@ -21,10 +21,10 @@
"custom/sep_r" "custom/sep_r"
"cpu" "cpu"
"custom/sep_r" "custom/sep_r"
"disk"
"custom/sep_r"
"memory" "memory"
"custom/sep_r" "custom/sep_r"
"disk"
"custom/sep_r"
"pulseaudio" "pulseaudio"
"custom/sep_r" "custom/sep_r"
"network" "network"
@ -137,7 +137,7 @@
}; };
"memory" = { "memory" = {
format = " {}"; format = " {}%";
}; };
"battery" = { "battery" = {