150 lines
2.1 KiB
Nix
150 lines
2.1 KiB
Nix
{ pkgs, ... }:
|
|
with pkgs.lib.nix-rice;
|
|
let strPalette = palette.toRGBHex pkgs.rice.colorPalette;
|
|
in {
|
|
|
|
programs.waybar = {
|
|
enable = true;
|
|
package = pkgs.waybar;
|
|
systemd.enable = false;
|
|
style = ''
|
|
* {
|
|
border: none;
|
|
font-size: 12pt;
|
|
font-family: "JetBrainsMono Nerd Font" ;
|
|
min-height: 25px;
|
|
}
|
|
|
|
window#waybar {
|
|
background: ${strPalette.normal.background};
|
|
margin: 5px;
|
|
}
|
|
|
|
.modules-right {
|
|
padding-left: 5px;
|
|
margin-top: 2px;
|
|
color: #ccc;
|
|
}
|
|
|
|
.modules-center {
|
|
padding: 0 15px;
|
|
margin-top: 2px;
|
|
color: #ccc;
|
|
}
|
|
|
|
.modules-left {
|
|
margin-top: 2px;
|
|
color: #ccc;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
#network {
|
|
padding: 0 10px 0 15px;
|
|
}
|
|
|
|
#battery,
|
|
#custom-clipboard,
|
|
#custom-colorpicker,
|
|
#custom-powerDraw,
|
|
#bluetooth,
|
|
#pulseaudio,
|
|
#wireplumber,
|
|
#disk,
|
|
#memory,
|
|
#taskbar
|
|
#cpu,
|
|
#temperature,
|
|
#custom-weather,
|
|
#idle_inhibitor,
|
|
#jack,
|
|
#upower,
|
|
#power-profiles-daemon
|
|
#tray,
|
|
#window,
|
|
#workspaces,
|
|
#clock
|
|
#custom-notification {
|
|
padding: 0 20px;
|
|
}
|
|
|
|
#custom-notification {
|
|
min-width: 30px;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
#power-profiles-daemon {
|
|
min-width: 40px;
|
|
}
|
|
|
|
#temperature.critical,
|
|
#pulseaudio.muted {
|
|
color: #FF0000;
|
|
padding-top: 0;
|
|
}
|
|
|
|
#cpu {
|
|
padding-right: 30px;
|
|
}
|
|
|
|
#clock{
|
|
padding-left: 5px;
|
|
color: ${strPalette.normal.magenta};
|
|
}
|
|
|
|
#battery.charging {
|
|
color: #ffffff;
|
|
background-color: #26A65B;
|
|
}
|
|
|
|
#battery.warning:not(.charging) {
|
|
background-color: #ffbe61;
|
|
color: black;
|
|
}
|
|
|
|
#battery.critical:not(.charging) {
|
|
background-color: #f53c3c;
|
|
color: #ffffff;
|
|
animation-name: blink;
|
|
animation-duration: 0.5s;
|
|
animation-timing-function: linear;
|
|
animation-iteration-count: infinite;
|
|
animation-direction: alternate;
|
|
}
|
|
|
|
#mpris {
|
|
margin-left: 15px;
|
|
}
|
|
|
|
#workspaces button {
|
|
color: #666;
|
|
}
|
|
|
|
#workspaces button.empty {
|
|
color: #222;
|
|
}
|
|
|
|
#workspaces button.focused
|
|
{
|
|
color: #ccc;
|
|
}
|
|
|
|
#taskbar, #tray {
|
|
padding-right: 30px;
|
|
}
|
|
|
|
#taskbar button.active {
|
|
background: #333;
|
|
}
|
|
|
|
@keyframes blink {
|
|
to {
|
|
background-color: #ffffff;
|
|
color: #000000;
|
|
}
|
|
}
|
|
'';
|
|
};
|
|
|
|
xdg.configFile."waybar/config".source = ../../homes/emenel/dotfiles/dot_config/waybar/config;
|
|
|
|
}
|