blob: e062be9825802bd1fd95fd3621f166b0b87db1ed [file] [log] [blame]
{ lib, pkgs, ... }: {
home = {
services.polybar = {
enable = true;
settings = {
"bar/main" = {
"inherit" = "base";
tray.position = "right";
};
"bar/dp1" = {
"inherit" = "dp base";
monitor = "DP-1";
};
"bar/dp2" = {
"inherit" = "dp base";
monitor = "DP-2";
};
"bar/dp3" = {
"inherit" = "dp base";
monitor = "DP-3";
};
"bar/dp4" = {
"inherit" = "dp base";
monitor = "DP-4";
};
dp = {
monitor-strict = false;
};
base = {
modules = {
left = "xmonad";
right = "date battery";
};
font = [
"Liga Roboto Mono:style=Regular:size=10;2"
"Twitter Color Emoji:style=Regular:antialias=false:scale=8;1"
];
background = "\${colors.statusline}";
padding = 10;
module.margin = 5;
margin.bottom = "\${root.padding}";
};
"module/xmonad" = {
type = "custom/script";
exec = "${pkgs.xmonad-log}/bin/xmonad-log";
tail = true;
};
"module/date" = {
type = "internal/date";
date = rec {
text = "%Y-%m-%d";
alt = text;
};
time = {
text = "%H:%M";
alt = "%H:%M:%S";
};
label = "%date% %time%";
};
"module/battery" = {
type = "internal/battery";
battery = "BAT1";
adapter = "ACAD";
};
colors = {
black = "#282c34";
red = "#e06c75";
green = "#98c379";
yellow = "#e5c07b";
blue = "#61afef";
purple = "#c678dd";
cyan = "#56b6c2";
statusline = "#313640";
lightgrey = "#474e5d";
darkred = "#844C55";
darkyellow = "#877658";
darkgreen = "#607857";
darkcyan = "#3F717B";
darkblue = "#456E92";
darkpurple = "#775289";
white = "#dcdfe4";
};
};
script = "polybar &";
};
systemd.user.services.polybar.Install.WantedBy = lib.mkForce [ ];
};
}